Skip to main content

Circuit Maker 2 save generation and manipulation package

Project description

cm2py

cm2py is a Python package for generating and manipulating save strings for the roblox game Circuit Maker 2.

Installation

Use the package manager pip to install cm2py.

pip install cm2py

Usage

Basic program to generate a line of 8 looping OR gates:

import cm2py as cm2

save = cm2.save()

blocks = []

for i in range(8):
    blocks.append(save.addBlock(cm2.OR, (i, 0, 0)))

### Commented out for clarity. 
### You should store connections in a list if you want to modify them later.
# connections = []  

for i in range(8):
    # connections.append(save.addConnection(blocks[i-1], blocks[i]))
    save.addConnection(blocks[i-1], blocks[i])  # Directly add the connections to the save object

save.exportSave()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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

cm2py-0.0.1.tar.gz (40.6 kB view details)

Uploaded Source

Built Distribution

cm2py-0.0.1-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file cm2py-0.0.1.tar.gz.

File metadata

  • Download URL: cm2py-0.0.1.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for cm2py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9aa0920bf89a81626d4d3a7927a46f5f796e21412cb0f44819bff13caf496566
MD5 266e9e2889642cb19a9716f3a5e6ed86
BLAKE2b-256 526b08a63017f6ecd07d3aa67b7df52b005f25330ec434135bd49b05be328039

See more details on using hashes here.

File details

Details for the file cm2py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cm2py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for cm2py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 150f45493fc41c57113fccda7325c823ba20e5f2278a769705b7f0724faab27e
MD5 a2c0bb41153fad96985dea088345b344
BLAKE2b-256 b05a3f3d723def7185800e1d1475f6d3c85891405cc4d5ff767c76c49c4acc8f

See more details on using hashes here.

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