Jump to content

Server Setup: Difference between revisions

21,821 bytes removed ,  6 months ago
Still heavily revising but basic table and link to individual guides now available.
m (→‎Versions: no bedrock edition.)
(Still heavily revising but basic table and link to individual guides now available.)
Line 1:
__TOC__
<div align="justify">
A '''server''' is a way of running Minecraft that separates the game into two parts. The ''server'' simulates the world, while a ''client'' displays and handles input/output from each player and rendering the world. The two communicate constantly to create the game; a breakdown of this communication can cause [[lag]]. Running GT:NH as a separate server is required for more than one player to access the same world, as [[Quest Book|BetterQuesting]] does not support LAN. A Minecraft license is not requiredneeded for the server, but each player connecting must have a valid Minecraft account. Servers also need to be online to authenticate joining players.
</div>
 
==== Pros/Cons ====
<div align="justify">
Servers enable multiplayer fun, can improve TPS even in a single player (SP) world on the same machine, allow chunk-loaded areas to run 24/7 for passive resource production, and supports party progress in the [[Quest Book]]. They also have some downsides; while running a server/client split can improve performance for SP, it's more prone to bugs and stability issues. Having machines running constantly can cause breakdowns if [[maintenance]] isn't automated or something unforeseen happens in-game. Servers are more complicated to set up than a SP instance of GT:NH and require regular technical support (restarts, backups, updates, lag-busting, etc.) An improperly secured server can leave its host machine vulnerable to DDoS attacks, becoming a bitcoin farming bot, or accessed by 3rd parties. Renting a remote hosting service is safer, but usually carries a monthly fee. If self-hosting, a second computer is usually used to run just the server which has its own cost.
</div>
 
==== Versions ====
<div align="justify">
Servers can run either the Java8 or Java17+ build of GT:NH. '''Java17JRE 17+ is strongly recommended''' unless a hybrid Thermos, Crucible or Ultramine server software setup is being deployed. Players connecting to the server can run either Java8 or Java17+ with their own launcher; it doesn't have to match the server's, nor do all players need to use the same launcher/Java to play. The ''version'' of GTNH (ex. 2.4.0) ''must'' match exactly between all clients and the server. If the server updates to a different version, all players will have to update as well to join again. GTNH is not compatible with Bedrock Edition, due to being built almost entirely with mods.
</div>
 
{{Box-round|title=Lost? | Any of these computer terms drawing a blank? Not sure the difference between a JDK, JRE or Java SE? Read this.
==Server update (All Platforms)==
* [[Modded Minecraft Basics]] }}
 
== Hardware and Specs ==
 
== Server Files ==
 
== Setup Guides ==
<div align="center">
{|class="wikitable" align-center style="width: 85%; text-align: center;"
! style="background-color:#72c1d9" colspan="2" |Platform and Hosting
|-
! style="background-color:#b9e0ec"|<big>Windows</big> !! style="background-color:#b9e0ec"|<big>Linux</big>
|-
|
*[[Server Setup (Windows, Local Host)|'''Windows Local Hosting''']]
|
*[[Server Setup (Linux, Oracle Cloud)|'''Remote Hosting on Oracle Cloud''']]
*[[User:Asoftbird/sandbox_serversetupguidev2|'''Linux Remote Hosting''']] <span style="color:red"> WIP </span>
|}
</div>
 
== Server Update ==
<div align="justify">
# Check in [[Dev Release Stability]] that the version you want to update to is stable enough. Note that versions ending with `.0` are generally considered stable, e.g., `2.3.0`.
Line 32 ⟶ 54:
</div>
 
== ServerWhitelisting setupPlayers for Windows ==
 
=== Warnings ===
<div align="justify">
This part of the guide was last revised in December 2023 with version 2.4.0. The download links are compatible with each other.
 
If you follow this guide and try to connect, your launcher may have downloaded the latest client instead.
</div>
 
===Introduction===
<div align="justify">
This structure of this guide is as follows:
 
*Downloading the Files
*Server Setup
*Starting and Stopping the Server
*Server Backups
*FAQ (Frequently Asked Questions)
</div>
 
