Recently myself and a few friends are coming back to ftb, so i wanted to host a server again. I have hosted a few in the past so im fairly familiar with it. We are using (Ultimate reloaded v1.9.0; minecraft 1.12.2) Really the only trouble im running into is changing the amount of ran i have dedicated into the server. Okay so old serverstart.sh files all i had to do is look for ""java -Xms512M -Xmx1G"" and i could change the values, easy enough right? The new files--
-------------------------------------------------------------
#!/bin/sh
# Fix work directory
# Some GUIs set wrong working directory which breaks relative paths
cd -- "$(dirname "$0")"
# makes things easier if script needs debugging
if [ x${FTB_VERBOSE} = xyes ]; then
set -x
fi
# Read pack related settings from external setting file
. ./settings.sh
# Read settings defined by local server admin
if [ -f settings-local.sh ]; then
. ./settings-local.sh
fi
# cleaner code
eula_false() {
grep -q 'eula=false' eula.txt
return $?
}
# cleaner code 2
start_server() {
"$JAVACMD" -server -Xmx${MAX_RAM} ${JAVA_PARAMETERS} -jar ${FORGEJAR} nogui
}
# run install script if MC server or launchwrapper s missing
if [ ! -f ${JARFILE} -o ! -f libraries/${LAUNCHWRAPPER} ]; then
echo "Missing required jars. Running install script!"
sh ./FTBInstall.sh
fi
# check eula.txt
if [ -f eula.txt ] && eula_false ; then
echo "Make sure to read eula.txt before playing!"
echo "To exit press <enter>"
read ignored
exit
fi
# if eula.txt is missing inform user and start MC to create eula.txt
if [ ! -f eula.txt ]; then
echo "Missing eula.txt. Startup will fail and eula.txt will be created"
echo "Make sure to read eula.txt before playing!"
echo "To continue press <enter>"
read ignored
fi
echo "Starting server"
rm -f autostart.stamp
start_server
while [ -e autostart.stamp ] ; do
rm -f autostart.stamp
echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
for i in 5 4 3 2 1; do
echo "Restarting server in $i"
sleep 1
done
echo "Rebooting now!"
start_server
echo "Server process finished"
done
---------------------------------------
So this is what im looking at, while pasting it in here its slightly more readable, but other wise i honestly am really confused what i am suppose to be doing, and how to go about changing the server ram. Currently we are unable to play until i can change it, due to 256mb only being enough to start the server.
Any help would be appreciated. All and all i understand changing all the other server features, from past experiences, but the new stuff doesnt make sense to me.
-------------------------------------------------------------
#!/bin/sh
# Fix work directory
# Some GUIs set wrong working directory which breaks relative paths
cd -- "$(dirname "$0")"
# makes things easier if script needs debugging
if [ x${FTB_VERBOSE} = xyes ]; then
set -x
fi
# Read pack related settings from external setting file
. ./settings.sh
# Read settings defined by local server admin
if [ -f settings-local.sh ]; then
. ./settings-local.sh
fi
# cleaner code
eula_false() {
grep -q 'eula=false' eula.txt
return $?
}
# cleaner code 2
start_server() {
"$JAVACMD" -server -Xmx${MAX_RAM} ${JAVA_PARAMETERS} -jar ${FORGEJAR} nogui
}
# run install script if MC server or launchwrapper s missing
if [ ! -f ${JARFILE} -o ! -f libraries/${LAUNCHWRAPPER} ]; then
echo "Missing required jars. Running install script!"
sh ./FTBInstall.sh
fi
# check eula.txt
if [ -f eula.txt ] && eula_false ; then
echo "Make sure to read eula.txt before playing!"
echo "To exit press <enter>"
read ignored
exit
fi
# if eula.txt is missing inform user and start MC to create eula.txt
if [ ! -f eula.txt ]; then
echo "Missing eula.txt. Startup will fail and eula.txt will be created"
echo "Make sure to read eula.txt before playing!"
echo "To continue press <enter>"
read ignored
fi
echo "Starting server"
rm -f autostart.stamp
start_server
while [ -e autostart.stamp ] ; do
rm -f autostart.stamp
echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
for i in 5 4 3 2 1; do
echo "Restarting server in $i"
sleep 1
done
echo "Rebooting now!"
start_server
echo "Server process finished"
done
---------------------------------------
So this is what im looking at, while pasting it in here its slightly more readable, but other wise i honestly am really confused what i am suppose to be doing, and how to go about changing the server ram. Currently we are unable to play until i can change it, due to 256mb only being enough to start the server.
Any help would be appreciated. All and all i understand changing all the other server features, from past experiences, but the new stuff doesnt make sense to me.