Jump to content

When trying to start a 1.16.5 forge server with the option --gameDir /mc, it does not override the default option --gameDir .


WBR_K

Recommended Posts

OS: Linux Ubuntu 22.04

Forge 1.16.5 36.2.39 (Also tried this with 36.2.34)

 

Output:

https://gist.github.com/WBRK-dev/e0e0418e02f39da56e4b23c851f8d97b

2023-08-16 12:01:02,115 main ERROR Error processing element Queue ([Appenders: null]): CLASS_NOT_FOUND
2023-08-16 12:01:02,237 main ERROR Unable to locate appender "ServerGuiConsole" for logger config "root"
[12:01:02] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.39, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --gameDir, /opt/minecraft/servers/forge-1.16.5, --nogui]
[12:01:02] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.1.3+8.1.3+main-8.1.x.c94d18ec starting: java version 1.8.0_382 by Private Build
Exception in thread "main" joptsimple.MultipleArgumentsForOptionException: Found multiple arguments for option gameDir, but you asked for only one
        at joptsimple.OptionSet.valueOf(OptionSet.java:179)
        at cpw.mods.modlauncher.ArgumentHandler.setArgs(ArgumentHandler.java:47)
        at cpw.mods.modlauncher.Launcher.run(Launcher.java:74)
        at cpw.mods.modlauncher.Launcher.main(Launcher.java:66)
        at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:49)
        at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:46)
        at net.minecraftforge.server.ServerMain.main(ServerMain.java:43)

The command used to start the server:

java -jar -Xms1024M -Xmx2048M /path/to/forge.jar --gameDir /path/to/server_folder --nogui

How do I start a forge server with a custom gameDir option in the command?

 

How to replicate?

1. Create a ubuntu 22.04 docker image.

2. Install a 1.16.5 forge server. Latest or recommended version.

3. Start the server with the --gameDir option.

Edited by WBR_K
Added the "How to replicate?" section.
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.