Pathea Games Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Planet Explorers Released!

Pages: 1 [2]

Author Topic: Planet Explorers Dedicated Server Tutorial - a0.83[marked]  (Read 26494 times)

Larvosa

  • Enlistee
  • *
  • Karma: 0
  • Posts: 2
    • View Profile
Re: Planet Explorers Dedicated Server Tutorial - a0.83[marked]
« Reply #15 on: August 15, 2014, 04:38:45 PM »

 Hi, thanks so much for this information.

 I have a question. Can make dedicated server on windows 2003 server(is another machine, not the same to play).

Sorry for my english LOL
« Last Edit: September 04, 2014, 04:05:58 AM by Dorist1 »
Logged

bluefangservers

  • Enlistee
  • *
  • Karma: 6
  • Posts: 28
  • Game Server Hosting
    • View Profile
    • Blue Fang Solutions
Re: Planet Explorers Dedicated Server Tutorial - a0.83
« Reply #16 on: August 19, 2014, 12:30:13 AM »

Hi, thanks so much for this information.

 I have a question. Can make dedicated server on windows 2003 server(is another machine, not the same to play).

Sorry for my english LOL

We have run it on Windows Server 2008 R2 and Windows 7 Ultimate and both work fine. It is safe to assume it will work on Windows 2003 but we couldn't guarantee anything as we haven't tried it ourselves. Good luck and post here if it works for you.

freelikegnu

  • Enlistee
  • *
  • Karma: 0
  • Posts: 41
    • View Profile
Re: Planet Explorers Dedicated Server Tutorial - a0.83[marked]
« Reply #17 on: August 28, 2014, 10:53:49 PM »


IndexParameterValue(s)
1Max Players 32 | Integer 1-32
2PasswordMyPassword | String
3SteamID Steam00000000000000000 | String
4Creator User | String
5Server Name  My@++@Serve| String
6Map Name PatheaMap| String
7Game Mode 260 | Integer 260(adventure),261(build)
8Game Type 0 | Integer 0(co-op),1(vs),2(survival)
9Monsters True | Boolean
10Game Port 9900 | Integer
11Public True | Boolean
12Seed Planet@++@Maria | Sring
13Unknown(Major Biome/Climate??)  1 | Integer
14Unknown(Major Biome/Climate??)  1 | Integer
15Unknown(Major Biome/Climate??)  1 | Integer
16Unknown(Major Biome/Climate??)  1 | Integer
17Infinite Resources  True | Boolean
18Worldsize 2 | 2( 8*8 ), 1( 20*20 ), 0( 40*40 ) Integer
19River Density 1 | Integer
20River Width 1 | Integer

This is lots of good info, but I'd like to set this up in the config files for the game rather than on the command line
Based on the above, how do they work in the Server/ConfigFiles/ServerConfig.config?:
{
  "LobbyIP" : "74.81.173.196",
  "LobbyPort" : 12534,
  "TeamNum"   : 2,
  "NumPerTeam" : 32,
  "GameMode"   : 260,
  "GameType"   : 0,
  "MonsterYes" : true,
  "ServerName" : "[server name]",
  "MapSeed"    : "patheamaria",
  "TerrainType" : 1,
  "ClimateType" : 3,
  "VegetationType" : 1,
  "MasterRoleName" : "[is this just the name of the creator or SteamXXXXXXXXX ID?]",
  "Password"       : "",
  "PublicServer"   : true,
  "Proxy"          : false,
  "DropDeadPercent" : 10,
  "UnlimitedRes"    : false,
  "MapSize"         : 0,
  "RiverDensity"    : 1,
  "RiverWidth"      : 1
}
and there are some additional items in Server/ServerData/[server name]/config.json

{
    "ServerName" : "[server name]",
    "MasterAccount" : "[is this for the SteamXXXXXX acount ID?]",
    "MasterRoleName" : "[name of server creator?]",
    "Password"       : "",
    "MapName"        : null,  [what does this do? Just a name for the map independant of server name var?]
    "GameMode"       : 260,
    "GameType"       : 0,
    "MapSeed"        : "patheamaria",
    "TeamNum"        : 1,
    "NumPerTeam"     : 32,
    "TerrainType"    : 1,
    "VegetationType" : 1,
    "ClimateType"    : 2,
    "MonsterYes"     : true,
    "ServerVersion"  : 657457,
    "IsPrivate"      : false,
    "UnlimitedRes"   : false,
    "MapSize"        : 0,
    "RiverDensity"   : 1,
    "RiverWidth"     : 1
}
Also I found that the Server/ServerData/[server name]/config.json gets overwritten by what is in Server/ConfigFiles/ServerConfig.config when the game is started with PE_Server_Linux.sh -nographics
I suspect that the servername has to be specified on the commandline or a new Server/ServerData/[server name]/config.json is created ??

Thanks for any help!
« Last Edit: August 28, 2014, 11:12:22 PM by freelikegnu »
Logged

Larvosa

  • Enlistee
  • *
  • Karma: 0
  • Posts: 2
    • View Profile
Re: Planet Explorers Dedicated Server Tutorial - a0.83
« Reply #18 on: September 12, 2014, 11:40:55 PM »

Hi, thanks so much for this information.

 I have a question. Can make dedicated server on windows 2003 server(is another machine, not the same to play).

Sorry for my english LOL

