Planet Explorers

Planet Explorers

View Stats:
Aurelia Nov 24, 2016 @ 2:23pm
Hosting a Server
As to the tests till now, servers that can run Planet Explorers include: Ubuntu Desktop, MAC OS and Win. Others might also run the game, but it needs a try.

We offer 3 ways to open a server at present:
1)Open through UI. In this way, the server is bound with your steam account, so you can open/close/delete the server whenever you log in with the identical steam account.
2)Run command line:(Root Directory)\Server>PE_Server.exe -batchmode (for server without interface)
3)Run command line:(Root Directory)\Server>PE_Server.exe (for server with interface)

Different executive files under different system:
Windows:
(Client Root Directory)/Server/PE_Server.exe

Linux:
(Client Root Directory)/Server/PE_Server.x86

Mac:
(Client Root Directory)/Server/PE_Server

Config File Path:
(Client Root Directory)/Server/ConfigFiles/ServerConfig.config
Note that the server will automatically make this file after the first launch. All you need to do is to change the configuration of it.

//Config starts
{"LobbyIP" : "192.168.1.126", //do not change
"LobbyPort" : 12534,
"ProxyIP" : "192.168.1.126", //do not change
"ProxyPort" : 12535, //do not change
"TeamNum" : 1, //1-4
"NumPerTeam" : 16, //1-32 (TeamNum * NumPerTeam <= 32)
"GameMode" : 1, //0-story,1-adventure,2-build,3-custom
"GameType" : 0, //0-coop,1-VS,2-survival
"MonsterYes" : true, //true or false
"ServerName" : "yktest",
"MapName" : "Story Demo", //custom map's name
"MapSeed" : "patheamaria", //random map seed in adventure and build modes
"TerrainType" : 1, //1-grassland,2-forest,3-desert,4-red stone,5-rainforest
"ClimateType" : 1, //0-dry,1-temperate,2-water,3-random
"VegetationType" : 1, //1-grassland,2-forest,3-desert,4-redstone,5-rainforest (this one should be the same with TerrianType)
"MasterRoleName" : "Unknown", //host name
"Password" : "",
"PublicServer" : false, //(true or false)
"Proxy" : false, //(true or false)
"UseSkillTree" : false, //(true or false)
"DropDeadPercent" : 10, //(0-100)
"UnlimitedRes" : false, //(true or false)
"TerrainHeight" : 512, //128m, 256m, 512m(this is the height of the whole map including sky)
"MapSize" : 0, //4-2km*2km, 3-4km*4km, 2-8km*8km, 1-20km*20km, 0-40km*40km
"RiverDensity" : 10, //1-100
"RiverWidth" : 10, //1-100
"PlainHeight" : 20, //1-100(this is the height of land)
"Flatness" : 25, //1-100
"BridgeMaxHeight" : 30 //0-100
"AICount" : 3//3-7, the total amount of teams in game
}
//Config ends

Some notes:

1. The server program takes up UDP ports 9900-9915. So you can launch up to 16 server instances on one computer simultaneously.

2. If you plan on making your server public on the internet, please make sure all port-forwarding are done properly, or make it a DMZ server.As per how to make a port forwarding, please refer to: http://board.pathea.net/index.php?topic=2264.0

3. If you want to open more than one server through command line, just change the “ServerName” in “ServerConfig.conf”. (Note: do not use an identical server name with different configurations, for this may cause damage to the old server)

Hope this helps.

