help with making a server

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
zoekbewijsNL
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jan 07, 2017 3:20 pm
Contact:

help with making a server

Post 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.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: help with making a server

Post by daniel34 »

quick links: log file | graphical issues | wiki
zoekbewijsNL
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jan 07, 2017 3:20 pm
Contact:

Re: help with making a server

Post 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
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: help with making a server

Post by daniel34 »

Please post the contents of the .bat file you are using to start the server.
quick links: log file | graphical issues | wiki
zoekbewijsNL
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jan 07, 2017 3:20 pm
Contact:

Re: help with making a server

Post 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
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: help with making a server

Post 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
quick links: log file | graphical issues | wiki
zoekbewijsNL
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jan 07, 2017 3:20 pm
Contact:

Re: help with making a server

Post by zoekbewijsNL »

i have reinstalled an older version. im now getting this:

Image

i cant connect to the game.
Loewchen
Global Moderator
Global Moderator
Posts: 10262
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: help with making a server

Post by Loewchen »

Are you trying to make a connection while running different versions of the game between the participants?!
zoekbewijsNL
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jan 07, 2017 3:20 pm
Contact:

Re: help with making a server

Post by zoekbewijsNL »

ahh new version vs old version problem.. reinstalled and now its working :)
Post Reply

Return to “Technical Help”