Getting Started With a Server

From DeceasedCraft Wiki
Jump to navigation Jump to search

Kinetic Hosting

Deceased Craft has partnered with Kinetic Hosting to provide players a seemless experience for server hosting. Use code TqLxQuanZ at checkout to recieve a discount on your server.

Make Your Own

Here is a user friendly guide to setting up your own server. Check it out here.


1. You would need a copy of java 17 and the server pack.

Java 22 will not work

If your using the link provided, make sure you get the msi.

Make sure you grab msi installer

The server files will be under "additional files" in the version you selected.

Serverpack is under additional files

2. Extract the server pack and move the extracted folder (DeceasedCraft_Server_vX.X.X) to an area you will remember. You will need to open this folder every time you start the server.


3. Open the extracted server folder and run the forge installer. You need to install it to the extracted folder you opened.

  • Move on to the next step if you know understand how a file directory works.

Installing forge

  • Locate the forge 20.2.4 jar and run it.

ServerWhereForge.png

  • Select Install server and choose your extracted serverpack as the install location.

ServerForgeInstall.png


4. Start run.bat, when you do a cmd prompt will open and it will start generating additional files in the folder.

  • It may hang if your computer is slow, so when in doubt select the cmd prompt and spam enter.
  • It will eventually stop and say pause. You can now close it. If you were spamming enter before and it closed while you were doing that its fine and move on.


5. Now left click on run.bat to select it then right click it and click edit.

  • Add the "-nogui" flag as seen in the image below
ServerNogui.png
  • Optionally you can set a direct path to java 17, this is prevent different java.jar's from being used in case you have multiple versions of java installed or you install another version and it takes over the default path.
  • If you downloaded the version from the link provided, you can copy this into your run.bat and replace java.

"C:\Program Files\Eclipse Adoptium\jre-18.0.2.101-hotspot\bin\java"

ServerPath2Java.png


6. Now one of the files generated should have been eula.txt

  • Open it and change eula=false to eula=true
  • At this point the server should be fulled operational, starting run.bat again will generate a world folder and you can connect.
  • In order to connect to your server locally, you will need the ipv4 address of the computer its running on.
  • Press your windows key and open cmd prompt
  • Type in "ipconfig"

Find and note your ipv4 address

200

  • Use the ipv4 address as your server address. This will only work for people on your local network.

7. In order for others to connect from outside your network you have a few options:

  1. Port forward 25565 and use your public ipv4 address as the server address. (search "whats my ip" for public ipv4)
  2. Use something like ngrok
  3. Have everyone connect with a vpn, something like hamachi or a similar program.