
joelstoner
Members-
Posts
18 -
Joined
-
Last visited
Everything posted by joelstoner
-
[1.16.5] Help with ServerSided Configuration [SOLVED]
joelstoner replied to joelstoner's topic in Modder Support
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]
joelstoner replied to joelstoner's topic in Modder Support
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]
joelstoner replied to joelstoner's topic in Modder Support
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]
joelstoner replied to joelstoner's topic in Modder Support
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]
joelstoner replied to joelstoner's topic in Modder Support
Any reason it shows up when running singleplayer and not when on a server alone? -
[1.16.5] Help with ServerSided Configuration [SOLVED]
joelstoner replied to joelstoner's topic in Modder Support
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]
joelstoner replied to joelstoner's topic in Modder Support
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]
joelstoner replied to joelstoner's topic in Modder Support
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]
joelstoner replied to joelstoner's topic in Modder Support
[removed link due to privacy] -
[1.16.5] Help with ServerSided Configuration [SOLVED]
joelstoner replied to joelstoner's topic in Modder Support
-
[1.16.5] Help with ServerSided Configuration [SOLVED]
joelstoner replied to joelstoner's topic in Modder Support
I looked inside run/config, and run/saves/forge test world/serverconfig -
[1.16.5] Help with ServerSided Configuration [SOLVED]
joelstoner replied to joelstoner's topic in Modder Support
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]
joelstoner replied to joelstoner's topic in Modder Support
[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]
joelstoner replied to joelstoner's topic in Modder Support
Thank you. -
[1.16.5] Help with ServerSided Configuration [SOLVED]
joelstoner replied to joelstoner's topic in Modder Support
Does Forge auto save the settings? Also what is push, pop, and bake? -
I know that the configs have something to do with ForgeConfigSpec, and ModConfig. I am making a server sided mod, so GUI should only come into play if the user installs the mod on the client or singleplayer. I just want a few simple configurations like enabled, length of time, message, and msg color. I've spent about two days looking for examples to show me how configurations are done, but they all seem to be client sided. I don't expect to be spoon fed, I just need to be pointed in the right direction. How to read the config values, and how to save them?
-
[Solved]Send message to player sending json [1.16.5]
joelstoner replied to joelstoner's topic in Modder Support
Thank you for that. Is it this part that is causing the representation, because I don't see any other spot where I use toString? "sleepingPlayer.getDisplayName().toString()" -
This is the first mod I've worked on in a few years now, last time I made a mod the current version of MC was 1.12. I've been trying to get this send message to all players to work for about 2 days now, I've looked at sources for inspiration on why my message sends json instead of formatted text, to no avail.