-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Create Updating Legacy JSON.md #95
Create Updating Legacy JSON.md #95
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i approve this lol but its not finished i can merge and edit my self
```regex | ||
"volume": ([0-9]+) | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Atom way to find weight is:
CTRL+F entre in the top field `"weight": 1,` (all weights in the json file will show up in light blue)
And the corresponding replace is:
entre in the top field `"weight": "250 ml",` and press replace or replace all
Because the volume value is multiplied by 250ml, replacing has to be done manually, however, to find all code to fix json files you need another software as far as I'm aware:
Top right entre the code you are looking for `"Volume": 1,` every file with this will show below drag and drop into atom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This vaguely confuses me. Just to be clear, what you're saying in the second section of you post is that atom has a way to replace all obsolete volume values, correct?
The first section of your post is what I meant when I said, "normal find and replace".
Thanks for the comments! I knew I missed something. As this is still a WIP, I temporarily ignored pocket data and bleed code as they are both huge messes. Artifact data needs updating as well. |
I should have a new copy out somewhere in the next 12 hours. |
Please read under edit file -> preview changes. This shows it with all formatting properly applied. EDIT: Please read here: https://github.com/UmbralReaper/Goats-Mod-Compilation/blob/doc-updating-JSON/Updating%20Legacy%20JSON.md |
Regex takes a bit longer, but I've never had a search (even through the entire mods folder) take longer than 30 seconds. Just remember to use the 'test Regex' option before you actually replace. |
This should be ready to merge - up to you @TheGoatGod |
This is still a WIP, so I'm opening this as a draft PR. If I've missed anything or need to add extra information, please feel free to comment.
Please view at: https://github.com/UmbralReaper/Goats-Mod-Compilation/blob/doc-updating-JSON/Updating%20Legacy%20JSON.md