Skip to main content

This is a registry generator for the Roblox game Circuit Maker 2

Project description

Documentation

Links

Github Gist

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()))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hcm2py-1.1.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hcm2py-1.1.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file hcm2py-1.1.1.tar.gz.

File metadata

  • Download URL: hcm2py-1.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for hcm2py-1.1.1.tar.gz
Algorithm Hash digest
SHA256 fcc19c5c01850d433fbb745434907b4ce857b2ff4009334da7189333b0c52095
MD5 4b03e9be973f8e84c93f01a7445eca1d
BLAKE2b-256 a028385fcbc8a04589282548b0706d9c1fa113c3144566fa708e22a2638711db

See more details on using hashes here.

File details

Details for the file hcm2py-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: hcm2py-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for hcm2py-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 13efc099e1a8d6d21d7b1114e45e5ac1c4410c6f512de2e56ba9c0584c32a0d8
MD5 bb332f21bdef3d9b59cecc80f5eb010e
BLAKE2b-256 9b55b98c7138226114ac24d8f900bfb0920e046458e2cfcde50f8816a7effd85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page