-
[1.16.5] Help with ServerSided Configuration [SOLVED]
For those interested this is the solution for me, instead of using server config, I setup common config. This is the Config class. You register it like this, in the main class of your mod. and you use the values like this.
-
[1.16.5] Help with ServerSided Configuration [SOLVED]
While I still don't see my login info in those files, I have deleted the repo and republished it using github Desktop. Thank you.
-
[1.16.5] Help with ServerSided Configuration [SOLVED]
Under FMLServerStoppingEvent I've also tried "Config.SERVER_SPEC.save();" Bottom of the file, called on FMLServerStartedEvent This is where I grabbed the values into variables. I think that's it, if not the repo has all of the files.
-
[1.16.5] Help with ServerSided Configuration [SOLVED]
Is there a way to set a config value, like with a command? When I've tried, I get an error about "Cannot set config value without assigned Config object present".
-
[1.16.5] Help with ServerSided Configuration [SOLVED]
Any reason it shows up when running singleplayer and not when on a server alone?
-
[1.16.5] Help with ServerSided Configuration [SOLVED]
No, I never setup the eGit for Eclipse, oh that was one of the files to remove in the clean up, it does nothing, and is not called by my event handler.
-
[1.16.5] Help with ServerSided Configuration [SOLVED]
I just uploaded everything that is not the launch files or the run directory, would a compiled jar work for debugging this issue? I'm wondering if it's related to the String.
-
[1.16.5] Help with ServerSided Configuration [SOLVED]
Sorry I was in a hurry and forgot to upload the new build.gradle, that branch was just for this, I'll add the wrapper to the main branch. It should compile now. When I get the configs working I'll clean up the code, and remove the unused classes, etc.
-
[1.16.5] Help with ServerSided Configuration [SOLVED]
[removed link due to privacy]
-
[1.16.5] Help with ServerSided Configuration [SOLVED]
- [1.16.5] Help with ServerSided Configuration [SOLVED]
I looked inside run/config, and run/saves/forge test world/serverconfig- [1.16.5] Help with ServerSided Configuration [SOLVED]
I'm having an issue where the server isn't saving a config toml for my mod, so that people can change the settings. Here is my config class The Config is registered as ModLoadingContext.get().registerConfig(ModConfig.Type.SERVER, Config.SERVER_SPEC, "singleplayersleepmod-server.toml");- [1.16.5] Help with ServerSided Configuration [SOLVED]
[SOLVED] So I did a config class, and registered it, and now I'm getting a NPE during loading a single player world. This is the stacktrace provided in crash-reports This is my config class This is where I register the config This is my en_us.json More than likely it is something I am missing. I found that this part under FMLCommonSetupEvent was the NPE issue, replacing it with my config register was the fix. ModLoadingContext.get().registerConfig(ModConfig.Type.SERVER, null);- [1.16.5] Help with ServerSided Configuration [SOLVED]
Thank you.- [1.16.5] Help with ServerSided Configuration [SOLVED]
Does Forge auto save the settings? Also what is push, pop, and bake? - [1.16.5] Help with ServerSided Configuration [SOLVED]
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.