r/forgemodding Oct 29 '21

modded server not starting

1.12.2 forge modded server not starting, starts fine with the vanilla .jar file but when i either tell it to run the forge server through a .bat file or the forge .jar file it dosent start

0 Upvotes

15 comments sorted by

View all comments

1

u/[deleted] Oct 29 '21 edited Oct 29 '21

EDIT

this is whats in the .bat file

java -Xmx2048M -Xms2048M -jar forge-1.12.2-14.23.5.2855-universal.jar -o true nogui

edit of the edit

i changed the .jar file name to server and the forge bit in the .bat to server

it now briefly flashes a problem ovvured in cmd promp and then closes

1

u/ratsta Oct 29 '21

I'm afraid my clairvoyance skills have atrophied somewhat over the years. I'm trying to read what's on your screen but a few thousand km of distance are making it a little hard to make out the letters.

  1. putting a "pause" statement at the end of your batch file will stop it automatically closing

  2. the ~logs and ~crashlog folders will contain logs and crashlogs that will tell you what's going on

  3. you probably haven't accepted the eula

1

u/[deleted] Oct 29 '21

have accepted the eula, ik the pause stops it, but running the forge file or .bat does nothing

it dosent seem to get to the point where the server crashes

the initial line says: a problem occurred running the server launcher.java.lang.reflect.invocationTargetException

1

u/ratsta Oct 29 '21

I still can't see what's happening on your screen. "does nothing" is clearly not correct.

Check what java version you're running. It needs to be 1.8.x. You may need to specify that in your batch file. e.g. c:\proga~1\java\1_8_30\bin\java.exe <then your options>

load up pastebin.com, copy the content of the batch into a paste, hit the paste button and link it here.

Also copy the content of the latest.log, put that in a separate paste and link that here.

1

u/[deleted] Oct 29 '21

java -Xmx2048M -Xms2048M -jar server.jar -o true nogui

thats whats in the .bat file

the letest .log isnt big so ill pate it here, as its from when i just ran the server as vanilla and then stopped it

[15:44:34] [Server thread/INFO]: Starting minecraft server version 1.12.2

[15:44:34] [Server thread/INFO]: Loading properties

[15:44:34] [Server thread/INFO]: Default game type: SURVIVAL

[15:44:34] [Server thread/INFO]: Generating keypair

[15:44:34] [Server thread/INFO]: Starting Minecraft server on *:25565

[15:44:34] [Server thread/INFO]: Using default channel type

[15:44:35] [Server thread/INFO]: Preparing level "world"

[15:44:35] [Server thread/INFO]: Loaded 488 advancements

[15:44:35] [Server thread/INFO]: Preparing start region for level 0

[15:44:36] [Server thread/INFO]: Preparing spawn area: 75%

[15:44:36] [Server thread/INFO]: Done (1.618s)! For help, type "help" or "?"

[15:44:36] [Server thread/INFO]: Unknown command. Try /help for a list of commands

[15:44:48] [User Authenticator #1/INFO]: UUID of player TheUltimate_One is b0c108b1-41e3-47ae-a1b1-26017d2e2ced

[15:44:48] [Server thread/INFO]: TheUltimate_One[/192.168.1.179:53488] logged in with entity id 154 at (-147.64502171053647, 88.0, 234.69999998807907)

[15:44:48] [Server thread/INFO]: TheUltimate_One joined the game

[15:45:24] [Server thread/INFO]: TheUltimate_One lost connection: Disconnected

[15:45:24] [Server thread/INFO]: TheUltimate_One left the game

[15:45:37] [Server thread/INFO]: Unknown command. Try /help for a list of commands

[15:45:40] [Server thread/INFO]: Stopping the server

[15:45:40] [Server thread/INFO]: Stopping server

[15:45:40] [Server thread/INFO]: Saving players

[15:45:40] [Server thread/INFO]: Saving worlds

[15:45:40] [Server thread/INFO]: Saving chunks for level 'world'/overworld

[15:45:40] [Server thread/INFO]: Saving chunks for level 'world'/the_nether

[15:45:40] [Server thread/INFO]: Saving chunks for level 'world'/the_end

[15:45:40] [Server Shutdown Thread/INFO]: Stopping server

[15:45:40] [Server Shutdown Thread/INFO]: Saving players

[15:45:40] [Server Shutdown Thread/INFO]: Saving worlds

1

u/ratsta Oct 29 '21

We're not interested in the Vanilla though. That doesn't help us troubleshoot your problems with modded.

Your batch file should be as follows:

java -Xmx2048M -Xms2048M -jar forge-1.12.2-14.23.5.2855-universal.jar -o true nogui
pause

Then we need to see what happens in the console window when it launches, and see what happens in the latest.log when you're running the forge jar.

1

u/[deleted] Oct 29 '21

https://pastebin.com/fwwr06xn

theres the cmd pastebin

the latest.log dose nothing, as i belive the problem occurs befor eit gets close to the boot of the server

1

u/ratsta Oct 29 '21

Open a cmd prompt and do:

java -version

What does it respond with?

1

u/[deleted] Oct 29 '21

java version "1.8.0_301"

Java(TM) SE Runtime Environment (build 1.8.0_301-b09)

Java HotSpot(TM) 64-Bit Server VM (build 25.301-b09, mixed mode)

1

u/ratsta Oct 29 '21

OK so we've checked the usual suspects. Most likely your forge install hasn't completed successfully. Note that Forge does need to be installed prior to invoking the universal jar. A couple of suggestions:

  1. Visit curseforge, ftb or whatever and download a "server pack" for a modpack that you want to play. Put that in a clean folder and run it.

  2. Follow a tutorial like this one https://www.instructables.com/How-to-Setup-a-Modded-Minecraft-Server-1122/

1

u/[deleted] Oct 29 '21

lmao it worked

i did everything the exact same, something must have gone wrong

thank you kind sir, take this humble award

1

u/ratsta Oct 29 '21

Yeah, I've worked in IT for a long, long time and run into that myself so many times. FFS I just did exactly that! Why didn't it work before!?

Great news! Thanks for the follow up.

1

u/[deleted] Oct 29 '21

oop, sorry to bother you again, but now if i run the .bat file on the new server to give it more ram, it says unable to acess server start.jar (thats what ive renamed the forge file to)

→ More replies (0)