Original Post[board.pathea.net]
< >
Showing 1-5 of 5 comments
Free Like GNU Nov 24, 2016 @ 11:03pm 
some clarifications of the ServerConfig.conf:
//Config starts {"LobbyIP" : "192.168.1.126", //do not change "LobbyPort" : 12534, //do not change "ProxyIP" : "192.168.1.126", //do not change "ProxyPort" : 12535, //do not change "TeamNum" : 1, //1-4 HOW MANY TEAMS IN PVP MODE "NumPerTeam" : 16, //1-32 (TeamNum * NumPerTeam <= 32) PLAYERS PER TEAM "GameMode" : 1, //0 = story,1 = adventure,2 = build,3 = custom "GameType" : 0, //0 = coop,1 = VS,2 = survival "MonsterYes" : true, //true or false WILL THERE BE MOBS ROAMING THE MAP "ServerName" : "yktest", //THIS NAME WILL APPEAR IN THE LOBBY AND MUST BE UNIQUE AMONG EACH SERVER YOU HOST "MapName" : "Story Demo", //custom map's name "MapSeed" : "patheamaria", //random map seed in adventure and build modes "TerrainType" : 1, //1 = grassland,2 = forest,3 = desert,4 = red stone,5 = rainforest "ClimateType" : 1, //0 = dry,1 = temperate,2 = water,3 = random "VegetationType" : 1, //1 = grassland,2 = forest,3 = desert,4 = redstone,5 = rainforest (this one should be the same with TerrianType) "MasterRoleName" : "Unknown", //host name THIS IS THE NAME OF THE PLAYER CHARACTER THAT WILL HAVE ADMIN RIGHTS "Password" : "", //THIS IS THE PASSWORD TO JOIN THE SERVER "PublicServer" : false, //(true or false) IF THIS IS FALSE, THE SERVER WILL NOT APPEAR IN THE LOBBY (MAINLY FOR LAN-ONLY) "Proxy" : false, //(true or false) THIS WILL ALLOW A SERVER THAT IS BEHIND A CLOSED PORTS ON A FIREWALL TO SHOW IN THE LOBBY "UseSkillTree" : false, //(true or false) THE PLAYERS WILL NEED TO EARN SKILL POINTS TO USE TOOLS, WEAPONS, VEHICLES REPLICATION SCRIPTS, AND REPLICATORS "DropDeadPercent" : 10, //(0-100) WHAT PERCENT OF A PLAYERS INVENTORY WILL DROP ON DEATH "UnlimitedRes" : false, //(true or false) IF TRUE THE PLAYERS WILL HAVE UNLIMITED RESOURCES "TerrainHeight" : 512, //128m, 256m, 512m(this is the height of the whole map including sky, lower values are less likely to cause lag while flying or moving quickly) "MapSize" : 0, //4 = 2km, 3 = 4km, 2 = 8km, 1 = 20km, 0 = 40km "RiverDensity" : 10, //1-100 HOW OFTEN A PLAYER WILL ENCOUNTER A RIVER "RiverWidth" : 10, //1-100 IS THIS THE MAXIMUM OR AVERAGE WIDTH OF RIVERS!??! "PlainHeight" : 20, //1-100 THIS IS THE GENERAL HEIGHT OF LAND "Flatness" : 25, //1-100 HOW FLAT THE LAND IS IN GENERAL (LESS BUMPY) "BridgeMaxHeight" : 30 //0-100 HOW HIGH LAND BRIDGES WILL APPEAR "AICount" : 3//3-7 THE TOTAL NUMBER OF FACTIONS (PUJA/PAJA/HUMAN) IN A MULTIPLAYER MAP } //Config ends
Last edited by Free Like GNU; Nov 24, 2016 @ 11:04pm
johndraugr Nov 25, 2016 @ 11:37am 
Do we need to forward any other ports than 9900-9915 when running a dedicated server?
Free Like GNU Nov 26, 2016 @ 9:51am 
As far as I know, that is all that is said to be required. However when I run netstat I see:

udp 0 0 0.0.0.0:59947 0.0.0.0:* 8649/PE_Server.x86_
udp 0 0 0.0.0.0:49877 0.0.0.0:* 8649/PE_Server.x86_
udp 0 0 0.0.0.0:9900 0.0.0.0:* 8649/PE_Server.x86_

this one server is listening on UDP 9900, 59947 and 49877
Last edited by Free Like GNU; Nov 26, 2016 @ 9:52am
Free Like GNU Dec 31, 2017 @ 12:12pm 
You can copy the HeadlessServer folder (and it's contents) to another computer (such as a VPS) and run your server from there. It's less than 100 megabytes.
[FOR] Reason Jun 2, 2018 @ 11:13pm 
Why is your studio not utilizing SteamCMD? Valve maintains a commandline distribution platform for developers called "SteamCMD" which is used for hosting dedicated server files for downloading! https://developer.valvesoftware.com/wiki/SteamCMD
Here's a list of all the developers who (properly) host their game files on Steam, via SteamCMD.
https://developer.valvesoftware.com/wiki/Dedicated_Servers_List

... Please release the server files via SteamCMD.
< >
Showing 1-5 of 5 comments
Per page: 1530 50