marcrobledo / savegame-editors

A compilation of console savegame editors made with HTML5 technologies.
https://www.marcrobledo.com/savegame-editors/
Other
1.1k stars 227 forks source link

[TOTK] request to be able to download a delimited text file or JSON with labels/values from Master Editor #403

Open DeftTitan opened 1 year ago

DeftTitan commented 1 year ago

I am looking for a way to compare one save file with another to evaluate the list of changes between save games. As such, I want to be able to download the cleartext values and arrays for the entire file of hashes.

I've never used JS before. Still, I played around with the _createHashInputRow() function and was able to get a delimited record output in the console log to my liking. However, I can't figure out how to export all ~31000 text lines cleanly into a file using javascript. Browser security really hates this sort of thing. I tried to abuse the existing saveChanges() function that downloads the progress.sav file, and am currently trying to create a new MarcFile so I can just call the FileSaver function. I'm not there yet, and there's got to be a more elegant way to do this.

Screenshot 2023-08-09 at 10 27 20 PM
DeftTitan commented 1 year ago

Alright, I finally got a CSV out of this. a JSON probably would have been easier, but since this is my first time working with javascript, i'm glad I at least got it working. Everything was contained within a modified version of zelda-totk.master.js. If anybody is interested in this feature, chime in.

Nyxiad commented 1 year ago

+1 I would love to see this feature.