Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Auzoocle opened this issue Aug 10, 2021 · 2 comments
Open

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

Auzoocle opened this issue Aug 10, 2021 · 2 comments

Comments

@Auzoocle
Copy link

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
Copy link
Member

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants