Page 1 of 1

help with making a server

Posted: Sat Jan 07, 2017 3:29 pm
by zoekbewijsNL
Hello guys,

first of all i'm new here so i hope that i can post my problem over here.

yesterday i want to run a server for me and my friends so we can play togetter this fun game. However when i start te server script its run outs with a error:
invalid visibility value, please check data/server-settings.example.json for correct format.

what i try i cant figger it out what te problem is. so i post my settings over here so one of u can help me maybe.

Code: Select all

{
  "name": "bende van ellende",
  "description": "zoals de naam al zegt",
  "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": "stream2016",
 
  "_comment_verify_user_identity": "When set to true, the server will only allow clients that have a valid Factorio.com account",
  "verify_user_identity": false
}
what do i wrong? thxq for the help!
and im sorry for the bad english im dutch. can speak english verry well but have some problems with righting.

Re: help with making a server

Posted: Sat Jan 07, 2017 3:33 pm
by daniel34

Re: help with making a server

Posted: Sat Jan 07, 2017 9:59 pm
by zoekbewijsNL
oke thxq thats works fine on my pc . but now i installed a new server and did exactly the same but now i getting a new error.

Image

Re: help with making a server

Posted: Sat Jan 07, 2017 10:22 pm
by daniel34
Please post the contents of the .bat file you are using to start the server.

Re: help with making a server

Posted: Sat Jan 07, 2017 10:24 pm
by zoekbewijsNL

Code: Select all

@echo off
::==============================================================================================================
::	Replace the appropriate entries below to suit your installation (Default install example shown)
::==============================================================================================================

set FactorioExeLocation=C:\Program Files\Factorio\bin\x64\

set SaveFileName=testserver.zip
set SaveLocation=C:\Users\server\AppData\Roaming\Factorio\saves\

set ServerSettingsFileName=server-settings.json
set ServerSettingsLocation=C:\Program Files\Factorio\data\
::==============================================================================================================

cd %FactorioExeLocation%

echo.
echo.
echo PREPARING TO LAUNCH FACTORIO SERVER...
echo.
echo 	Save to be loaded:
echo 		%SaveLocation%%SaveFileName% 
echo.
echo 	Server Settings to load: 
echo 		%ServerSettingsLocation%%ServerSettingsFileName%
echo.
echo.
echo *** Remember to use Ctrl+C to ensure saving when finished instead of simply closing this of this window ***
echo.
echo.
pause 3

::==============================================================================================================
:: ***NOTE: The line below launches factorio in headless mode with desired server settings, add any other
::          desired arguments to end of the line. Use "factorio.exe --help" for a list of all supported arguments.
::==============================================================================================================
factorio.exe --start-server "%SaveLocation%%SaveFileName%" --server-settings "%ServerSettingsLocation%%ServerSettingsFileName%"



pause 3

Re: help with making a server

Posted: Sat Jan 07, 2017 10:45 pm
by daniel34
The .bat looks fine.

Are you running the current version of Factorio (0.14.21) and is it the 64-bit version? The 32-bit version doesn't support multiplayer/headless anymore.

You can check by creating a version.bat with these contents and then start it:

Code: Select all

factorio.exe --version
pause

Re: help with making a server

Posted: Sat Jan 07, 2017 11:32 pm
by zoekbewijsNL
i have reinstalled an older version. im now getting this:

Image

i cant connect to the game.

Re: help with making a server

Posted: Sun Jan 08, 2017 12:43 am
by Loewchen
Are you trying to make a connection while running different versions of the game between the participants?!

Re: help with making a server

Posted: Sun Jan 08, 2017 12:47 am
by zoekbewijsNL
ahh new version vs old version problem.. reinstalled and now its working :)