Skip to content

Commit

Permalink
fix start auto-server scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Oct 21, 2024
1 parent 5e13e57 commit b766baf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions automation/start-automated-server.bat
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ ECHO INFO: Starting Server... 1>> "%~dp0logs\serverstart.log" 2>&1
COLOR 07

REM Batch will wait here indefinitely while MC server is running
ECHO DEBUG: Attempting to execute [ java %MC_SERVER_JVM_ARGS% @user_jvm_args.txt @libraries/net/neoforged/neoforge/%MC_SERVER_FORGEVER%-beta/win_args.txt nogui %* ]
ECHO DEBUG: Attempting to execute [ java %MC_SERVER_JVM_ARGS% @user_jvm_args.txt @libraries/net/neoforged/neoforge/%MC_SERVER_FORGEVER%-beta/win_args.txt nogui %* ] 1>> "%~dp0logs\serverstart.log" 2>&1
ECHO DEBUG: Attempting to execute [ java %MC_SERVER_JVM_ARGS% @user_jvm_args.txt @libraries/net/neoforged/neoforge/%MC_SERVER_FORGEVER%/win_args.txt nogui %* ]
ECHO DEBUG: Attempting to execute [ java %MC_SERVER_JVM_ARGS% @user_jvm_args.txt @libraries/net/neoforged/neoforge/%MC_SERVER_FORGEVER%/win_args.txt nogui %* ] 1>> "%~dp0logs\serverstart.log" 2>&1
COLOR

REM This is what actually starts the server.
java %MC_SERVER_JVM_ARGS% @user_jvm_args.txt @libraries/net/neoforged/neoforge/%MC_SERVER_FORGEVER%-beta/win_args.txt nogui %*
java %MC_SERVER_JVM_ARGS% @user_jvm_args.txt @libraries/net/neoforged/neoforge/%MC_SERVER_FORGEVER%/win_args.txt nogui %*

REM If server is exited or crashes, restart...
REM CLS
Expand Down Expand Up @@ -291,7 +291,7 @@ ECHO.
ECHO.
ECHO Downloading FORGE (step 1 of 2). This can take several minutes, please be patient...

SET MC_SERVER_FORGEURL="https://maven.neoforged.net/releases/net/neoforged/neoforge/%MC_SERVER_FORGEVER%-beta/neoforge-%MC_SERVER_FORGEVER%-beta-installer.jar"
SET MC_SERVER_FORGEURL="https://maven.neoforged.net/releases/net/neoforged/neoforge/%MC_SERVER_FORGEVER%/neoforge-%MC_SERVER_FORGEVER%-installer.jar"
GOTO DOWNLOADINSTALLER

SET MC_SERVER_TMP_FLAG=0
Expand Down
4 changes: 2 additions & 2 deletions automation/start-automated-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ install_server(){
echo "Skipping download. Using existing installer.jar"
fi
else
export URL="https://maven.neoforged.net/releases/net/neoforged/neoforge/${FORGEVER}-beta/neoforge-${FORGEVER}-beta-installer.jar"
export URL="https://maven.neoforged.net/releases/net/neoforged/neoforge/${FORGEVER}/neoforge-${FORGEVER}-installer.jar"
echo $URL
which wget >> /dev/null
if [ $? -eq 0 ]; then
Expand Down Expand Up @@ -102,7 +102,7 @@ start_server() {
echo ""
echo "Starting server"
echo "INFO: Starting Server at " $(date -u +%Y-%m-%d_%H:%M:%S) >>serverstart.log 2>&1
java -Xmx${MAX_RAM} ${JAVA_ARGS} @user_jvm_args.txt @libraries/net/neoforged/neoforge/${FORGEVER}-beta/unix_args.txt nogui %*
java -Xmx${MAX_RAM} ${JAVA_ARGS} @user_jvm_args.txt @libraries/net/neoforged/neoforge/${FORGEVER}/unix_args.txt nogui %*
}

# routine for basic directory checks
Expand Down

0 comments on commit b766baf

Please sign in to comment.