- Dec 27, 2017
- 150
- 113
Is there any mod working with the current version, or at least: have I missed some tip how to make game-folder-profiles working? (I know there is an option ingame, but whatever I do like direct path or res:// it's reset to user://).
Find *siac with ammount: [^,:\{]*siac":\{"am[^\}]*\} Keep in mind, that you search only what you want to (if you go to replace it at least), f.e. not exact would be: [^,:\{]*siac":[^,\}]*
Find *ing with ammount: [^,:\{]*ing":\{"am[^\}]*\}
Find ammount with *ing prior: (?<=ing"\{"am[^\}]*\} (no need 4 code-tag, just copy it)
The last one could be used to replace all 4 of them in an instant, independet of the text before and the value to: {"amount":99, "unlocked":true}.
[^,:\{]*:\K\{"amount":\d+, ?"unlocked":\w+\}
To play around with it, get a better understanding etc. if you're not familiar with regex:
Tough notepad++ is nice cause you can f.e. quick edit multiple values using regex (in search switch in the bottom searchmode from normal to Regular Expr.). F.e. if you want to change the toxic values for the girls: tox[^:]*:\d\d[^\d] (though if you'd have 100 on one girl and doesn't kill her yet - didn't try, BETTER: ) tox(?!_max")[^:]*:\d{2,3} RESP. tox[^:]*(?<!_max"):\d{2,3}. Other examples:not going to lie, would kill for a crude save editing program so I wouldn't have to go through this long line of code and just breaking it up into multiple sections to even make it somewhat fathomable on what to edit.
Find *siac with ammount: [^,:\{]*siac":\{"am[^\}]*\} Keep in mind, that you search only what you want to (if you go to replace it at least), f.e. not exact would be: [^,:\{]*siac":[^,\}]*
Find *ing with ammount: [^,:\{]*ing":\{"am[^\}]*\}
Find ammount with *ing prior: (?<=ing"\{"am[^\}]*\} (no need 4 code-tag, just copy it)
The last one could be used to replace all 4 of them in an instant, independet of the text before and the value to: {"amount":99, "unlocked":true}.
[^,:\{]*:\K\{"amount":\d+, ?"unlocked":\w+\}
To play around with it, get a better understanding etc. if you're not familiar with regex:
You must be registered to see the links
You can find the answer between your quote's origin and your post:How can I do this? It's pretty annoying to go through that wall of text that's arranged in a haphazard way.
use Plugins -> JSTool -> JSFormat to break lines first