===Download files===
<div align="justify">
While our pack is hosted on many launchers we also maintain a repository of all of our releases. For the purpose of this guide we will be utilizing our hosted repositories as well as the Prism launcher.
 
#Download the server pack from here: http://downloads.gtnewhorizons.com/ServerPacks/
#Download Prism from here: https://prismlauncher.org/download/
#Download the client pack from here: http://downloads.gtnewhorizons.com/Multi_mc_downloads/
There are two versions of the pack, both for server and client. ''Unless you have a reason not to, you should use the Java 17+ version'' as it has better garbage collection. The only major reason not to use J17+ for a server is for Thermos compatibility - and if you know what Thermos is, you know how to setup your own server likely.
 
You can find and install the latest version of Java here: https://adoptium.net/ - any Java build of 17 or later should work, and you may already have one installed.
 
''Note: Please reference this guide on how to setup and install our pack in Prism (this guide will only cover the server portion.): [[Installing and Migrating]]''
</div>
 
===Server setup===
====Extract server files====
<div align="justify">
[[File:Extract Server Files.png|alt=Extract Server Files Image|none|thumb|Right click on the server files ZIP archive and choose "Extract All..."]]
[[File:Extraction Destination.png|alt=Extraction Destination Image|none|thumb|Once you've chosen your name for the folder you can hit extract. Whether or not you uncheck the "Show extracted files when complete" checkbox is up to you.''Note: It is highly recommended to save the server files somewhere that is NOT on OneDrive (so, not the desktop but something like C:\GTNH or similar).'']]
</div>
 
====Agree to EULA====
<div align="justify">
[[File:EULA.txt File Content.png|alt=File Content|none|thumb|Open the eula.txt file and change "false" to "true"]]
By setting the text of the EULA.txt file to true you are agreeing to the [https://account.mojang.com/documents/minecraft_eula following] EULA.
 
You can edit the <code>startserver-java9.bat</code> file if you want to change the memory usage from the default 6G (six gigabytes) - change both cases of "6G" to whatever memory amount you want. GT:NH will not run with less than 4G, and 6G should be a fine default until later.
</div>
 
====Run the server====
<div align="justify">
Starting the server at this point is very straight forward. Simply double click:<syntaxhighlight lang="text">
startserver-java9.bat
</syntaxhighlight>''Note: If you are using the Java 8 version it will be startserver.bat''[[File:Firewall Warning.png|alt=Firewall Prompt|none|thumb|If you get the following prompt while the server is starting you can hit Allow Access. It is recommended making sure you're only allowing access on Private Networks (this doesn't impact if you want to open your modem/router for friends to join but is just best practice).]]
 
''Note: It may take quite some time for the server to startup.''
 
If at this point you get an error like "<code>Error: Could not find or load main class @java9args.txt</code>" and it immediately exits, your default Java version is probably Java 8. You can either change the default system Java, or edit <code>startserver9.bat</code> and replace <code>java</code> with the full path to the correct Java in quotes, something like <code>"C:\Program Files\Java\jdk-17.0.6\bin\java.exe"</code> - if you can't find it, Prism or MultiMC may be able to find the list of installed Javas (edit a client instance, select Settings, click Auto-Detect).
[[File:Terminal Window.png|alt=Console Window Image|none|thumb|When your server is ready you will typically see what is boxed in by red at the bottom. At this point your server is running and you can connect to it!]]
 
In order to stop the server simply type "stop" and press Enter:<syntaxhighlight lang="text">
stop
</syntaxhighlight>The server will scroll some information by and then the window will close when it shuts down entirely.
 
DO NOT just close the command window instead of using stop. Doing so may corrupt your world data and your world will become unplayable.
</div>
 
====Whitelist players====
<div align="justify">
In order to connect to the server yourself or allow other players to connect you must add them to the whitelist. To do this use the following command inside the server console window:<syntaxhighlight lang="text">
Line 107 ⟶ 62:
</syntaxhighlight>
</div>
 
===Server backups===
== Server Backups ==
<div align="justify">
Go ahead and follow the above procedure to stop the server.
 
Unlike the client (single player) version of GT:HN, the server does ''not'' ship with a backup mod. We recommend ''[https://github.com/GTNewHorizons/ServerUtilities/releases Server Utilities]'' which is the updated GT:HN fork of FTB Utilities. You can find it here: https://github.com/GTNewHorizons/ServerUtilities/releases - you will wantDownload the most recent release and the file that ends in number{numbers}.jar (so 2.0.3.jar, not -dev.jar or -sources.jar). Place thisthe file(s) in your mods directory on the server (and it is recommended to put it on your client, also, so you can get access to claims, chunkloading, etc. See [[Additional Mods]] for more details or the repository [https://github.com/GTNewHorizons/ServerUtilities#readme Readme].
 
 
Line 117 ⟶ 73:
</div>
 
=== Chunk Loading ===
==Server setup for Linux (Oracle Cloud)==
<div align="justify">
The general setup for Linux is - get a server. Get SSH access to the server. Make sure Java 17+ is installed. Download the latest server pack from https://downloads.gtnewhorizons.com/ServerPacks/ (Use the Java_17-20.zip version, which will work with Java 21. Unzip the server pack and run ''startserver.sh''.
 
The instructions below are specific for Oracle Cloud but may help with generic Linux installs.
</div>
 
===Warnings===
<div align="justify">
* In less than half a year, Oracle has changed the terms of the Always Free tier from 4 TPU cores and 24 GB ram to 3k OCPU hours and 18k GB RAM hours. They can change the rules again in the future. Be wary.
* Your Oracle account will be terminated if you connect to the instance through VPN, so don't.
* Backup your server periodically to a non-Oracle platform, so you don't suddenly discover that your account was terminated along with all data.
</div>
 
===Introduction===
<div align="justify">
This Linux setup uses an Oracle [https://blogs.oracle.com/developers/post/how-to-set-up-and-run-a-really-powerful-free-minecraft-server-in-the-cloud blogpost] about how to set up a server on their platform.
 
You will need a debit/credit card on the signup step. Oracle will withdraw 1 Euro and put it back to check that the card is valid.
As of February 2023, you can have a free server with 4 OCPU cores, 24GB RAM, and 200 GB storage on the Oracle platform.
 
This setup was tested on the GTNH version 2.2.3.
 
The steps are as follows:
# Sign up for Oracle Cloud.
# Set up an instance.
# Set up a GTNH server.
# (Optional) Install a mod or software that backs up the server regularly.
 
The only hurdle during the signup step is that the debit/plastic card is mandatory. It also takes roughly a minute for the system to create your account.
 
You might encounter the "Out of capacity" error when you request an instance in some of the available regions. In that case if you really need an instance in this region, please try again after a while. Due to the popularity of the service, it can take up to two months until you are able to create an instance in this region.
</div>
 
===Set up an instance===
====Create an instance====
<div align="justify">
This step is taken from the Oracle's [https://blogs.oracle.com/developers/post/how-to-set-up-and-run-a-really-powerful-free-minecraft-server-in-the-cloud manual], so check it out if you need more info. A concise version of it is given in this guide.
 
Go to "Create a VM instance". VM means Virtual Machine.
This action should be in Quick Actions or in the dropdown menu that is on the upper left.
 
You will be presented with many fields. First is the server name. Choose whatever you see fit -- this name will not be shown anywhere on the GTNH server.
 
Compartment is just a way to organize machines, so you can leave it as it is.
 
Availability Domain can be left defaults too, however do mind that you can accidentally choose something that is not in the Always Free price tier if you change it.
 
The important part is the Image and Shape section. That's where you select what Operating System (OS) and hardware your server is going to use.
 
In Image, this guide suggests to use the Oracle Linux Cloud Developer image because it requires less actions to set up at the cost of taking more space. Alternatively, you can use the Oracle Linux image to reduce the bloat, but you will need to install Java 8 on it by yourself.
 
In Shape, select Ampere architecture. The current free tier allows 4 CPUs and 24GB RAM, so if you don't plan to host more servers, might as well use the full capacity that you are given (4 CPUs, 24 GB RAM). After you selected the Shape, check that you still have the Always Free Eligible tag near it. If you don't, you might have selected something wrong.
 
Next up is the Networking part. Select "Create new cloud network" and "Create new public subnet" if it's your first instance, or use the already-existing nets if not.
 
Also select "Assign a public IPv4 address". You will use this address to connect to the server.
 
Next is the SSH part. You can google how it works -- this guide will describe one of the options without getting into details.
Select "Generate SSH key pair", then download the private key and save it -- you will need it every time you log into the instance.
 
Leave the Boot volume defaults and press Create. This will start the process of creating the instance.
 
You will see the yellow sign on the left that says "Provisioning". After a minute, it will change to green "Running". It means you can connect to the instance. Note the fields Username and Public IP Address -- you will need them.
</div>
 
====Set up network rules====
<div align="justify">
When your Instance Details turns green and Running, click on the Subnet link in the Primary VNIC section. Then in Security Lists click on the only one that is there, the default one, then click on Add Ingress Rules.
 
You need to add two rules, one for each IP protocol. One for TCP, and one for UDP. Here's what you need to put in:
* Stateless field unchecked.
* Source type: CIDR.
* Source CIDR: 0.0.0.0/0.
* IP protocol: first rule TCP, second rule UDP.
* Source port range: leave it empty.
* Destination port range: 25565.
 
When you filled out the two rules, press Add Ingress Rules.
</div>
 
====Tweak the instance====
<div align="justify">
In order to connect to the instance, you need a "shell" program. If you're on Windows, this guide suggests to install [https://git-scm.com/downloads Git Bash] for that.
 
When you launch Git Bash, use the following command to connect to the instance:
<syntaxhighlight lang="bash">
ssh opc@instance_IP -i path_to_SSH_key
</syntaxhighlight>
A finished example can look like this:
<syntaxhighlight lang="bash">
ssh opc@144.24.170.229 -i ~/ssh-key-2022-09-07.key
</syntaxhighlight>
* ''ssh'' is the name of the command,
* ''opc'' is the user name,
* ''@'' can be read as "at",
* ''144.24.170.229'' is the IPv4 address of the instance,
* '''''-i''''' is the flag that tells ssh to use a file as a password,
* ''~/ssh-key-2022-09-07.key'' is the path to the private key that you downloaded.
 
"~" is the shortcut to your user folder that is usually located at %userprofile% -> C:/Users/%Username%. It was given just as an example of how to circumvent the issues of linux-to-windows pathing in GitBash by placing your key somewhere in your user folder.
 
Okay, you connected to the instance, now what? The upside of the image Oracle Linux Cloud Developer that we chose during the installation is that we don't need to bother installing Java 8 because it's pre-installed -- we just need to choose it among other versions. Type in the following to start the choice:
<syntaxhighlight lang="shell-session">
sudo alternatives --config java
</syntaxhighlight>
You will be given a list of numbers and names. Type in the number that corresponds to java-1.8.0-openjdk.aarch64.
<syntaxhighlight lang="shell-session">
There are 8 programs which provide 'java'.
Selection Command
-----------------------------------------------
1 java-1.8.0-openjdk.aarch64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-1.el8_5.aarch64/jre/bin/java)
2 java-11-openjdk.aarch64 (/usr/lib/jvm/java-11-openjdk-11.0.15.0.9-2.el8_5.aarch64/bin/java)
3 /usr/java/jre1.8.0_311-aarch64/bin/java
4 /usr/java/jdk1.8.0_311-aarch64/bin/java
* 5 /usr/java/jdk-17.0.1/bin/java
6 /usr/java/jdk-11.0.13/bin/java
7 /usr/lib64/graalvm/graalvm22-ee-java11/bin/java
+ 8 /usr/lib64/graalvm/graalvm22-ee-java17/bin/java
 
Enter to keep the current selection[+], or type selection number: 1
</syntaxhighlight>
Other options that use Java 8 (also called 1.8.0) might work but they were not tested.
 
If you have chosen the bare Image at the installation step, you would use "yum list jdk*" to see available java versions and then install java1.8 which is the screen name of Java 8.
 
The next step is to tell the instance firewall to let the connections through:
<syntaxhighlight lang="sh">
sudo firewall-cmd --permanent --zone=public --add-port=25565/tcp
sudo firewall-cmd --permanent --zone=public --add-port=25565/udp
sudo firewall-cmd --reload
</syntaxhighlight>
</div>
 
===Set up a GTNH server===
<div align="justify">
1. Download the server zip from here: http://downloads.gtnewhorizons.com/ServerPacks/
<syntaxhighlight lang="shell">
wget http://downloads.gtnewhorizons.com/ServerPacks/GT_New_Horizons_server_version_SERVER.zip
</syntaxhighlight>
2. Check that you have unzip installed. Install it if you don't have it on the server.
<syntaxhighlight lang="bash">
yum list *unzip
</syntaxhighlight>3. Unzip the server into a folder
<syntaxhighlight lang="shell">
unzip server.zip -d destination
</syntaxhighlight>
The complete command might be like:
<syntaxhighlight lang="shell">
unzip GTNH-1.7.10-2.1.2.3qf.zip -d ~/minecraft_server
</syntaxhighlight>
4. In the ''server'' folder, agree to Minecraft End User License Agreement (EULA):
<syntaxhighlight lang="shell">
cd your_minecraft_server_folder
echo "eula=true" > eula.txt
</syntaxhighlight>
You should have ''eula.txt'' in your server folder after the ''echo'' command.
 
And set execute permission on startserver.sh using chmod command:<syntaxhighlight lang="shell">
chmod +x startserver.sh
</syntaxhighlight>
5. Launch the server to test that things work:<syntaxhighlight lang="shell">
bash startserver.sh
</syntaxhighlight>
It will take several minutes to launch. The last line will likely be from [FML] about unloading world 1.
 
6. Whitelist yourself to get on the server:
<syntaxhighlight lang="console">
whitelist add your_nick
</syntaxhighlight>
so it will look like
<syntaxhighlight lang="console">
whitelist add jonsnowwastaken
</syntaxhighlight>
7. Connect to your server:
 
In client, use the same IPv4 that you used to connect through SSH and the port 25565 -- the default one for minecraft servers.
<syntaxhighlight lang="console">
instance_IP:25565
</syntaxhighlight>
 
8. Stop the server. We're not done with setting things up:
<syntaxhighlight lang="console">
stop
</syntaxhighlight>
After shutting down, it will begin the countdown to reboot, so press Ctrl+C to stop it completely.
</div>
 
===Install a mod for backups===
<div align="justify">
Two mods are needed to back up your server: FTB-Utilities and FTB-Library.
*FTB-Utilities is located here: https://github.com/GTNewHorizons/FTB-Utilities/releases/latest/
*FTB-Library is located here: https://github.com/GTNewHorizons/FTB-Library/releases/latest
 
Below is an example of how the process can go. Check if it's the most recent version of the mods before proceeding.
 
It would be most convenient to download the mods directly through the <code>wget</code> command to the <code>mods</code> folder on the server. If <code>wget</code> fails, we can upload the mods to the server by <code>scp</code>.
 
Below are the examples of both ways. Please use the <code>scp</code> option only if the <code>wget</code> one fails:
 
* Using <code>wget</code> : <syntaxhighlight lang="shell">
cd server_directory/mods
wget $(curl -s https://api.github.com/repos/GTNewHorizons/FTB-Utilities/releases/latest | grep browser_download_url | tail -n 1 | cut -d '"' -f 4)
wget $(curl -s https://api.github.com/repos/GTNewHorizons/FTB-Library/releases/latest | grep browser_download_url | tail -n 1 | cut -d '"' -f 4)
</syntaxhighlight>
 
* Using <code>scp</code> : <syntaxhighlight lang="shell">
scp -i path_to_private_SSH_key path_to_FTBUtilities_on_your_computer opc@instance_ip:server_folder/mods/FTBUtilities_full_name.jar
scp -i path_to_private_SSH_key path_to_FTBLib_on_your_computer opc@instance_ip:server_folder/mods/FTBLib_full_name.jar
</syntaxhighlight>
 
A finished <code>scp</code> example might look like this:
 
<syntaxhighlight lang="output">
scp -i ~/.ssh/ssh-key-2022-09-07.key ~/Downloads/FTBUtilities-1.7.10-1.0.18.7-GTNH.jar opc@144.24.170.228:~/minecraft-server/mods/FTBUtilities-1.7.10-1.0.18.7-GTNH.jar
scp -i ~/.ssh/ssh-key-2022-09-07.key ~/Downloads/FTBLib-1.7.10-1.0.18.5-GTNH.jar opc@144.24.170.228:~/minecraft-server/mods/FTBLib-1.7.10-1.0.18.5-GTNH.jar
</syntaxhighlight>
* scp is the command that stands for "secure copy",
*-i is the flag that says to use the file to identify youself, like we did with ssh,
*~/.ssh/ssh-key-2022-09-07.key is the example of the path to the key, ~ is the shortcut for you user folder,
*~/Downloads/FTBLib.jar is the location of the mod jar on your computer,
*opc@144.24.170.228:~/minecraft-server/mods/FTBLib-{Minecraft version}-{version}-GTNH.jar is the location of the resulting file on the server.
 
Now you can launch your server again to check if the backup works.
 
A backup should be visible in the log immediately after the server is done loading.
 
The default frequency of the backups is once every two hours. To make the backups more frequent, open the config file that is created after the server is launched for the first time with the backup mods. The following steps use <code>vim</code> as the default text editor to edit <code>config.json</code> , you may use other text editor such as <code>nano</code> .
 
<syntaxhighlight lang="bash">
cd server_folder/local/ftbu
vim config.json
</syntaxhighlight>
 
# In vim, press <code>/</code> to go into search mode and type <code>backups</code>, then press <code>ENTER</code>.
#The backup settings are located at the top of the file in the "backups" section.
#press <code>a</code> to go into insert mode to change the value, press <code>ESC</code> to escape from insert mode when finished. Change the value after the key.
#<code>backup_timer</code> default is 2.0, If you want to make a backup every 30 minutes, change the value from 2.0 to 0.5.
#<code>backups_to_keep</code> Change to keep more backups. When the number reaches the specified maximum, the oldest backup is deleted.
# <code>Folder</code> specify the path of the backups. The default works too.
#To exit vim and save the changes, press <code>:</code> then type <code>wq</code> and press <code>ENTER</code> , wq which means Write and Quit.
#If you get an error on writing changes into the file, check the file permissions. Although if the error is about that you can't write into the file and that's your default user, that likely means that you launched the server as root before, which can lead to many complications later, so please don't launch a server as root.
 
After that, we come to the last step in this manual -- actually testing that the backup works:
# Stop the server.
#Locate the "backup/" folder: <code>cd backup</code>. By default it's in your server folder.
#Copy your world folder that is usually called "World/" to a place outside the server folder just in case the backup is broken. e.g <code>cp World ~/</code> Copy to home folder.
#Delete your world folder '''in the ''server'' folder'''. e.g <code>rm -ri world</code> to delete world folder. Pay extra attention when running <code>rm</code> command !! There is '''NO''' recycle bin on Linux server.
#Unzip the backup in the place of a deleted folder.
#Launch the server again to see if the backup is fine.
 
It's suggested to keep your world folder named World to prevent further complications. You can use the <code>mv</code> command to rename a folder: <syntaxhighlight lang="bash">
mv world World
</syntaxhighlight>
 
To start a backup manually, send the following command when you're on the server: <syntaxhighlight lang="text">
/admin backup start
</syntaxhighlight>
 
If you want to use a different mod for backups, like AromaBackup, please refer to the page [[Backups and Recovery]].
</div>
 
===Run the server===
<div align="justify">
So, you can launch the server, but when you leave the ssh connection, the server closes. That happens because together your ssh connection keeps things running.
 
To make the server run without you being connected to the ssh, one of the solutions is to use the "screen" command.
 
<syntaxhighlight lang="bash">
# Connect to the instance
ssh opc@instance_IP -i path_to_SSH_key
 
# Check that screen is installed
screen --version
 
# Initiate a screen
screen
 
# Start the server
cd server_folder
bash startserver.sh
</syntaxhighlight>
 
To detach from the screen without terminating it, use Ctrl+A and then Ctrl+D.
 
To reattach to the screen, use
<syntaxhighlight lang="text">
screen -r
</syntaxhighlight>
 
There are more options that you can use with this command, such as multiple named screens. You can check [https://linuxize.com/post/how-to-use-linux-screen/ this] manual for the instructions. or run the command <code>man screen</code>.
</div>
===Improvements===
====More space====
<div align="justify">
It's very likely that 50GB will not be enough for a lategame server. You will need more storage space.
 
You can create an additional volume to attach to your instance.
 
Oracle gives 200GB for free, and the default instance takes 47GB, so it's safe to create a 150GB block-volume, as Oracle calls it.
 
In short, you will do the following:
#Create a 150GB block-volume. Use [https://docs.oracle.com/en-us/iaas/Content/GSG/Tasks/addingstorage.htm this] manual. Make a 150GB volume instead of 50GB that is in the guide.
#Attach the block-volume to your instance on the site. Use the same manual.
#Attach the block-volume in the virtual machine. Use the same manual.
#Format the block-volume. [https://ittutorial.org/oracle-linux-disk-format-and-mount-steps/ This] tutorial likely has the right information, but it is not certain. Please check it in other sources before applying.
#Mount the block-volume. Same as the step above -- the info was forgotten, so please check what is written in the manual.
#Either move the whole server to the new block-volume or move only backups. Better to move the whole server in order to reduce the chance of error.
# Optionally, you can make the block-volume to mount automatically when the instance launches. Use [https://docs.oracle.com/en-us/iaas/Content/Block/References/fstaboptionsconsistentdevicepaths.htm#fstab_Options_for_Block_Volumes_Using_Consistent_Device_Paths this] manual. However, be very careful on this step. As written at the bottom of the manual, you can brick your instance if you make a mistake and would have to use the site-console to revert changes. However, the result is well worth it -- you won't have to remember how to mount a block-volume if you need to restart the instance.
</div>
 
====Chunk-loading====
<div align="justify">
The 16x16 pieces of the world are called chunks. When a player loads into the world, the server starts to simulate the chunks around them -- it loads these chunks. You want some chunks to remain loaded when you're away. For example, for the machines to continue working, or for the crops to grow.
 
To have the functionality to load chunks, you need to add ServerUtilities or FTBUtilities & Library. ServerUtilties is recommended since it's a fork of FTBU modified specifically for GTNH. Do not install both of these at once, only one is necessary.
To have the functionality to load chunks, you need to add two mods both to the client and server -- [https://github.com/GTNewHorizons/FTB-Utilities/releases FTB-Utilities] and [https://github.com/GTNewHorizons/FTB-Library/releases FTB-Library].
* [https://github.com/GTNewHorizons/ServerUtilities/releases Server Utilities]
* [https://github.com/GTNewHorizons/FTB-Utilities/releases FTB-Utilities] and [https://github.com/GTNewHorizons/FTB-Library/releases FTB-Library].
 
To add the modsmod(s), upload .jar files to the "mods" folders -- two jars in totalfolder. The exact commands (wget/scp) for that are provided in the "mods for backups" chapter above, make sure to remove old version the mods before upload the new version.
 
After adding the mods, restart both the server and the client. After connecting to the server, you should see new icons to the left of the inventory. You can hide some of the icons through their settings. One of the icons opens a top-down map where you can manage the chunks. You can claim them and then select them again to load them -- a tooltip will indicate if a chunk is claimed or loaded when you hover over it. On FTBLib 1.0.18.5 and FTBUtilities 1.0.18.7, the LMB claims a chunk, Ctrl+LMB chunkloads a chunk, RMB unloads and unclaims a chunk.
Line 442 ⟶ 88:
</div>
 
=== FAQ (Frequently Asked Questions)= ==
<div align="justify">
#How do I connect to my server?
4,389

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.