GRAV Wiki
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
uides
FAQ
General Survival
Console Commands
Dedicated Server Guide
Default controls
Player skills
Elements
More...
Building
Build overview
Crafting base item
Placed items
Powered base items
Defensive/Offensive
Mining
Rooms
More
Crafting
Blueprints
Consumables
Ammo
Armor
Devices
Materials
Pets
Stims
Traps
Vehicles
Weapons
Resources
Resources
Materials
Creatures
Fauna
NPC
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
GRAV Wiki
648
pages
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
uides
FAQ
General Survival
Console Commands
Dedicated Server Guide
Default controls
Player skills
Elements
More...
Building
Build overview
Crafting base item
Placed items
Powered base items
Defensive/Offensive
Mining
Rooms
More
Crafting
Blueprints
Consumables
Ammo
Armor
Devices
Materials
Pets
Stims
Traps
Vehicles
Weapons
Resources
Resources
Materials
Creatures
Fauna
NPC
Editing
Dedicated Server
(section)
Back to page
Edit
VisualEditor
View history
Talk (1)
Edit Page
Dedicated Server
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Creating a Dedicated Server Batch File == {| class="wikitable" ! style="text-align:left;" |Step ! style="text-align:left;" |Description |- | valign="top" | '''Step 1''' | Create a text document in [Steam install location]\SteamApps\common\GRAV\Binaries\Win32. Open the file and paste the following into it <blockquote><nowiki>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</nowiki></blockquote> |- | valign="top" | '''Step 2''' | Change the settings to your liking. {| class="wikitable" |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 [[Console command#Admin Console Commands|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.<br>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) <!-- |Password |While completely unsupported by the server browser you can use a password to limit access to the server. If you choose to add this you will need to connect by the console command open 1.2.3.4?password=YOURPASSWORD --> |} |- | valign="top" | '''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 |- | valign="top" | '''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)". |- | valign="top" | '''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. |}
Summary:
Please note that all contributions to the GRAV Wiki are considered to be released under the CC BY-NC-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab