Pathea Games Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Planet Explorers Released!

Pages: 1 2 [3]

Author Topic: Tutorial on new server configuration  (Read 20328 times)

brokenlogin

  • Enlistee
  • *
  • Karma: 0
  • Posts: 19
    • View Profile
Re: Tutorial on new server configuration
« Reply #30 on: November 03, 2016, 05:44:19 PM »

I'm really happy that headless is working again in linux (tested with ubuntu 16.04 on a headless VPS).  It seems to have much improved performance as well.  I have two questions though.

Running more than one server does not seem to work even when I change the ServerName parameter in the config file after starting the first server.  What else do I need to do? 
What does the new AICount parameter do? 
Logged

Dorist1

  • Administrator
  • Planetary Hero
  • *****
  • Karma: 44
  • Posts: 2269
    • View Profile
Re: Tutorial on new server configuration
« Reply #31 on: November 04, 2016, 06:40:31 AM »

Added  "AICount" in, try it out.
Logged

brokenlogin

  • Enlistee
  • *
  • Karma: 0
  • Posts: 19
    • View Profile
Re: Tutorial on new server configuration
« Reply #32 on: November 07, 2016, 06:56:33 PM »

Added  "AICount" in, try it out.
AICount is the number of factions in a multiplayer map from 3 to 7.  These factions seem to randomly be any combination of human/puja/paja races. 
Logged

brokenlogin

  • Enlistee
  • *
  • Karma: 0
  • Posts: 19
    • View Profile
Re: Tutorial on new server configuration
« Reply #33 on: November 07, 2016, 07:11:50 PM »

Here is some additional explanation of the ServerConfig.conf
 
//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 HOW MANY TEAMS
"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 nameTHIS 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
"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)
"MapSize"         : 0, //4 = 2km2, 3 = 4km2, 2 = 8km2, 1 = 20km2, 0 = 40km2
"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 height of land)
"Flatness"      : 25, //1-100
"BridgeMaxHeight"      : 30 //0-100
"AICount"         : 3//3-7 THE TOTAL NUMBER OF FACTIONS (PUJA/PAJA/HUMAN) IN A MULTIPLAYER MAP
}
//Config ends
« Last Edit: November 07, 2016, 07:15:56 PM by brokenlogin »
Logged

lazerblade01

  • Colonist
  • **
  • Karma: 6
  • Posts: 96
    • View Profile
Re: Tutorial on new server configuration
« Reply #34 on: November 12, 2016, 12:12:02 AM »

Any chance you can add these comments to the actual config file next time you push an update? Doesn't necessarily have to be after each line like it is here, but something at the top or bottom of the file explaining what each setting is and / or which options are available would be helpful.
Logged

hejie13250

  • Enlistee
  • *
  • Karma: 0
  • Posts: 1
    • View Profile
Re: Tutorial on new server configuration
« Reply #35 on: November 14, 2016, 03:02:37 AM »

Why not do a tool to start the server? I did it myself, but every time you update the parameters are very messy, and now I do not know how to start a custom map of the game.
Logged

lisaisacat

  • Enlistee
  • *
  • Karma: 0
  • Posts: 1
    • View Profile
Re: Tutorial on new server configuration
« Reply #36 on: December 08, 2016, 07:44:13 AM »

当初看了这个帖子还下载了12G的文件,结果在游戏里就可以直接创建啊!勾选代理服务器就可以了
Logged

Rebelweasel

  • Enlistee
  • *
  • Karma: 0
  • Posts: 1
    • View Profile
Re: Tutorial on new server configuration
« Reply #37 on: January 06, 2017, 02:25:22 PM »

I've noticed a new line in our ServerConfig.cong file:
Code: [Select]
"ScriptsAvailable" : true
Is it possible this is a new setting, and does it do what I infer, to make it so that in survival mode our characters do not start the game with all scripts unlocked immediately? I've tried setting the command to "false" but when logging in, we notice no change in our scripts unlocked, not even on brand new characters we create. So excited if it turns out to be what I hope it is!  ;D
Logged

Alu

  • Settler
  • ***
  • Karma: 2
  • Posts: 140
    • View Profile
Re: Tutorial on new server configuration
« Reply #38 on: February 19, 2017, 07:00:39 PM »

Can't get it to run on my debian server, this is what I get:

Code: [Select]
/home/gameservers/planetexplorers/Server$ ./PE_Server_Linux.sh -nographics
./PE_Server.x86: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
: numeric argument required3: exit: 0
/home/gameservers/planetexplorers/Server$ ./PE_Server.x86 -nographics
./PE_Server.x86: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
/home/gameservers/planetexplorers/Server$

EDIT:
Nevermind, I had to run the file in the HeadlessServer folder. Now it works :)
« Last Edit: February 19, 2017, 10:56:15 PM by Alu »
Logged

RacerXx

  • Enlistee
  • *
  • Karma: 0
  • Posts: 8
    • View Profile
Re: Tutorial on new server configuration
« Reply #39 on: March 13, 2017, 03:21:26 AM »

Does anybody know of any user made or any admin tools at all for managing the dedi server?
« Last Edit: March 13, 2017, 03:23:01 AM by RacerXx »
Logged

Alu

  • Settler
  • ***
  • Karma: 2
  • Posts: 140
    • View Profile
Re: Tutorial on new server configuration
« Reply #40 on: March 13, 2017, 08:22:59 PM »

updated my server but now I cant relaunch it and the serverconfig reset whats up with that?

EDIT:
Fixed it.
I recommend to backup your config file,  it seems to be rewritten by the updates.
If you struggle to recover your old game, you only need to ensure you're using the exact same servername.
« Last Edit: March 14, 2017, 07:27:00 AM by Alu »
Logged
Pages: 1 2 [3]