morelore:server-pack
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| morelore:server-pack [2023/03/28 05:39] – created AnarchyOf5 | morelore:server-pack [2025/11/09 15:52] (current) – AnarchyOf5 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== How to install MoreLore on your own Server ====== | ====== How to install MoreLore on your own Server ====== | ||
| - | Eventually I plan to release a proper server pack, but until then use these steps to get up and running. | + | ** THIS TUTORIAL IS FOR LINUX ONLY ** |
| - | ===== Fabric Server Installer | + | ===== Downloading and Installing NeoForge |
| - | - Create an empty folder to hold your pack (you can name it whatever you like) | + | Download the correct version of Neoforge for the version of the pack you want to run. Neoforge version is listed in the [[morelore: |
| - | - Download | + | |
| - | - Fortunately, | + | |
| - | - Copy over the following folders from the client instance, into your newly created server | + | |
| - | * mods | + | |
| - | * config | + | |
| - | * kubejs | + | |
| - | ===== Start and Stop Script ===== | + | < |
| - | To automate the process of starting and stopping | + | You will need to SCP/ |
| - | #!/bin/sh | + | < |
| - | # More Lore Enhanced Vanilla Server Startup Script | + | |
| - | + | ||
| - | # Edit the below values to change JVM Arguments or Allocated RAM for the server: | + | |
| - | ALLOCATED_RAM=" | + | |
| - | JVM_ARGUMENTS=" | + | |
| - | FABRIC_VERSION=" | + | |
| - | FABRIC_LOADER_VERSION=" | + | |
| - | MC_VERSION=" | + | |
| - | FILE=" | + | |
| - | + | ||
| - | # Start server. | + | |
| - | echo " | + | |
| - | java -jar -Xms${ALLOCATED_RAM} -Xmx${ALLOCATED_RAM} ${JVM_ARGUMENTS} ${FILE} nogui | + | |
| - | echo " | + | |
| + | This will create the server.jar and the run.sh files you will need to start your server. | ||
| + | ===== Uploading Pack ===== | ||
| + | |||
| + | The client pack can be safely uploaded, using the same method you used to get the installer jar on your server. Make sure to remove the following mods: | ||
| + | |||
| + | * Entity Texture Features | ||
| + | * Freecam | ||
| + | |||
| + | These mods are client side only and will cause an error if you try to run the server. Once removed, you can run the server by entering the following command: ./run.sh | ||
| + | |||
| + | This will create your world and start your server. | ||
| + | |||
| + | ===== Persisting Server in Background ===== | ||
| + | |||
| + | This will require you to be logged in to stay running. Obviously, we don't want that. So, we can use either TMUX or Screen to create a special terminal session that will persists, even after you logout of your ssh session. For example, you can create a TMUX session using the following: | ||
| + | |||
| + | < | ||
| + | |||
| + | This will pop you into a TMUX session named morelore. From here, start your server using the command above and the hit CTRL + ALT then B to detach from the session. You can now safely log out and your server will stay running. We recommend restarting your server at least once a day. You can automate this using a cronjob, which you can set as you need. here's a basic restart script to get you started. It runs a 5 minute countdown timer and messages players in-game giving them a head's up a restart is about to happen. | ||
| + | |||
| + | < | ||
| + | # | ||
| + | # 5 Minute count down and restart | ||
| + | tmux send-keys -t morelore: | ||
| + | sleep 1m | ||
| + | tmux send-keys -t morelore: | ||
| + | sleep 1m | ||
| + | tmux send-keys -t morelore: | ||
| + | sleep 1m | ||
| + | tmux send-keys -t morelore: | ||
| + | sleep 1m | ||
| + | tmux send-keys -t morelore: | ||
| + | tmux send-keys -t morelore: | ||
| + | tmux send-keys -t morelore: | ||
| + | sleep 1m | ||
| + | tmux send-keys -t morelore: | ||
| + | </ | ||
| + | |||
| + | Keep in mind, the cronjob should be set for the non-admin user that is running your server! TMUX sessions are unique to the user that starts them. | ||
| + | |||
| + | If everything goes smooth, you should now have a working MoreLore server to play on with your friends! Congratulations. | ||
morelore/server-pack.1679981954.txt.gz · Last modified: by AnarchyOf5