Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DeftTitan opened this issue Aug 10, 2023 · 2 comments

Comments

@DeftTitan
Copy link

DeftTitan commented Aug 10, 2023

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 DeftTitan changed the title [TOTK] request to be able to download a delimited text file with labels/values from Master Editor [TOTK] request to be able to download a delimited text file or JSON with labels/values from Master Editor Aug 11, 2023
@DeftTitan
Copy link
Author

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
Copy link

Nyxiad commented Sep 18, 2023

+1 I would love to see this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants