-
Notifications
You must be signed in to change notification settings - Fork 5
Edited games cannot be uploaded #2
Comments
I reverse engineered the I believe that the first value |
@kinnay thanks for checking! Unfortunately I still haven't managed to get a matching result even though I've followed the order pretty carefully, I must be missing something Current code is here: https://github.com/jaames/game-builder-garage-editor/blob/main/src/formats/GameFile/GameFileHasher.ts |
@jaames I wonder if you can tell me something about the savedata or its data struct? I am puzzled about how GameBuilder export the game, as a program script like scratch and blockly? or it is a process json that run with some module like blueprint? |
@kimyLee it uses Nintendo's binary yaml format (https://zeldamods.org/wiki/BYML), after unpacking it the structure for a game file looks like this: https://github.com/jaames/game-builder-garage-editor/blob/main/notes/LgcTpbFile_MyGame%5Bx%5D.bin |
Any updates or similar projects anywhere? Would love to be able to use :) |
@ThePsycrow I'm not aware of any other save editors for Game Builder Garage, no. I couldn't get past this issue and I've since lost interest in this game and have become busy with other things, so I'm afraid there likely won't be any further development, sorry. |
Sorry to hear that! |
Edited game files load fine when opening them normally, however when trying to upload them to the online gallery, the game will tell you the data is corrupted. Copying or editing the file in the game (in an attempt to get it to fix the file itself) doesn't make a difference. This limits the usefulness of this save editor quite a lot.
I think this is likely due to a hash somewhere in the savedata not matching the game file after it's been edited. I've located what appears to be a file hash list, but need to figure out how these hashes are generated to be able to check if this is the culprit.
Reference save file (no levels here are edited):
savedata.zip
The relevant files are
LgcTpb.bin
- Table of game files, this contains some kind of hash for each fileLgcTpbFile_MyGame[ ].bin
- Game files, these don't contain a hashLgcTpb.bin
contains an array of hashes with the key343f7f9b
(mValueHashCache[].u32
), which is an uint32 array containing an element for each game file.The hashes in the reference save's LgcTpb.bin are:
Reverse engineering notes:
71008cd050
handles parsingLgcTpb.bin
71008ce0c0
handles looping through all themValueHashCache[].u32
array elements inLgcTpb.bin
71007a3080
seems to handle adding keys to the game file (or something else?) for upload, including a key calledmValueHash
The text was updated successfully, but these errors were encountered: