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

Language select for UYA and new field type #9

Closed javierbg closed 2 years ago

javierbg commented 2 years ago

I was currently playing the PAL version of R&C3, which includes English, Spanish, German, French and Italian. The Spanish translation and dubbing is too much for my older self to bear, so I wanted to switch to the original English version.

Surprisingly, there is no way to switch this once the savegame has been created. You can switch language in the title screen and can start a new game in a different language that way, but the moment you load the other game it swtiches back to the language that was configured with when it was created.

Through some diffing I was able to track the byte that controls this and wanted to improve on this tool by adding the field, but no field type existed for a list of allowed values, each with a label, so I created it.

Supposedly, imgui allows a new way of creating combo fields. I had never used imgui and I was unable to find any API documentation, only this example (does a proper documentation exist?) but I was not able to get it working that way. I ended up doing it the old way.

You can probably find the language field and values for the rest of games in the series, but sadly I cannot spend more time on this, should be easy though: create game A in english, play for a while, then create game B in english, then create game C in another language: the field that is equal between A and B and also different between B and C should be the language.

Tested using the PAL version of R&C3 (SCES_524.56) on PCSX2 1.6.0, tried all 5 languages.

maikelwever commented 2 years ago

Looks awesome, thanks for contributing!