Python library for manipulating Super Mario Maker 2 save files.
From the Command Prompt: pip install https://github.com/MarioPossamato/SMM2/archive/main.zip
Most of the code in this script was created by Treeki for CylindricalEarth, mainly pynoexs.py and debug_tools.py. This tool allows users to peek and poke specific pre-designated addresses in Super Mario Maker 2's memory, such as timer and sprite count.
>>> from SMM2 import encryption
>>> from SMM2 import course
>>>
>>> data = open("course_data_000.bcd", "rb").read()
>>>
>>> Course = encryption.Course()
>>> Course.load(data)
>>> Course.decrypt()
>>>
>>> open("course_data_000.bcd", "wb").write(Course.data)
Thanks to:
- Treeki For creating CylindricalEarth;
- Kinnay For helping me get encryption working;
- 0Liam For his documentation of save files;
- RedDuckss For creating partrick;
- Tarnadas For help with the save.dat file format;
- Simontime For creating SMM2CourseDecryptor.
Also, I don't know who created cstool.exe and kstool.exe originally, but they come packaged with Matthew Bell's Noexes repository, so all credit goes to the original creator(s). They're just here because I'm planning on doing something with them in the future.