Asia81 Posted November 19, 2019 Posted November 19, 2019 Hello, I'm trying to search flags that unlock box's wallpaper. I made a save between each wallaper to be able to compare flags, but that's not working, do you have any idea on how would I do it? Same quesqtion for badges (rust - shining, no idea how to say).
Kaphotics Posted November 19, 2019 Posted November 19, 2019 Box unlock flags and badges aren't event flags, they're set elsewhere in the save file. You'll have to dig around with HxD/etc to find what bytes are changing in the save data, and modify them to see if the in-game value changes as expected.
Asia81 Posted November 19, 2019 Author Posted November 19, 2019 Then it's beyond my capacities... I tried to compare between 00.sav and 01.sav (I called the save 00 for no unlocked wallpaper and 08 for all of them unlocked), there is too much differences, even if I saved right before and after unlocking it. And I don't find any logical bytes between these, or the 00.sav and the 08.sav (something as 00 00 00 00 00 00 00 00 to 01 01 01 01 01 01 01 01 or another byte/offset ). Thanks for your reply tho.
Guest Posted November 19, 2019 Posted November 19, 2019 If you're lucky, each wallpaper is a bit-mask and they are all stored in a single byte, just like badges. So having the first wallpaper would be 01, and having all 8 would be FF.
Guest Posted November 19, 2019 Posted November 19, 2019 (edited) Found it at 0x1E2C6 for DP, no wallpapers = 00, all wallpapers = FF Each wallpaper is 1 bit out of the 8 bits, haven't checked to see which bit is associated with which wallpaper though. (Add 0x40000 for second block, if that's the current active save block.) Edited November 19, 2019 by Guest
Asia81 Posted November 19, 2019 Author Posted November 19, 2019 (edited) I'm interested in how you managed to find it and / or by which tools (with perhaps a better search engine / comparison than HxD) you used. It can be usefull if I want give a try for badges. There was so many differences that I gave up. Also what do you mean by " (Add 0x40000 for second block) " . Edited November 19, 2019 by Asia81
Guest Posted November 19, 2019 Posted November 19, 2019 I compared save with no wallpapers unlocked and save with all wallpapers unlocked. Just the regular compare tool in HxD. You're looking for the byte where the save file with no wallpapers unlocked has 00, and the save file with all wallpapers unlocked has FF. Save file is divided in two blocks, one current and one backup (in no particular order, which one is current depends on the save count in the footer.) The offset in first block is 0x1E2C6, offset in second block is 0x5E2C6. If you don't know which block is the current and which is the backup, and editing 0x1E2C6 doesn't have an effect in-game, then this means the second block is the current one, and you have to edit 0x5E2C6 instead.
Guest Posted November 20, 2019 Posted November 20, 2019 Added https://github.com/kwsch/PKHeX/commit/ee9c91e8939c7516bdb0da991ef73b69a277fad9
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now