Jump to content

Recommended Posts

Posted

I have followed the instructions to create a Forge Server, which runs, on 1.15.2.

 

I have followed the instructions to mod my client game, on 1.15.2, and have tested the mods to ensure they all work, which they do.

 

I have followed the instructions to add mods to the server, making sure that both the server's mod files and my client's mod files are the exact same files.

 

Yet the server does not load up with the mods.

 

Single player works just fine, but when I switch to multiplayer and connect to my server, it's just vanilla. As though nothing I did all morning existed.

 

I do not get error messages.

 

I am at a loss for how to correct this.

 

What further information is needed to help me, and where do I locate it?

Posted

How are you starting the server?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

That's not a Forge-made file, what's in it?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

inside the .bat folder is the following Minus the quotation marks

"

@ECHO OFF
java -Xms4G -Xmx8G -jar minecraft_server.1.15.2.jar --nogui
pause

"

 

I have been trying to get a server up for more than just this morning and the only tutorial that worked was one for 1.12 with a substitution of this file's contents being what they are above in order to be updated as we were not actually making a 1.12 server.

Posted

Ok, I'll do my best to break this down for you.

@ECHO OFF
java -Xms4G -Xmx8G -jar minecraft_server.1.15.2.jar --nogui
pause

 

@echo off

This tells cmd to not parrot commands back to you before running them (the @ turns it off for just this line before the command runs)

 

java -Xms4G -Xmx8G -jar minecraft_server.1.15.2.jar --nogui

This is where the actual running of the server takes place, invoking java (the program that starts the whole JVM), giving it the options -Xmx and -Xms (the memory setting arguments for max and initial allocation, respectively), -jar (telling it which file to run), and nogui (you should remove the double-hyphen as this one is actually an argument to Minecraft itself rather than the JVM)

Edit: To clarify this further as it's a common issue, -jar needs to be the last of the Java arguments, anything after it is considered an argument to the jar being run.

 

pause

This one is a cmd command that waits for a keypress before closing, useful for flow control in larger batch files and used here to stop the console closing when the server stops, so in the event of a crash you actually have a chance to see the error until you press a key and it continues to the end of the batch file where the command window will close.

 

As for your issue, you're starting a vanilla server because you're starting the vanilla jar

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

Maybe the better question is, if the .bat file is how I start the server, why is it only starting in vanilla instead of modded?

What needs to change to make the modded server start up?

How do I start the modded jar?

Is there a modded jar?

 

Every tutorial I read or watch has not had this secret extra step to making things work properly and I'm extremely frustrated. Everyone else apparently just drags and drops and boom, everything magically works.

Where is the magic file I need to access?

What is the missing step here and why is it nowhere online for me to fix it myself?

Posted (edited)

Is your batch file running the vanilla jar rather than the forge jar? It needs a forge jar in order to run the mods. From your batch, it looks like you might be running the vanilla jar.

java -server -Dfml.readTimeout=600 -Xms512M -Xmx5G -jar forge-1.16.1-32.0.106.jar nogui
pause

The above is what I use to make sure my server loads as forge, as you can tell it mentions the forge file. (Please don't actually copy this as it might not be favorable, but check the content)

 

Here is how my server folder looks like, to give you a better idea:

 CJCFSMm.png

Edited by tanyan
Posted

*insert image of Captain Picard facepalming*

 

So the script I blindly followed that my husband, who was unable to get mods working in single player all week, procured for me, was and is the problem. Further proof that if you want something done right, ask your kids not your spouse.

 

I will go test that out now but I'm willing to bet you just solved my issue.

Thank you for putting up with me breaking down, and for the magic step I needed. (I hope)

  • Haha 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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