User Tools

Site Tools


morelore:server-pack

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
morelore:server-pack [2023/03/28 06:10] AnarchyOf5morelore:server-pack [2023/05/28 15:21] – Update server pack problems AnarchyOf5
Line 1: Line 1:
 ====== How to install MoreLore on your own Server ====== ====== How to install MoreLore on your own Server ======
 +
 +**Update: 28 May 2023 - I am working through Curseforge's "process." The server pack is ready but they keep rejecting it for having non-Curseforge mods. SMH - it is identical with the main pack :| ... More to follow.**
  
 Eventually I plan to release a proper server pack, but until then use these steps to get up and running. Eventually I plan to release a proper server pack, but until then use these steps to get up and running.
Line 8: Line 10:
   - Download the latest Fabric server installer following the instructions [[https://fabricmc.net/use/server/|here]]. You will receive a .jar file after you are finished. This file is the one you need to start your modded MoreLore server instance. Place this file in your newly created folder.   - Download the latest Fabric server installer following the instructions [[https://fabricmc.net/use/server/|here]]. You will receive a .jar file after you are finished. This file is the one you need to start your modded MoreLore server instance. Place this file in your newly created folder.
   - Fortunately, MoreLore mods all work (or disable themselves as they should) in a server pack. So all you need to do is create a local client instance using your favorite launcher i.e. Curseforge, ATLauncher etc.   - Fortunately, MoreLore mods all work (or disable themselves as they should) in a server pack. So all you need to do is create a local client instance using your favorite launcher i.e. Curseforge, ATLauncher etc.
-  - Copy over the following folders from the client instance, into your newly created server+  - Copy over the following folders from the client instance, into your newly created server folder:
     * mods     * mods
     * config     * config
Line 15: Line 17:
 ===== Start and Stop Script ===== ===== Start and Stop Script =====
  
-To automate the process of starting and stopping your server, you can use the following bash code as a reference. If you are hosting this on a dedicated Linux server, I recommend using either screen or tmux to run the game in the background. This will allow you to ssh in and attach/detch from the current game session without the server shutting down.+To automate the process of starting and stopping your server, you can use the following bash code as a reference. If you are hosting this on a dedicated Linux server, I recommend using either ''screen'' or ''tmux'' to run the game in the background. This will allow you to ssh in and attach/detach from the current game session without the server shutting down.
  
   #!/bin/sh   #!/bin/sh
Line 23: Line 25:
   ALLOCATED_RAM="8G"   ALLOCATED_RAM="8G"
   JVM_ARGUMENTS="-XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AlwaysPreTouch"   JVM_ARGUMENTS="-XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AlwaysPreTouch"
-  FABRIC_VERSION="fabric-0.11.1" 
-  FABRIC_LOADER_VERSION="0.14.11" 
-  MC_VERSION="1.19.2" 
   FILE="./fabric-server-mc.1.19.2-loader.0.14.17-launcher.0.11.2.jar"   FILE="./fabric-server-mc.1.19.2-loader.0.14.17-launcher.0.11.2.jar"
      
Line 33: Line 32:
   echo "Server shutting down on $(date)."   echo "Server shutting down on $(date)."
  
-You can save this code into a file named whatever you want with a .sh extension. Make sure to make it executable using the following command (on Linux)+You can save this code into a file named whatever you want with a ''.sh'' extension. Make sure to make it executable using the following command (on Linux)
  
   chmod +x YourFile.sh   chmod +x YourFile.sh
 +  
 +After that you are good to go! Keep in mind that if you run this is an active shell, the server will stop when you close that shell/terminal. As mentioned above, you can use the GNU Screen utility to create a specific "virtual terminal session" using something like this:
 +
 +  screen -S Minecraft
 +
 +This will create a new session called minecraft and pop you in it. Then run shell script to start the server:
 +
 +  ./YourFile.sh
 +
 +As it boots up, you can "detach" from the running session using ''Control + A + D''
 +
 +To return to you session in the future you can use:
 +
 +  screen -R Minecraft
 +
 +If everything goes smooth, you should now have a working MoreLore server to play on with your friends! Congratulations.
morelore/server-pack.txt · Last modified: 2023/09/30 15:46 by AnarchyOf5