Newer mod files, are confusing

Discussion in 'Tech Support' started by HLminer, Nov 5, 2019.

  1. HLminer

    HLminer New Member

    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 files all i had to do is look for ""java -Xms512M -Xmx1G"" and i could change the values, easy enough right? The new files--


    # 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

    # Read pack related settings from external setting file
    . ./

    # Read settings defined by local server admin
    if [ -f ]; then
    . ./

    # 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 ./

    # 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

    # 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

    echo "Starting server"
    rm -f autostart.stamp

    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
    echo "Rebooting now!"
    echo "Server process finished"

    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.
  2. grandrolf

    grandrolf Popular Member Trusted User

    check (or settings.bat for windows)
  3. HLminer

    HLminer New Member

    rem Do not touch
    set MCVER=1.12.2
    set JARFILE=minecraft_server.%MCVER%.jar
    set LAUNCHWRAPPER=net\minecraft\launchwrapper\%LAUNCHWRAPPERVERSION%\launchwrapper-%LAUNCHWRAPPERVERSION%.jar
    set FORGEJAR=FTBserver-1.12.2-

    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.
  4. grandrolf

    grandrolf Popular Member Trusted User

    set MAX_RAM=2048M

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

    And then save the file.
  5. HLminer

    HLminer New Member

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

Share This Page