Regenerate Config Files...
Stapleton opened this issue ยท 14 comments
This is more of a TODO type thing.
I just noticed that FoamFix was pretty much useless because its config file was from ages ago and had nothing from recent versions that makes it useful.
I don't know how many configs this may effect, but I am thinking a good majority.
Expected Behavior
Foamfix config should have useful options such as the ability to enable multithreading when deduplicating models.
Current Behavior
That option didnt exist, along with many others.
Possible Solution
- Make a copy of the current config folder somewhere else on your PC.
- Delete the config folder in the instance folder.
- Load the pack fully to generate all new stuff.
- Close the modpack.
- Manually (Yes, manually, or with a python script if you are a cool kid) restore the new config values to match the old ones as well as keep an eye out for new entries in the config files and change them accordingly
- Push the update
Steps to Reproduce
Download the modpack...
Log
No logs for you.
Detailed Description
It can't get anymore detailed than whats in the Possible Solution section.
I could even do the config regeneration and restoration for you as well as make a list of new entries so you know what is new and what may or may not need changing.
Multithreading in minecraft is one of the hardest things to do at this point because it was made to run on one core. If you come up with a multithreading mod that works, I'm sure that foamfix would love to implement it.
You what?
Did you just skim the whole thing and get stuck on multithreading?
If the foamfix config what new and up to date. This would be an option.
Threaded, parallel model baking. [default: false]
B:parallelModelBaking=false
Under Experimental
Yes, I do know about that and no I did not just skim the entire thing, I read it. They don't have that enabled for a reason because it can cause crashes in some instances. That's why its under experimental
Ok fair point. They also cant have it enabled in the current version of the pack, if it doesnt exist because the config is out of date. Back to the issue at hand. Can I look forward to the modpack having up to date configs? or am I gonna have to do it myself?
They will update the configs if they get the chance, I will mention it to boom and wtd.
Of course it would be local. Not what I meant though.
Let me repost what I offered.
I could even do the config regeneration and restoration for you as well as make a list of new entries so you know what is new and what may or may not need changing.
Sorry, its 1 am here I'm just busting these things out. The ATM core team handles everything for the packs.
No worries. If I do it, I may just make a NodeJS thing that will do it all for me.
Search the Old configs folder for a .cfg file, find a matching one in the New configs folder.
Parse out both, evaluate all config entries and sort them, one pile is entries that are common between both configs, and the other is entries that are not common.
Common entries get their values copied from Old to New.
Uncommon entries get stuffed into a JS Object with other info for differentiation, which will then be either kept and logged into a text file with which config file its from, and what line/entry name, if its from a New config; otherwise its put into a comment block at the bottom of the New config file at reconstruction.
Rinse and repeat.
tbh, this might be really useful in the future. So whether you are ok with it or not, I am probably gonna still make it and base it off of the ATM 3 config folder since its the only testing subject I have that will have drastic changes between old and new configs.