Guide:Multiplayer Setup

From Edge of Space Wiki
Jump to: navigation, search

DRXCon.jpg

Running a Dedicated Server[edit | edit source]

To make running a dedicated server easier we recommend using the following method.

        • NOTE: .BAT should be placed in the Edge of Space program directory (where edgeofspace.exe is located) to ensure proper saving of MultiPlayer Maps

Create a text file. copy this into the text file:

For 64 bit systems

 @echo off
 echo Press any key to start a EoS Dedicated server
 Pause
 START "Edge of Space DS" "C:\Program Files (x86)\Steam\SteamApps\Common\Edge of Space\edgeofspace.exe" -headless -batchmode -nographics -world:worldNew001

For 64 bit system with console window

 @echo off
 echo Press any key to start a EoS Dedicated server
 Pause
 START "Edge of Space DS" "C:\Program Files (x86)\Steam\SteamApps\Common\Edge of Space\edgeofspace.exe" -batchmode -nographics -world:worldNew001

For 32 bit systems

 @echo off
 echo Press any key to start a EoS Dedicated server
 Pause
 START "Edge of Space DS" "C:\Program Files\Steam\SteamApps\Common\Edge of Space\edgeofspace.exe" -headless -batchmode -nographics -world:worldNew001

For 32 bit systems with console window

 @echo off
 echo Press any key to start a EoS Dedicated server
 Pause
 START "Edge of Space DS" "C:\Program Files\Steam\SteamApps\Common\Edge of Space\edgeofspace.exe" -batchmode -nographics -world:worldNew001

You can change the world name to any name you like. Once complete save the file as a .txt file (DO NOT SAVE AS BAT FILE), then rename it to .BAT (make sure you have show file extensions turned on in folder options). Once renamed to .bat simply run the file (-headless version requires use of end task to shut down server)

No Steam Login Dedicated Server (AKA I AM NOT PLAYING EoS I AM RUNNING A DS)[edit | edit source]

If you wish to run EoS from a remote server service the process will go as such.

Setup steam and EoS on the server

Select the appropriate .bat file from above

ensure that you have exited the steam account completely on the server

using the .bat file open your DS world

Your DS is now running without steam (steam must still be present to determine connecting players steam ID in order to load or write their vaulted avatar however steam does not need to be logged in on this account).

Like wise this process can be used to run EoS DS on a secondary home pc without having your account always showing you as in game.

Starting a Simple Server[edit | edit source]

Starting up an Edge of Space server can be done in a couple of simple steps. If you are hosting, you will want to start by forwarding port 1337. If you aren’t sure how to port forward, you can find plenty of handy guides on the internet (PortForward). Once your port is open, it’s time to start your server. Go to Steam and launch the game. On the Main Menu Click the Mulitplayer button

DRXMp001.png


After clicking Multiplayer you will be taken to the screen where you can enter the name and IP of your world. Enter the name of your world (if using an already created world you will need to use the EXACT name of your world, it is case sensitive). Once named click create server. This will bring up a console window (it will tell you when the world is ready).

DRXMp002.png


Once done, you can enter your server by putting 127.0.0.1 or localhost into the IP box and click connect. Those connecting to you will need to be given your ip address (Internal IP if on LAN [see Internal IP note], External IP if across the internet WhatIsMyIP).

DRXMp003.png

Joining a Server[edit | edit source]

To join a server (your own or a friends) Please refer to the following steps.

Once you are in the game click the MULTIPLAYER button:

DRXMp001.png

((Skip This step we are still implementing server saves)) Now it is time to add your server to the game's memory. Click Add Server.

DRXCon.jpg

(SKIP THIS STEP!! THIS IS NOT YET IMPLEMENTED: UPDATE WILL FOLLOW IMPLEMENTATION)

If you are connecting to a friend enter your friends IP address into the IP field (links from public servers work as well)

DRXMp003.png

If your are connecting to your own dedicated server you will need to enter (127.0.0.1) or your Internal IP address (see Internal IP note at bottom) in the second slot.

DRXMp003.png

(SKIP THIS STEP!! THIS IS NOT YET IMPLEMENTED: UPDATE WILL FOLLOW IMPLEMENTATION)

Now lets select and enter the server.

DRXCon.jpg

Ah now we get to select our Avatar (It is not the same as your Single Player Avatar) and join the world!

DRXMENU006.jpg

Internal IP Note[edit | edit source]

Internal IP NOTE: This is an old method a better method is to simply use (127.0.0.1) which will automatically use your Internal IP.

[To find the Internal IP (XP, Vista, 7) hold the START key and press R on the keyboard.. In the window that opens Type CMD then click OK.

DRXRun.jpg

In the open Console window you will see something like this (with your windows account name instead of [YourUsername]). Type: IPCONFIG/ALL.

DRXCMD.jpg

The next screen may seem intimidating however we only need 1 number from this page. Look for Ethernet Adapter-XXXX- under this section look for IPV4 address It should look similar to the image (your ip will be different). This is your Internal IP address.

DRXCMD2.jpg

Troubleshooting (AKA: HELP ME I CAN'T HOST/CONNECT)[edit | edit source]

There may be several reason why you may not be able to host or connect to a host.

Reason 1. You may need to set exceptions into your firewall, Here is a site that can help you do that (remember you should do one for TCP and one for UDP and include the edgepfspace.exe in the exceptions AFTER you create them. Simple and Advanced Firewall Exception Walkthrough

    • Note even turning off the firewall completely will not always allow access hence the need for advanced exceptions**


Reason 2. Some AntiVirus can also block the needed port (1337), try hosting/connecting with your antivirus turned off. If it succeeds in hosting/connecting you will need to add an exception to your antivirus for edgeofspace.exe.


Reason 3. Your ISP may be blocking the 1337 port, you will need to call your ISP and inquire about this. If this is the case you can try using a program like Hamachi to bypass the block.


    • Note: we are going to implement NAT punch-through later in development in order to bypass the current process entirely.