Dedicated Server

From GRAV Wiki
Jump to: navigation, search

Creating a Dedicated Server Batch File[edit | edit source]

Step Description
Step 1 Create a text document in [Steam install location]\SteamApps\common\GRAV\Binaries\Win32. Open the file and paste the following into it
CAGGameServer-Win32-Shipping brokerstart?NumHomePlanets=1?AdminPassword=?PlanetManagerName="defaultmetaverse"?PlanetPortOffset=0?steamsockets?Port=7777?PeerPort=7778?QueryPort=27015?MaxPlayers=32?CloudDir="CharacterSaveData"?ServerName="Unidentified GRAV Server"?SteamDontAdvertise=0?AllowPVP=1?DoBaseDecay=1 -seekfreeloadingserver -unattended
Step 2 Change the settings to your liking.
ServerName Server Name (the name that will show up for your server in the server browser) -- this should have quotes
AdminPassword Admin password (the password to use with the 'adminlogin' command that gives a player admin rights) -- this should NOT have quotes. See admin commands for more info.
MaxPlayers Max players (per planet) -- the maximum players to allow per planet, max allowed is 64
AllowPVP Allow PvP (Allow players to kill each other) Default to 1, 0 to disable PvP
DoBaseDecay Do base decay (By default base items will decay and blow up over time if left unattended) -- default to 1, 0 to disable.
WARNING: On populated servers if this is off server performance will suffer as the world fills with trash
SteamDontAdvertise Dont advertise to master server (for private servers). if this is 1 the server will not show up in the server browser, but still can be joined via IP (e.g. 'open 1.2.3.4')
CloudDir Save data base directory, Directory (Relative to CAGGame directory) where player data should be stored. This should be unique per metaverse (so if you have more than one on one machine, change this for other instances) -- this should have quotes
PlanetManagerName Planet Manager Name (name of your universe of planets). if you run multiple servers on the same machine these should be unique. Default value is fine otherwise -- this should have quotes
NumHomePlanets Number of home planets to launch. If you find your home planet is getting full, this is a good option to increase capacity for your universe -- max 12
Port Broker port -- the port that the broker server should listen to, default is 7777 -- this should be unique to each metaverse/universe you are launching on this machine. Changing your port will require you to open console and enter open 1.2.3.4:your_port_number to join the server.
PeerPort Broker Peer port -- peerport that the broker server should listen to, default is 7778 -- this should be unique to each metaverse/universe you are launching on this machine
QueryPort Broker Query port -- Query port broker should listen to, default is 27015 -- this should be unique to each metaverse/universe you are launching on this machine
PlanetPortOffset Offset to apply to sub processes for exo planets etc. This should normally be 0, but if you are hosting more than one server on a single machine you will need to set this higher for each successive universe (for example second universe should be 50, third should be 100 etc)
Step 3 After you have completed making needed changes you will need to set "Save as type" to be "All Files(*.*)" and name the file with a ".bat" extension. such as Start.bat
Step 4

(optional)

If you would like to create a shorcut to this batch file just "Right Click" then "Send to" then "Desktop (create shortcut)".
Step 5 You should now be able to run the newly create batch file directly or from the shortcut. If your network is not behind a firewall then your newly created server should be visible from the in-game GRAV server browser.

CONNECT to Your "Local Dedicated" Server[edit | edit source]

Image Step Description
GRAV LOGO cr.png
Step 1 Open GRAV!
Hit TAB to open "console"
Step 2 Once you are at the server browser, open console by hitting TAB key.
Type Local IP
Step 3 Now you have to connect to your local host server that you created. In the console window that opens up type: open 127.0.0.1:7785
GRAV LOGO cr.png
Step 3 If you are successful you should see lots of activity happening in your dedicated server window. Soon you will be off to playing your very own single player version of GRAV!

Want Your Friends to Connect? Go Public with your IP![edit | edit source]

Image Step Description
IP.png
Step 1 Let Google tell you your Public IP! Here
PortForward.PNG
Step 2 PortForward on your router (default:7785), If you are setup correctly with your router, firewall and other network settings you should be visible in the GRAV Server Browser. If not, troubleshoot in the next section below with all of the links provided by Steam!
Open IP.PNG
Step 3 If you want people to join your server using your IP from step 1, have them start the game, Once THEY are at the server browser, open console by hitting TAB key. Then have them open your IP by typing "open" and then the IP that Google gave you.


Links for Preparing or Troubleshooting a Hosted GRAV Dedicated Server[edit | edit source]

Hunter's Super Simple Server http://steamcommunity.com/sharedfiles/filedetails/?id=375314486

.ReFleX's Server Manager http://gravonline.com/threads/reflexs-server-manager.69/

How To Reset Your Dedicated Server GRAV World[edit | edit source]

- WANT TO RESET YOUR NEWLY CREATED WORLD AND START OVER? If you want to reset your world and start over you can delete all your GRAV "cloud" directories. Your newly created GRAV planet is contained within. An example of where this is located:

\Program Files(x86)\Steam\steamapps\common\GRAV\Cloud\

NOTE! ONLY delete CLOUD directories. NOT anything else!

Edit

Cloud files are now located in Program Files (x86)\Steam\steamapps\common\GRAV\CAGGame and have 1 folder per planet or moon Cloud_Grav_PlanetorMoon name. Players are located under CloudGRAV.

Please backup any files before removing just in case something unexpected happens.

How To Reset Your SINGLEPLAYER GRAV World[edit | edit source]

- WANT TO RESET YOUR NEWLY CREATED WORLD AND START OVER? If you want to reset your world and start over you can delete all your GRAV "cloud" directories. Your newly created GRAV planet is contained within. An example of where this is located:

C:\Users\WINUSER\Documents\My Games\UnrealEngine3-CAG\CAGGame

NOTE! ONLY delete what's in the CLOUD directory. NOT anywhere else!

Q: Should we reset our servers/maps after patches (like, "saves")? In other words, should we remove this folder?

A: No. You shouldn't. This would delete your planet and all of your persistent data. Only do this if you wish to do a FULL RESET and start fresh. Our patches should not affect this persistent data.

We are doing everything possible to avoid doing anything that would affect server persistent data.

NOTE: for backing up your SaveData. The backups should NOT be placed inside the Cloud dir. They need to be outside of it or you risk the game recursively searching and finding old saves. So something like: \Program Files(x86)\Steam\steamapps\common\GRAV\Cloud\ \Program Files(x86)\Steam\steamapps\common\GRAV\Backups\CloudFromPatch6\ \Program Files(x86)\Steam\steamapps\common\GRAV\Backups\CloudFromPatch7\ Is a decent Method.

Dedicated Server Hosting Companies[edit | edit source]

See: List of GRAV Server Providers