feat: Making the default config file empty, writing checks of its values
Created by: whitebear60
-
Make the default config file empty -
Write checks of the String config values -
Write checks of the List config values -
Check that the mod pack directory exists before creating a server pack; throw an exception if it doesn't exist. -
Write checks of the Boolean config values -
Write checks for Minecraft and mod loader versions
Implementing the feature described in #13 (closed)
Merge request reports
Activity
Heya @whitebear60, I've noticed you've added a config variable to the config file relating to client mods. May I ask that you remove said variable and leave the config file unchanged? The reason behind this is that I want users to be able to update to newer versions of SPC without having to manually migrate their config file. Also, it is safe to assume that a given modpack has client mods in it. If it doesn't, then SPC will simply not delete any files, therefore rendering the
clientModsExist
obsolete.Completely my fault, as it didn't occur to me to include it in Contributing.md. I've added that a couple of minutes ago. There's no way you could've known that I want users to be able to update their SPC version without touching their config file.
Cheers, Griefed
Created by: whitebear60
Also removed my version of Java path check as it is already implemented in 0437577d
Yup, I've taken a look at this myself just now. It's good that the application exits if the boolean is set incorrectly, but it would be nice if we could swap that with a more nicer looking error message. Gotta say, your changes are great. I had great fun going through them and they gave me a couple of ideas. Thank you very much for your contributions!
Created by: whitebear60
Yup, I've taken a look at this myself just now. It's good that the application exits if the boolean is set incorrectly, but it would be nice if we could swap that with a more nicer looking error message. Gotta say, your changes are great. I had great fun going through them and they gave me a couple of ideas. Thank you very much for your contributions!
Just surround config parsing instructions with try/catch and write in catch block a message and then sys.exit(1).
Created by: whitebear60
Now will be trying to implement #8 (closed) , but I haven't worked with Java arguments before, so it could waste too many time. Now you can close #13 (closed) and assign me to #8 (closed).