Allows easy manipulation of memory in the Roblox game Circuit Maker 2. Supports MassiveMemory and MassMemory.
Project description
cm2mem
To use, initialize a Memory instance. Use massive=False if you're using a MassMemory and not a MassiveMemory.
Use the Memory class as if it were an array, for example: print(mem[123]) or mem[123] = 255.
You can also use binary strings as indexes and values, for example: print(mem['00000011']) or mem['0b00000011'] = '00000001'
To initialize a Memory object from pre-existing data (data you copied from a Memory ingame), use Util.load(data). (This will automatically determine the type of memory aswell)
You can use the various functions under the Premade class to (quickly) write values to a MassiveMemory that allow you to use the MassiveMemory as a multiplier, adder, etc..
Premade usage example:
from cm2mem import *
mem = Memory()
Premade.multiplier(mem)
print(mem.pack())
The functions under the Premade class ONLY work with MassiveMemory
You can find a couple utility functions under the Util class.
If you need help with anything, feel free to DM me on Discord @animepfp
May break if memory in Circuit Maker 2 is modified. (DM me if that happens, or if you find a bug)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cm2mem-1.0.2.tar.gz.
File metadata
- Download URL: cm2mem-1.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c791862edf3934711b1d76d33482973881ff3fd631daad03d7980839a423a904
|
|
| MD5 |
2da78f8b37ca5e1c9a24f508a578c59a
|
|
| BLAKE2b-256 |
bf48514e55eac6d4380e3b91aa225a5192214617a145cfa8ce638ab6da12de46
|
File details
Details for the file cm2mem-1.0.2-py3-none-any.whl.
File metadata
- Download URL: cm2mem-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43970427aa38ca8774d3060d4101e2781092fbaec6fc5c9b79b90875ccf69b10
|
|
| MD5 |
7066dfc78492c0b3816ccad80ba655f8
|
|
| BLAKE2b-256 |
1277756833c3416021bd75f03f602e1ec11e228cce53f69353a6d64ef6bf4f7f
|