Server starting as vanilla
Opened this issue · 19 comments
Use the search function before reporting to see if the issue has been reported before.
**Pack Version: PO3-3.4.11F
**Pack Mode (Normal, Titan, Kappa, Mythic): Kappa
**Singleplayer, Multiplayer, or LAN?: Multiplayer
Description: I have a server on linux, ive run several other modpacks on this and worked fine, however when i tried to do a PO3 modpack, i did every step like i usually do, and then tried to start the server, however the server runs as vanilla, as if no mods were added, even tho everything is in the same folder and im running the forge jar in the .sh file
Steps to reproduce: Idk honestly
Crash log (use pastebin or issue will be closed):
Theres no crash or log, it justs starts like a regular vanilla server would
can you copy/paste what you have in your .sh?
"C:\Program Files\Java\jre1.8.0_301\bin\java.exe" -Xmx6144M -Xms1024M -jar forge-1.12.2-14.23.5.2860.jar nogui
pause
What java version do you have on your server?
11 I believe I'm currently in bed I apologise I can't verify it
What would the correct version?
you need java 8, then you need to point the .sh to the correct version of java as you see here: "C:\Program Files\Java\jre1.8.0_301\bin\java.exe" just need to change the numbers.
I think for linux you need a -nogui but i'm not 100% sure on that.
Okay thank you, I will try this when I get home from work and update you on it
Im having quite a few issues getting java 8 to install properly on linux
Im having quite a few issues getting java 8 to install properly on linux
I have great knowladge on Linux, May please you tell what distro your using?
I am using Ubuntu, but on a server with nogui, command line only
ive gotten java 1.8.0 installed, took some effort but we got there
version 1.8.0_362 to be more precise
Update: since installing java 1.8.0, the mods have started loading, however i have no idea how to make the start.sh file to work, it i'd be extremely thankful if you could help me with that
"C:\Program Files\Java\jre1.8.0_362\bin\java.exe" -Xmx6144M -Xms1024M -jar forge-1.12.2-14.23.5.2860.jar nogui
pause
you can try that or you can try "hijacking a bat" from another pack's server files (like MCEternal) and changing the the bat to an sh
the problem is that path isnt the path on linux, i sort of hijacked a bat from a different modpack i think ahaha, i looked at a different .sh from a 1.7.10 modpack and it was way different, i tried changing the path for java and the forge jar name but it started giving me errors
#!/bin/bash
if ! grep -q "eula=true" eula.txt; then
echo "Do you agree to the Mojang EULA available at https://account.mojang.com/documents/minecraft_eula ?"
read -N 1 -p "[y/n] " EULA
if [ "$EULA" = "y" ]; then
echo "eula=true" > eula.txt
echo
fi
fi
"/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -Xmx6144M -Xms6144M -jar forge-1.12.2-14.23.5.2860.jar nogui
This is what the .sh that i found looked like after i changed the path and jar versions
however i did manage to run the server by simply running the jar, however i need to add launch arguments because my gf has a slower pc and she needs a very high time out time so she doesnt get disconnected while trying to connect to the server
Update: I've gotten everything to work properly, however i cant find a fix to increase the timeout to be more than 30 seconds, my gf takes around 180+seconds to join however my current start.sh looks like this:
#!/bin/sh
"/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" -server -Xms6144M -Xmx6144M -Dfml.readTimeout=3000000 -jar forge-1.12.2-14.23.5.2860.jar nogui
But it doesnt appear to be working as she gets disconnected even after 30 seconds
in the server.properties try setting max-tick-time to -1