WerWolv / EdiZon_CheatsConfigsAndScripts

The official EdiZon Editor Config and Editor Script repository.
479 stars 259 forks source link

Octopath Traveler Demo - PlaySecond Editor #2

Closed shahmirn closed 6 years ago

shahmirn commented 6 years ago

I copied bin.lua and created a octp.lua, which takes a third string argument called searchString, which is a text string that the script will search saveFileBuffer for in order to calculate the initial offset. If searchString is specified, then indirectAddress is ignored.

I tested on my switch, but I'd appreciate it if you could test it also. Please backup before modifying the save, just in case.

Thanks!

WerWolv commented 6 years ago

Awesome, This works now! Btw, the Octopath Traveler save files are saved in the Unreal Engine 4 GVAS format. Maybe your script could be used for other games/values as well then. If you want to test that and write a short documentation I would add it to the Wiki. Thanks a lot!

shahmirn commented 6 years ago

@WerWolv98 Do you know any other games in the eShop that use GVAS? Really, the octp.lua and bin.lua can be combined into just one bin.lua, but I wanted to play it safe, which is why I kept 'em separate.

WerWolv commented 6 years ago

@shahmirn Well, GVAS is the standard save file format for Unreal Engine 4 games, so it could be used for many other UE4 games that will come out. There is a python script which converts GVAS to JSON so if you could port that over to Lua and then just feed the values to my JSON parser potentally many games can be modified in the future. For now I would keep bin.lua and octp.lua separate since it's not a realy GVAS parser.