We have run it on Windows Server 2008 R2 and Windows 7 Ultimate and both work fine. It is safe to assume it will work on Windows 2003 but we couldn't guarantee anything as we haven't tried it ourselves. Good luck and post here if it works for you.

 Is Working!!! Thanks so much! Just copy "Server" folder to server 2003 and create a link with "Batchmode". Obviously redirect port TCP/UDP to server.

If only Mapping TCP no connect, says "Can not connect to server"(not exactly). Pay attention to map TCP and UDP!!!
Logged

blargo

  • Enlistee
  • *
  • Karma: 2
  • Posts: 7
    • View Profile
Re: Planet Explorers Dedicated Server Tutorial - a0.83[marked]
« Reply #19 on: September 15, 2014, 04:25:24 PM »

I cannot believe that pathea is not releasing some documentation on the dedicated server launching.  I also cannot believe that there are no administrative capabilities (or none that I can find) on a dedicated server.  I had a player come into a coop server and start dismantling and stealing other player's items.  I had to shut the server down because I couldn't ban him!  I know this is an early game, but it has been in early release for a while now.  GET SOME DOCUMENTATION!

Now that my rant is done, can anyone explain the admin.json file?  I attempted to modify it to ban myself, and it did not work or that file is ignored.  Also, changing even one flag results in a wipe?  What if I want to allow players to go into build mode to make up for the fact that non-existent documentation prevented me from banning a player before he had destroyed and stolen structures and items (like turrets)?
« Last Edit: September 16, 2014, 07:35:33 AM by blargo »
Logged

blargo

  • Enlistee
  • *
  • Karma: 2
  • Posts: 7
    • View Profile
Re: Planet Explorers Dedicated Server Tutorial - a0.83[marked]
« Reply #20 on: September 16, 2014, 07:37:00 AM »

I answered my own question.  The config.json file is used to build the serverinfo table located in the cache.pe file.  I explained that in another post.
Logged

Waltsu

  • Enlistee
  • *
  • Karma: 0
  • Posts: 3
    • View Profile
Re: Planet Explorers Dedicated Server Tutorial - a0.83[marked]
« Reply #21 on: December 26, 2014, 10:42:37 AM »

Any idea how to pass the variables to the commandline start?
In Server folder I run this (as recommended on earlier post):

./PE_Server.x86 -nographics 32#abc#Steam00000000000000000#User#My@++@TestServer#PatheaMap#260#0#True#9900#True#Planet@++@Maria#1#1#1#1#True#2#1#1

But the variables don't seem to do anything. It reads all the configuration from the config file ServerConfig.conf

I am running Debian Wheezy 64bit. Any help appreciated.. :)
Logged

Alu

  • Settler
  • ***
  • Karma: 2
  • Posts: 140
    • View Profile
Re: Planet Explorers Dedicated Server Tutorial - a0.83[marked]
« Reply #22 on: February 19, 2017, 06:33:02 PM »

same here as the poster before me, I'd really appreciate some assistance setting it up in debian. :)
Logged

brokenlogin

  • Enlistee
  • *
  • Karma: 0
  • Posts: 19
    • View Profile
Re: Planet Explorers Dedicated Server Tutorial - a0.83[marked]
« Reply #23 on: February 27, 2017, 04:06:04 AM »

Hope this helps:
EDIT: This works for Ubuntu 16.04 (I had no luck running the post beta, headless server in ubuntu 14.04, not sure if Debian will have similar issues if you are not running "testing")
in your steamapps/common/Planet Explorers/HeadlessServer folder:
$ nano ./ConfigFiles/ServerConfig.conf

edit the file to your liking:
Code: [Select]
{
        "LobbyIP" : "74.81.173.196",
        "LobbyPort" : 12534,
        "ProxyIP"   : "119.28.5.150",
        "ProxyPort" : 12535,
        "TeamNum"   : 2,
        "NumPerTeam" : 16,
        "GameMode"   : 1,
        "GameType"   : 1,
        "MonsterYes" : true,
        "ServerName" : "MyServer", <<<----change this at least!
        "MapName"    : "",
        "MapSeed"    : "patheamaria", 
        "TerrainType" : 1,
        "ClimateType" : 1,
        "VegetationType" : 1,
        "MasterRoleName" : "Your Multiplayer Character Name",
        "Password"       : "",
        "PublicServer"   : false,  <<<---make it public
        "Proxy"          : false, <<<--true will get around most firewalls
        "UseSkillTree"   : false,
        "DropDeadPercent" : 10,
        "UnlimitedRes"    : false,
        "TerrainHeight"   : 512,
        "MapSize"         : 2,
        "RiverDensity"    : 1,
        "RiverWidth"      : 1,
        "PlainHeight"     : 20,
        "Flatness"        : 25,
        "BridgeMaxHeight" : 100,
        "AICount"         : 3
}

then:

$ ./PE_Server.x86_64

it will create the server and make folders in:

steamapps/common/Planet Explorers/HeadlessServer/ServerData/CommonGames/

you can later run the server you made by specifying the server name:

$ ./PE_Server.x86_64 startwithargs MyServer#1#7656119xxxxxxxxxx

where xxxxxxxxxx is the rest of your steam ID
« Last Edit: February 27, 2017, 04:11:41 AM by brokenlogin »
Logged
Pages: 1 [2]