|
| 1 | +# Server Pack |
| 2 | + |
| 3 | +<warning> |
| 4 | +You will need to edit your port number in server.properties if your server does not use the default 25565. |
| 5 | +</warning> |
| 6 | + |
| 7 | +## Running on a server host |
| 8 | +1. Upload and uncompress the .zip pack file, |
| 9 | +2. In your hosting panel set the startup jar to `galactica-server.jar` for Galactica, or `galactica-je-server.jar` for Galactica: Jurassic Edition, your host should have instructions on how to do this. |
| 10 | +3. Start the server, it should generate the required files but not start. |
| 11 | +4. Open EULA.txt and accept it. |
| 12 | +5. Restart the server, it should now start. |
| 13 | + |
| 14 | +## Running Locally |
| 15 | +If you're running a server locally, you'll need to ensure you have enough processing power on your computer to handle the game twice. |
| 16 | + |
| 17 | +If you'd like your friends to be able to connect, you'll need to port forward your internet. [More info (external link)](https://portforward.com) |
| 18 | + |
| 19 | +First, unzip the server pack, then follow the instructions in the relevant section for you below. |
| 20 | + |
| 21 | +### Windows |
| 22 | +1. Create a new file titled 'start.bat' |
| 23 | +2. In the file, enter this for Galactica: |
| 24 | + <code-block> |
| 25 | + @echo off |
| 26 | + java -Xms#G -Xmx#G -XX:+UseG1GC -jar galactica-server.jar nogui |
| 27 | + pause |
| 28 | + </code-block> |
| 29 | + or this for Galactica: Jurassic Edition: |
| 30 | + <code-block> |
| 31 | + @echo off |
| 32 | + java -Xms#G -Xmx#G -XX:+UseG1GC -jar galactica-je-server.jar nogui |
| 33 | + pause |
| 34 | + </code-block> |
| 35 | +3. Replace the '#' with the amount of RAM you'd like to allocate to the server. |
| 36 | +4. Run the file by double-clicking it, the server should generate the required files but not start. |
| 37 | +5. Open EULA.txt and accept it. |
| 38 | +6. Run the file again by double-clicking it, the server should now start. |
| 39 | + |
| 40 | +### MacOS |
| 41 | +> If it doesn't run, use `chmod a+x` in the terminal to give it more permissions. |
| 42 | +1. Create a new file titled 'start.command' |
| 43 | +2. In the file, enter this for Galactica: |
| 44 | + <code-block> |
| 45 | + #!/bin/sh |
| 46 | + cd "$( dirname "$0" )" |
| 47 | + java -Xms#G -Xmx#G -XX:+UseG1GC -jar galactica-server.jar nogui |
| 48 | + </code-block> |
| 49 | + or this for Galactica: Jurassic Edition: |
| 50 | + <code-block> |
| 51 | + #!/bin/sh |
| 52 | + cd "$( dirname "$0" )" |
| 53 | + java -Xms#G -Xmx#G -XX:+UseG1GC -jar galactica-je-server.jar nogui |
| 54 | + </code-block> |
| 55 | +3. Replace the '#' with the amount of RAM you'd like to allocate to the server. |
| 56 | +4. Run the file by double-clicking it, the server should generate the required files but not start. |
| 57 | +5. Open EULA.txt and accept it. |
| 58 | +6. Run the file again by double-clicking it, the server should now start. |
| 59 | + |
| 60 | +### Linux |
| 61 | +> If it doesn't run, use `chmod +x start.sh` in the terminal to give it more permissions. |
| 62 | +1. Create a new file titled 'start.sh' |
| 63 | +2. In the file, enter this for Galactica: |
| 64 | + <code-block> |
| 65 | + #!/bin/sh |
| 66 | + |
| 67 | + java -Xms#G -Xmx#G -XX:+UseG1GC -jar galactica-server.jar nogui |
| 68 | + </code-block> |
| 69 | + or this for Galactica: Jurassic Edition: |
| 70 | + <code-block> |
| 71 | + #!/bin/sh |
| 72 | + |
| 73 | + java -Xms#G -Xmx#G -XX:+UseG1GC -jar galactica-je-server.jar nogui |
| 74 | + </code-block> |
| 75 | +3. Replace the '#' with the amount of RAM you'd like to allocate to the server. |
| 76 | +4. Run the file using `./start.sh`, the server should generate the required files but not start. |
| 77 | +5. Open EULA.txt and accept it. |
| 78 | +6. Run the file again using `./start.sh`, the server should now start. |
0 commit comments