Got problem when trying to start a windows server

Discussion in 'Planetary Annihilation General Discussion' started by takaqiao, April 15, 2017.

  1. takaqiao

    takaqiao New Member

    Messages:
    8
    Likes Received:
    0
    My config file
    {
    "server": "D:/Planetary Annihilation Titans/bin_x64/server.exe",
    "serverversion": "D:/Planetary Annihilation Titans",
    "serverparams": ["--headless", "--game-mode", "PAExpansion1:Config", "--allow-lan","--server-name", "Taka'sGMODSERVER"],
    "pastats": "pastats.com",
    "pastatsport": 80,
    "listonpastats": true,
    "serverip": "115.231.219.157",
    "serverport": "20545",
    "shownregion": "China"
    }
    But when im trying to open control.js by node.js
    It seems just got error and close it(And I cant see wats the error
  2. takaqiao

    takaqiao New Member

    Messages:
    8
    Likes Received:
    0
    lobby code:
    var main = require('main');
    var sim_utils = require('sim_utils');
    var server_utils = require('server_utils');
    var content_manager = require('content_manager');
    var utils = require('utils');
    var bouncer = require('bouncer');
    var env = require('env');
    var _ = require('thirdparty/lodash');
    var commander_manager = require('lobby/commander_manager');
    var color_manager = require('lobby/color_manager');
    var file_utils = require('file_utils');

    setInterval(function() {
    if (server.beacon) {
    console.log("<BACON>"+JSON.stringify(server.beacon)+"</BACON>");
    }
    }, 5000);

    var SERVER_PASSWORD = main.SERVER_PASSWORD;
  3. takaqiao

    takaqiao New Member

    Messages:
    8
    Likes Received:
    0
    pic(remove the space):imgur . com/a/WZXwJ
  4. mikeyh

    mikeyh Post Master General

    Messages:
    1,869
    Likes Received:
    1,509
    serverversion is incorrect... needs to point to version.txt
  5. takaqiao

    takaqiao New Member

    Messages:
    8
    Likes Received:
    0
    Thanks xd
    PA version is 99377
    [01:18:54.000] INFO Started at 2017-04-16 01:18:54

    [01:18:54.000] INFO SDL: Built w/ v2.0.4, linked w/ v2.0.4

    [01:18:54.015] INFO Mounting D:\Planetary Annihilation Titans\media\ as /

    [01:18:54.015] INFO Mounting C:\Users\Administrator\AppData\Local\Uber Entertain
    ment\PA Server\download\ as /download/

    [01:18:54.015] INFO Loaded buildID 2016112199377
    [01:18:54.015] WARN Crash reporting disabled.

    [01:18:54.015] INFO Log file C:\Users\Administrator\AppData\Local\Uber Entertain
    ment\PA Server\log\server-2017-04-16_011854.txt opened

    [01:18:54.015] INFO Starting async parallel for driver with 6 threads

    [01:18:54.015] INFO Starting background thread pool with 6 threads

    [01:18:54.031] INFO GameServerImpl::resetModUpdateAuthToken: Auth token reset to
    "08947916-8247-d04d-aa66-dc3df68cfb87"

    [01:18:54.280] INFO Mounting D:\Planetary Annihilation Titans\media\ as /

    [01:18:54.280] INFO Mounting D:\Planetary Annihilation Titans\media\pa_ex1\ as /
    pa/
    [01:18:54.280] INFO Mounting C:\Users\Administrator\AppData\Local\Uber Entertain
    ment\PA Server\download\ as /download/

    payload send to PA Stats:
    ____
    {"beacon":"{\"uuid\":\"JCygeV3J4wTM7UwibOO2dW6jwOhfe2uD\",\"players\":0,\"blackl
    ist\":[],\"started\":false,\"full\":false,\"bounty_mode\":false,\"max_players\":
    10,\"spectators\":0,\"mod_names\":[],\"required_content\":[\"PAExpansion1\"],\"m
    ode\":\"Waiting\",\"max_spectators\":3,\"mod_identifiers\":[],\"cheat_config\":{
    \"cheat_flags\":{\"allow_change_vision\":false,\"allow_mod_data_updates\":false,
    \"allow_change_control\":false,\"allow_create_unit\":false,\"any_enabled\":false
    }},\"player_names\":[],\"spectator_names\":[],\"whitelist\":[],\"require_passwor
    d\":false,\"tag\":\"\",\"game_name\":\"Taka\",\"game\":{\"name\":\"Taka\"},\"bou
    nty_value\":0.5,\"sandbox\":false,\"region\":\"China\"}","ip":"115.231.219.157",
    "port":"20545","id":"17670684025423","version":"99377"}
    ____
    payload send to PA Stats:
    ____
    {"beacon":"{\"uuid\":\"JCygeV3J4wTM7UwibOO2dW6jwOhfe2uD\",\"players\":0,\"blackl
    ist\":[],\"started\":false,\"full\":false,\"bounty_mode\":false,\"max_players\":
    10,\"spectators\":0,\"mod_names\":[],\"required_content\":[\"PAExpansion1\"],\"m
    ode\":\"Waiting\",\"max_spectators\":3,\"mod_identifiers\":[],\"cheat_config\":{
    \"cheat_flags\":{\"allow_change_vision\":false,\"allow_mod_data_updates\":false,
    \"allow_change_control\":false,\"allow_create_unit\":false,\"any_enabled\":false
    }},\"player_names\":[],\"spectator_names\":[],\"whitelist\":[],\"require_passwor
    d\":false,\"tag\":\"\",\"game_name\":\"Taka\",\"game\":{\"name\":\"Taka\"},\"bou
    nty_value\":0.5,\"sandbox\":false,\"region\":\"China\"}","ip":"115.231.219.157",
    "port":"20545","id":"17670684025423","version":"99377"}
    ____
    payload send to PA Stats:
    ____
    {"beacon":"{\"uuid\":\"JCygeV3J4wTM7UwibOO2dW6jwOhfe2uD\",\"players\":0,\"blackl
    ist\":[],\"started\":false,\"full\":false,\"bounty_mode\":false,\"max_players\":
    10,\"spectators\":0,\"mod_names\":[],\"required_content\":[\"PAExpansion1\"],\"m
    ode\":\"Waiting\",\"max_spectators\":3,\"mod_identifiers\":[],\"cheat_config\":{
    \"cheat_flags\":{\"allow_change_vision\":false,\"allow_mod_data_updates\":false,
    \"allow_change_control\":false,\"allow_create_unit\":false,\"any_enabled\":false
    }},\"player_names\":[],\"spectator_names\":[],\"whitelist\":[],\"require_passwor
    d\":false,\"tag\":\"\",\"game_name\":\"Taka\",\"game\":{\"name\":\"Taka\"},\"bou
    nty_value\":0.5,\"sandbox\":false,\"region\":\"China\"}","ip":"115.231.219.157",
    "port":"20545","id":"17670684025423","version":"99377"}
    ____
    payload send to PA Stats:
    ____
    {"beacon":"{\"uuid\":\"JCygeV3J4wTM7UwibOO2dW6jwOhfe2uD\",\"players\":0,\"blackl
    ist\":[],\"started\":false,\"full\":false,\"bounty_mode\":false,\"max_players\":
    10,\"spectators\":0,\"mod_names\":[],\"required_content\":[\"PAExpansion1\"],\"m
    ode\":\"Waiting\",\"max_spectators\":3,\"mod_identifiers\":[],\"cheat_config\":{
    \"cheat_flags\":{\"allow_change_vision\":false,\"allow_mod_data_updates\":false,
    \"allow_change_control\":false,\"allow_create_unit\":false,\"any_enabled\":false
    }},\"player_names\":[],\"spectator_names\":[],\"whitelist\":[],\"require_passwor
    d\":false,\"tag\":\"\",\"game_name\":\"Taka\",\"game\":{\"name\":\"Taka\"},\"bou
    nty_value\":0.5,\"sandbox\":false,\"region\":\"China\"}","ip":"115.231.219.157",
    "port":"20545","id":"17670684025423","version":"99377"}
    ____
    payload send to PA Stats:
    ____
    {"beacon":"{\"uuid\":\"JCygeV3J4wTM7UwibOO2dW6jwOhfe2uD\",\"players\":0,\"blackl
    ist\":[],\"started\":false,\"full\":false,\"bounty_mode\":false,\"max_players\":
    10,\"spectators\":0,\"mod_names\":[],\"required_content\":[\"PAExpansion1\"],\"m
    ode\":\"Waiting\",\"max_spectators\":3,\"mod_identifiers\":[],\"cheat_config\":{
    \"cheat_flags\":{\"allow_change_vision\":false,\"allow_mod_data_updates\":false,
    \"allow_change_control\":false,\"allow_create_unit\":false,\"any_enabled\":false
    }},\"player_names\":[],\"spectator_names\":[],\"whitelist\":[],\"require_passwor
    d\":false,\"tag\":\"\",\"game_name\":\"Taka\",\"game\":{\"name\":\"Taka\"},\"bou
    nty_value\":0.5,\"sandbox\":false,\"region\":\"China\"}","ip":"115.231.219.157",
    "port":"20545","id":"17670684025423","version":"99377"}
    ____
  6. takaqiao

    takaqiao New Member

    Messages:
    8
    Likes Received:
    0
    And Could u tell me a good way to restrict players?(Like admin mod or sth)
    And I noticed if u r the first guy join the server u could add password lol
  7. mikeyh

    mikeyh Post Master General

    Messages:
    1,869
    Likes Received:
    1,509
    Add a password.
  8. takaqiao

    takaqiao New Member

    Messages:
    8
    Likes Received:
    0
    How? sry I really dont know how to do it:)

Share This Page