hcm2py


Namehcm2py JSON
Version 1.1.1 PyPI version JSON
download
home_page
SummaryThis is a registry generator for the Roblox game Circuit Maker 2
upload_time2023-11-28 04:02:57
maintainer
docs_urlNone
authorHawk King
requires_python>=3.6
license
keywords registry circuit maker 2 roblox
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Documentation

## Links

### Github Gist
[https://gist.github.com/Hawkking-cloud/f7d694541421b6d6cf88ce4e1d3d8844](https://gist.github.com/Hawkking-cloud/f7d694541421b6d6cf88ce4e1d3d8844)

## Block Part Numbers

Can also used as the capitalized or uncapitalized version  (e.g., `createBlock(0,0,0,'nor')`)
- 0: NOR
- 1: AND
- 2: OR
- 3: XOR
- 4: Input
- 5: FLIPFLOP
- 6: LED
- 7: Sound
- 8: Conductor
- 10: NAND
- 11: XNOR
- 12: Random
- 13: Letter
- 14: Tile

## Functions

### `finish()`
Call after making all your blocks, finalizes and formats it into a string and pastes it.

### `text_to_hexadecimal(text)`
Converts ASCII text to hexadecimal for the sign.

### `xyztoindex(x, y, z)`
Takes an XYZ coordinate. If there's a block there, it gets the index of it. Mainly used in wires.

### `createBlock(x, y, z, part, specialparams)`
- Part: Block part ID.
- Special Params (optional): Used in special blocks like LED, sound blocks, etc. RGB values are defined by arrays, e.g., r:255, g:0, b:0 → [255, 0, 0].
- Letter blocks can be entered as single letter characters (e.g., `createBlock(0,0,0,13,'A')`)

### `fetch_from_dpaste(string)`
Gets the raw data from a dpaste link and returns it 

### `createWire(start_x, start_y, start_z, end_x, end_y, end_z)`
Adds wires using two XYZ inputs.

### `createWireIndex(index1, index2)`
Adds wires using two index inputs.

### `number_to_binary(num, numofbits)`
Turns a number into binary.

### `import_build(input_string, offset_x, offset_y, offset_z)`
Puts a registry string into the build. Offsets are not mandatory.

### `createBlockCustom(string)`
Allows you to input a string like `7,0,0,0,0,1234.00` directly into the parts.

### `cube(x1, y1, z1, x2, y2, z2, part, specialparams)`
Creates an array of blocks based on two 3D points. Special params are not mandatory.

### `createCustomBuilding(Type, x, y, z, rotX, rotY, rotZ, value)`
Creates a custom building. Valid types: Sign, Door, Graph, MassiveMemory, MassMemory, KeyInput, QwertyKeyInput.

### `ascii_to_number(char)`
Converts a single character to ascii number, for letter block

### `render()`
opens a pygame project with webgl and renders the previously declared blocks with controls WASD and < >

### `getString()`
Returns the formatted string of blocks. (Won't work unless used after `finish()`)

### `getBlocks()`
Returns the unformatted list of blocks.

### `getConnections()`
Returns the unformatted index list of connections.

### `getBuilds()`
Returns the unformatted list of builds.

### `getBuildvalues()`
Returns the unformatted list of builds values.

### `getIndex()`
Returns the current block index, (e.g., `print(getIndex()) createBlock(0,0,0,5) print(getIndex())`)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "hcm2py",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "registry,Circuit Maker 2,Roblox",
    "author": "Hawk King",
    "author_email": "dbadbplayz@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a0/28/385fcbc8a04589282548b0706d9c1fa113c3144566fa708e22a2638711db/hcm2py-1.1.1.tar.gz",
    "platform": null,
    "description": "# Documentation\r\n\r\n## Links\r\n\r\n### Github Gist\r\n[https://gist.github.com/Hawkking-cloud/f7d694541421b6d6cf88ce4e1d3d8844](https://gist.github.com/Hawkking-cloud/f7d694541421b6d6cf88ce4e1d3d8844)\r\n\r\n## Block Part Numbers\r\n\r\nCan also used as the capitalized or uncapitalized version  (e.g., `createBlock(0,0,0,'nor')`)\r\n- 0: NOR\r\n- 1: AND\r\n- 2: OR\r\n- 3: XOR\r\n- 4: Input\r\n- 5: FLIPFLOP\r\n- 6: LED\r\n- 7: Sound\r\n- 8: Conductor\r\n- 10: NAND\r\n- 11: XNOR\r\n- 12: Random\r\n- 13: Letter\r\n- 14: Tile\r\n\r\n## Functions\r\n\r\n### `finish()`\r\nCall after making all your blocks, finalizes and formats it into a string and pastes it.\r\n\r\n### `text_to_hexadecimal(text)`\r\nConverts ASCII text to hexadecimal for the sign.\r\n\r\n### `xyztoindex(x, y, z)`\r\nTakes an XYZ coordinate. If there's a block there, it gets the index of it. Mainly used in wires.\r\n\r\n### `createBlock(x, y, z, part, specialparams)`\r\n- Part: Block part ID.\r\n- Special Params (optional): Used in special blocks like LED, sound blocks, etc. RGB values are defined by arrays, e.g., r:255, g:0, b:0 \u2192 [255, 0, 0].\r\n- Letter blocks can be entered as single letter characters (e.g., `createBlock(0,0,0,13,'A')`)\r\n\r\n### `fetch_from_dpaste(string)`\r\nGets the raw data from a dpaste link and returns it \r\n\r\n### `createWire(start_x, start_y, start_z, end_x, end_y, end_z)`\r\nAdds wires using two XYZ inputs.\r\n\r\n### `createWireIndex(index1, index2)`\r\nAdds wires using two index inputs.\r\n\r\n### `number_to_binary(num, numofbits)`\r\nTurns a number into binary.\r\n\r\n### `import_build(input_string, offset_x, offset_y, offset_z)`\r\nPuts a registry string into the build. Offsets are not mandatory.\r\n\r\n### `createBlockCustom(string)`\r\nAllows you to input a string like `7,0,0,0,0,1234.00` directly into the parts.\r\n\r\n### `cube(x1, y1, z1, x2, y2, z2, part, specialparams)`\r\nCreates an array of blocks based on two 3D points. Special params are not mandatory.\r\n\r\n### `createCustomBuilding(Type, x, y, z, rotX, rotY, rotZ, value)`\r\nCreates a custom building. Valid types: Sign, Door, Graph, MassiveMemory, MassMemory, KeyInput, QwertyKeyInput.\r\n\r\n### `ascii_to_number(char)`\r\nConverts a single character to ascii number, for letter block\r\n\r\n### `render()`\r\nopens a pygame project with webgl and renders the previously declared blocks with controls WASD and < >\r\n\r\n### `getString()`\r\nReturns the formatted string of blocks. (Won't work unless used after `finish()`)\r\n\r\n### `getBlocks()`\r\nReturns the unformatted list of blocks.\r\n\r\n### `getConnections()`\r\nReturns the unformatted index list of connections.\r\n\r\n### `getBuilds()`\r\nReturns the unformatted list of builds.\r\n\r\n### `getBuildvalues()`\r\nReturns the unformatted list of builds values.\r\n\r\n### `getIndex()`\r\nReturns the current block index, (e.g., `print(getIndex()) createBlock(0,0,0,5) print(getIndex())`)\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "This is a registry generator for the Roblox game Circuit Maker 2",
    "version": "1.1.1",
    "project_urls": null,
    "split_keywords": [
        "registry",
        "circuit maker 2",
        "roblox"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b55b98c7138226114ac24d8f900bfb0920e046458e2cfcde50f8816a7effd85",
                "md5": "bb332f21bdef3d9b59cecc80f5eb010e",
                "sha256": "13efc099e1a8d6d21d7b1114e45e5ac1c4410c6f512de2e56ba9c0584c32a0d8"
            },
            "downloads": -1,
            "filename": "hcm2py-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bb332f21bdef3d9b59cecc80f5eb010e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 7029,
            "upload_time": "2023-11-28T04:02:55",
            "upload_time_iso_8601": "2023-11-28T04:02:55.731556Z",
            "url": "https://files.pythonhosted.org/packages/9b/55/b98c7138226114ac24d8f900bfb0920e046458e2cfcde50f8816a7effd85/hcm2py-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a028385fcbc8a04589282548b0706d9c1fa113c3144566fa708e22a2638711db",
                "md5": "4b03e9be973f8e84c93f01a7445eca1d",
                "sha256": "fcc19c5c01850d433fbb745434907b4ce857b2ff4009334da7189333b0c52095"
            },
            "downloads": -1,
            "filename": "hcm2py-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4b03e9be973f8e84c93f01a7445eca1d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6644,
            "upload_time": "2023-11-28T04:02:57",
            "upload_time_iso_8601": "2023-11-28T04:02:57.370132Z",
            "url": "https://files.pythonhosted.org/packages/a0/28/385fcbc8a04589282548b0706d9c1fa113c3144566fa708e22a2638711db/hcm2py-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-28 04:02:57",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "hcm2py"
}
        
Elapsed time: 0.16743s