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

  • 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

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].

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.

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-0.8.0.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

hcm2py-0.8.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

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