Page 1 of 2

0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 7:31 pm
by HanziQ
Due to a bug, linux headless servers in version 0.13.3 crash on startup. This will be fixed in the next version, but for now, here is a workaround:

Add this into server-settings.json that are used to launch your game:

Code: Select all

  "application_version": {
    "build_version": 22991,
    "build_mode": "headless",
    "platform": "linux",
    "game_version": "0.13.3"
  }
Replace "linux" with "windows" or "mac" if necessary.
For non headless version, replace "headless" with "alpha".

We apologise for the inconvenience.

Re: 0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 7:33 pm
by Bisa
thnx, works like a charm =)

Re: 0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 7:39 pm
by Androkai
Thx

Re: 0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 7:40 pm
by GeneralDotV2
What would I put for a Windows server having this issue?

Re: 0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 7:42 pm
by HanziQ
GeneralDotV2 wrote:What would I put for a Windows server having this issue?
Original post edited to reflect this issue.

Re: 0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 7:46 pm
by JetFox
GeneralDotV2 wrote:What would I put for a Windows server having this issue?
works just fine with linux in it lol

Re: 0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 7:50 pm
by GeneralDotV2
Got it working.
Thanks for the info.

Re: 0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 7:52 pm
by HanziQ
JetFox wrote:
GeneralDotV2 wrote:What would I put for a Windows server having this issue?
works just fine with linux in it lol
I thought so, but you never know.

Re: 0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 10:24 pm
by RanDumSocks
In multiplayer, everytime someone tries to place a water pump, the server keeps saying that player has desync issues and procedes to go into an infinite loop of decync.

Re: 0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 10:38 pm
by TyphoonNL
HanziQ wrote:Due to a bug, linux headless servers in version 0.13.3 crash on startup. This will be fixed in the next version, but for now, here is a workaround:

Add this into server-settings.json that are used to launch your game:

Code: Select all

  "application_version": {
    "build_version": 22991,
    "build_mode": "headless",
    "platform": "linux",
    "game_version": "0.13.3"
  }
Replace "linux" with "windows" or "mac" if necessary.
For non headless version, replace "headless" with "alpha".

We apologise for the inconvenience.
getting this error
2.409 Error Util.cpp:57: /dev/shm/factorio/data/server-settings.json(18): expected end of input

Re: 0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 10:45 pm
by tacgnol
TyphoonNL wrote:.......
it should look like this :

Code: Select all

{
  "name": "Name of the game as it will appear in the game listing",
  "description": "Description of the game that will appear in the listing",
  "tags": ["game", "tags"],
  "max_players": "0",

  "_comment_visibility": ["public: Game will be published on the official Factorio matching server",
                          "lan: Game will be broadcast on LAN",
                          "hidden: Game will not be published anywhere"],
  "visibility": "hidden",

  "_comment_credentials": "Your factorio.com login credentials. Required for games with visibility public",
  "username": "",
  "password": "",

  "_comment_token": "Authentication token. May be used instead of 'password' above.",
  "token": "",

  "game_password": "",

  "_comment_verify_user_identity": "When set to true, the server will only allow clients that have a valid Factorio.com account",
  "verify_user_identity": true,
  "application_version": {
    "build_version": 22991,
    "build_mode": "headless",
    "platform": "linux",
    "game_version": "0.13.3"
  }
}

Re: 0.13.3 Headless server workaround

Posted: Fri Jul 01, 2016 11:18 pm
by andrewflowers
where is this server-settings.json file? i'm using the .bat method on windows https://wiki.factorio.com/index.php?title=Multiplayer

Re: 0.13.3 Headless server workaround

Posted: Sat Jul 02, 2016 1:53 am
by andrewflowers
can anyone help me out? as soon as i run the bat file it crashes. i did everyting the instructions told me https://wiki.factorio.com/index.php?title=Multiplayer but it didnt mention any json file. I'm confused.

Re: 0.13.3 Headless server workaround

Posted: Sat Jul 02, 2016 2:50 am
by Gephorian
RanDumSocks wrote:In multiplayer, everytime someone tries to place a water pump, the server keeps saying that player has desync issues and procedes to go into an infinite loop of decync.
I second this one, same happened to me and a friend. We were able to start the server without a workaround, however.

Re: 0.13.3 Headless server workaround

Posted: Sat Jul 02, 2016 4:15 am
by andrewflowers
Gephorian wrote:
RanDumSocks wrote:In multiplayer, everytime someone tries to place a water pump, the server keeps saying that player has desync issues and procedes to go into an infinite loop of decync.
I second this one, same happened to me and a friend. We were able to start the server without a workaround, however.
yea sadly i had to ban people for desync or the server would be stuck in infinite loop and when they rejoin more desync. i would start a new thread for that issue though. i wish somebody could help me with my issue :(

Re: 0.13.3 Headless server workaround

Posted: Sat Jul 02, 2016 4:17 am
by daniel34
RanDumSocks wrote:In multiplayer, everytime someone tries to place a water pump, the server keeps saying that player has desync issues and procedes to go into an infinite loop of decync.
This has been fixed in 0.13.4: viewtopic.php?f=30&t=27880

Re: 0.13.3 Headless server workaround

Posted: Sat Jul 02, 2016 4:22 am
by andrewflowers
daniel34 wrote:
RanDumSocks wrote:In multiplayer, everytime someone tries to place a water pump, the server keeps saying that player has desync issues and procedes to go into an infinite loop of decync.
This has been fixed in 0.13.4: viewtopic.php?f=30&t=27880
13.4 is out this fast? dang!

Re: 0.13.3 Headless server workaround

Posted: Sat Jul 02, 2016 4:25 am
by andrewflowers
andrewflowers wrote:can anyone help me out? as soon as i run the bat file it crashes. i did everyting the instructions told me https://wiki.factorio.com/index.php?title=Multiplayer but it didnt mention any json file. I'm confused.
can anyone help me with this?

Re: 0.13.3 Headless server workaround

Posted: Sat Jul 02, 2016 4:42 am
by daniel34
andrewflowers wrote:
daniel34 wrote:
RanDumSocks wrote:In multiplayer, everytime someone tries to place a water pump, the server keeps saying that player has desync issues and procedes to go into an infinite loop of decync.
This has been fixed in 0.13.4: viewtopic.php?f=30&t=27880
13.4 is out this fast? dang!
Let me rephrase that: This will be fixed in 0.13.4.

Re: 0.13.3 Headless server workaround

Posted: Sat Jul 02, 2016 7:45 am
by pinecoffin
tacgnol wrote:
TyphoonNL wrote:.......
it should look like this :

Code: Select all

{
  "name": "Name of the game as it will appear in the game listing",
  "description": "Description of the game that will appear in the listing",
  "tags": ["game", "tags"],
  "max_players": "0",

  "_comment_visibility": ["public: Game will be published on the official Factorio matching server",
                          "lan: Game will be broadcast on LAN",
                          "hidden: Game will not be published anywhere"],
  "visibility": "hidden",

  "_comment_credentials": "Your factorio.com login credentials. Required for games with visibility public",
  "username": "",
  "password": "",

  "_comment_token": "Authentication token. May be used instead of 'password' above.",
  "token": "",

  "game_password": "",

  "_comment_verify_user_identity": "When set to true, the server will only allow clients that have a valid Factorio.com account",
  "verify_user_identity": true,
  "application_version": {
    "build_version": 22991,
    "build_mode": "headless",
    "platform": "linux",
    "game_version": "0.13.3"
  }
}
Cheers for this tacgnol.