Cazadorsniper / PO3

Project Ozone 3
42 stars 14 forks source link

Server starting as vanilla #1752

Open rodrigoguedes352 opened 1 year ago

rodrigoguedes352 commented 1 year ago

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

Cazadorsniper commented 1 year ago

can you copy/paste what you have in your .sh?

rodrigoguedes352 commented 1 year ago

"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

Cazadorsniper commented 1 year ago

What java version do you have on your server?

rodrigoguedes352 commented 1 year ago

11 I believe I'm currently in bed I apologise I can't verify it

What would the correct version?

Cazadorsniper commented 1 year ago

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.

rodrigoguedes352 commented 1 year ago

Okay thank you, I will try this when I get home from work and update you on it

rodrigoguedes352 commented 1 year ago

Im having quite a few issues getting java 8 to install properly on linux

Edgars-Cirulis commented 1 year ago

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?

rodrigoguedes352 commented 1 year ago

I am using Ubuntu, but on a server with nogui, command line only

rodrigoguedes352 commented 1 year ago

ive gotten java 1.8.0 installed, took some effort but we got there

rodrigoguedes352 commented 1 year ago

version 1.8.0_362 to be more precise

rodrigoguedes352 commented 1 year ago

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

Cazadorsniper commented 1 year ago

"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

rodrigoguedes352 commented 1 year ago

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

rodrigoguedes352 commented 1 year ago

!/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

rodrigoguedes352 commented 1 year ago

but its giving me an error now saying it expects a "then" on line 10 at end of file image

rodrigoguedes352 commented 1 year ago

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

rodrigoguedes352 commented 1 year ago

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

Cazadorsniper commented 1 year ago

in the server.properties try setting max-tick-time to -1