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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • That's what's so odd. Because I shift-clicked to get the file path & it literally is the same exact thing: (copy + pasted from folder) "C:\Program Files\Java\jdk-17\bin\javaw.exe"
    • updated a few mods and now my pack won't load https://paste.ee/p/0sUrp
    • I have installed Forge 1000 times and in different versions, but every time I enter a server or world, it loads the entire square and then it says ''Saving world''. After that, Minecraft closes and the launcher opens with a window displaying error code ''-1''. I don't even have any mods installed, it doesn't let me join any world or server. I contacted Minecraft support, and they told me to talk to you. I hope you can help me with this issue, I'm waiting for your response.
    • I'm trying to make a Event that is fired if a Player is swimming. Here is the Event Class: public class PlayerSwimEvent extends PlayerEvent { public PlayerSwimEvent(Player player) { super(player); } } Here is the Hooks (similar to ForgeHooks Class) that has Methods for the Events: public class EventHooks { public static void onPlayerSwim(Player player) { MinecraftForge.EVENT_BUS.post(new PlayerSwimEvent(player)); } } And here is the Mixin Class: @Mixin(value = Player.class) public class MixinPlayerSwimEvent { @Inject(method = "isSwimming", at = @At("HEAD")) public boolean isSwimming(CallbackInfoReturnable<Boolean> cir) { Player player = null; if (!player.getAbilities().flying && !player.isSpectator()) { EventHooks.onPlayerSwim(player); } return cir.getReturnValue(); } } My Issue is now that I don't get it to work because of the missing Parameter Player. Can someone help with this?
    • Official Website: https://informalhouse.com/r31p [Tap To Order Now] Perma Health Keto Gummies Canada if you're looking for a feature upgrade that will aid in your weight loss. It's among the most well-known weight loss supplements that are currently available, and many people have reported that it has assisted them in losing weight and maintaining their current physical appearance because it is believed to have a number of health benefits when taken over an extended period of time. Order Now:- https://groups.google.com/g/perma-health-keto-gummies-canada-quebec-try/c/4Um2uvnP-9g https://groups.google.com/g/active-keto-capsules-reviews-australia-public/c/kDDPgO8i8N4 https://gamma.app/public/Active-Keto-Capsules-Australia-weight-loss--l3anbew5k3vo5xl https://gamma.app/public/Perma-Health-Keto-Gummies-Canada-Quebec-Buy-5lhwh920bh1hzfd https://medium.com/@jon2023lee/perma-health-keto-gummies-canada-quebec-healthy-weight-loss-88a1bf673d72 https://medium.com/@jon2023lee/active-keto-capsules-australia-increased-energy-d80bc3aa5fc6 https://groups.google.com/g/chemistbuy--warehouse-keto-gummies-australia/c/L9ehZw7QxvA https://groups.google.com/g/mozilla.dev.platform/c/DUplSCW14Ds https://groups.google.com/g/mozilla.dev.platform/c/mxfTITHqHQU https://groups.google.com/g/active-keto-capsules-reviews-australia/c/xIM5sHObvSA https://www.facebook.com/ChemistWarehouseKetoGummiesAustraliasale https://www.facebook.com/ActiveketocapsulesreviewsAustralia https://gamma.app/public/Chemist-Warehouse-Keto-Gummies-Australia-Do-whatever-it-takes-not-5hixkohxcxt89to?mode=doc https://gamma.app/public/Active-keto-capsules-reviews-Australia-Crazy-Deals-Todays-best-of-iksqml7nl380vmp?mode=doc   
  • Topics

×
×
  • Create New...

Important Information

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