RatchetModding / slimseditor

A savegame editor for the Ratchet and Clank games, written in Python.
GNU General Public License v3.0
14 stars 6 forks source link

request for a new data type to handle bits inside a byte #7

Open Auzoocle opened 3 years ago

Auzoocle commented 3 years ago

i have been looking into a bunch of save values in going commando for ps2.

there is some cases where a single byte contain several different values. i have found one that contain values related to a door. where the first tree bits define if the door is opened or not. one bit define if the hit-box is enabled or not and four bits define if the infiltrator puzzle for that door is completed. The weapons from ratchet and clank 1 have a one bit difference between if you own the weapon or not.

I recommend creating a new data type where we can specify a byte and then specify bits inside that byte. then we can specify that the first tree bits is one Boolean. the next bit is another Boolean. when we use the gui, it will automatically change the specified amount of bits, at its specified position.

maikelwever commented 3 years ago

Sounds like a good idea, can you send me a savegame, a bitfield position, and the expected values, so I can test while implementing this?

If you are not comfortable with sharing your savegames publicly, send them to me via email or Discord in a DM.

maikelwever commented 3 years ago

I've added untested new datatypes, can you try them out on your savegames and let me know how it goes?

Binary release can be found here: https://github.com/RatchetModding/slimseditor/releases/tag/0.0.7