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

How come the custom temperature .json files randomly re-organize themselves? #26

Open
vizthex123 opened this issue Aug 7, 2021 · 4 comments

Comments

@vizthex123
Copy link

I have armour sets grouped together so they're easier to find, but whenever the game loads it just re-organizes them for no reason.

It does at least change the values, but it's quite irksome that it ruins my groupings.

@Charles445
Copy link
Owner

Annoyingly the JSON format is unordered, so it screws with the order of stuff
If you're editing the files with notepad and not using the ingame commands, you can set the JSON files to read-only and that should stop them shuffling about

@vizthex123
Copy link
Author

Very odd...I've never had a mod that uses json do this before.

@Charles445
Copy link
Owner

Charles445 commented Aug 7, 2021

Really? If you know of a mod that doesn't shuffle things around I'd love to know about it so I can learn from how they did it.

edit: my initial guess is that other mods only make the json file once, and don't keep updating it
my mod will read the json, then write it again for mod compatibility reasons (hence why you might need to set it to read only)

@vizthex123
Copy link
Author

Really? If you know of a mod that doesn't shuffle things around I'd love to know about it so I can learn from how they did it.

edit: my initial guess is that other mods only make the json file once, and don't keep updating it
my mod will read the json, then write it again for mod compatibility reasons (hence why you might need to set it to read only)

Well, there's FTGU, Dropt, Lore Expansion, and more.

Those are the main ones I use though, and the files stay the way I make them.

Could you perhaps make it not write the file again? Maybe print errors in chat/the log if something goes wrong?

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