Newer mod files, are confusing

  • Tech Support section is for getting help with FTB related problems. If there's a repeatable issue that can be labeled as a bug, then please use the issue tracker for the pack or the app at GitHub issue trackers - If there's no repository for a pack that means that the pack is old and/or will not be updated. Bugs for older packs will not be fixed, unless they are critical.
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

HLminer

New Member
Nov 5, 2019
4
0
2
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.
 
rem Do not touch
set MCVER=1.12.2
set JARFILE=minecraft_server.%MCVER%.jar
set LAUNCHWRAPPERVERSION=1.12
set LAUNCHWRAPPER=net\minecraft\launchwrapper\%LAUNCHWRAPPERVERSION%\launchwrapper-%LAUNCHWRAPPERVERSION%.jar
set FORGEJAR=FTBserver-1.12.2-14.23.5.2846-universal.jar

rem can be changed by user
set MAX_RAM=2048M
set JAVA_PARAMETERS=-XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=5 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10

is the setting.bat

It keeps listing "max ram 2048" by default but its not using that, and i cant see anything to adjust it.
 
It keeps listing "max ram 2048" by default but its not using that, and i cant see anything to adjust it.

Change
set MAX_RAM=2048M

to something else, example:
set MAX_RAM=4096M
for 4gb etc.

And then save the file.
 
Alright thanks, ill give it a try and see how it goes. Really want to try some of the new packs with my friends