Marching along! HS2CharEdit devlog #3
Here's the current progress.
Working features:
- Drag/drop file loading
- Viewing almost all the vanilla stats
- Image Replacement
Exciting developments:
- I figured out how they are storing colors. Unlike every other stat where they are storing it as a decimal version of the number you see in-game, RBG values are stored as a percentage. They have to be multiplied by 255 and then rounded down to arrive at the value you're used to seeing in the character editor.
Not working yet:
- Saving edits to stats. I know I said it was working but I missed a step. Right now the only thing that's being saved is changes to the card image. I need to add an onChange handler to all the textboxes that will change the appropriate values in the byte array. This will be simple enough for most stats, but for the ones that aren't numbers (like iris type) instead of being stored in 4 static bytes I have to read from a start point until a particular end character (which is different for each stat for some reason). For all of them so far it's only one byte, but if you had enough mods it could be larger. So to edit that value I'll have to pop out the byte(s) and then insert my own in their place, and the variable might not be the same length.
Blerg.
