AgriCraft

AgriCraft

30M Downloads

[Forge 1.18.2] Server config not automatically generated

unilock opened this issue ยท 0 comments

commented

Quick description

Starting a new dedicated server leads to AgriCraft generating a ./config/agricraft/config-common.toml instead of a config-server.toml. Modifying config options in config-common.toml makes no difference. Renaming config-common.toml to config-server.toml and making changes to that file works.

Search tags

common config hidden hide jei seeds server

Mods and versions used

  • Minecraft: 1.18.2
  • Forge: 40.2.0
  • AgriCraft: 3.1.4
  • InfinityLib: 2.1.4
  • JEI: 10.2.1.1002

Steps to replicate the issue

  1. Create a new dedicated server with only AgriCraft + InfinityLib + JEI installed
  2. Check the ./config folder; only config-common.toml and json (folder) exist (alongside five config file backups!?)
  3. Change the "Progressive JEI" config option to "false"; restart the server
  4. Connect to the server and check JEI by searching for @agricraft - no gated seeds (Diamahlia, etc.) listed
  5. Stop the server
  6. Copy config-common.toml to config-server.toml; set "Progressive JEI" to "false" again in the latter (my changes didn't stick!?)
  7. Restart the server
  8. Connect to the server and check JEI again - all gated seeds are listed, as expected

Expectations and explanations

On the dedicated server, AgriCraft should have either read config-common.toml, or automatically created config-server.toml.

Your environment

  • How are you playing?
    • Operating System: macOS client + server (local) - also tested server on Linux
    • Launcher: Prism Launcher client, command line server ("nogui")
    • Modpack: N/A
  • What kind of server:
    • Singleplayer
    • Multiplayer
  • Game Modes:
    • Survival
    • Creative
  • Save File:
    • Brand new save
    • Only an existing save

Links to crash logs, stack traces, etc

Debug logs:

Screenshots (or videos)

(sorry, i forgot to take screenshots)
(with config-common.toml, searching for @agricraft in JEI shows the items available as if "Progressive JEI" is set to "true", regardless of the actual status of that option)
(with config-server.toml, searching for @agricraft either does the same, or shows the normally hidden seeds, depending on the status of "Progressive JEI")

Miscellaneous

Modifying config-client.toml on the client works as expected in singleplayer.

I noticed that AgriCraft is continuously making backups of its config files. Is that worthy of a new issue...?