Error when launching headless 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.
Post Reply
Warlord2150
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Apr 19, 2018 3:35 am
Contact:

Error when launching headless server

Post by Warlord2150 »

Hey folks. Can anyone tell me why I'm getting the error on line 22 here? I'm trying to do this for the first time, so I may well have derped this entire process, but nevertheless, I'd like to see it done. I have all the json files and the testserver.zip in the same directory there, which I think is right. Any suggestions?

Code: Select all

C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64>start /wait factorio.exe --start-server testserver.zip --map-gen-settings map-gen-settings.json --map-settings map-settings.json --server-settings server-settings.json
   0.002 2018-04-18 23:17:13; Factorio 0.16.36 (build 36253, win64, steam)
   0.002 Operating system: Windows 10 (version 1709)
   0.002 Program arguments: "factorio.exe" "--start-server" "testserver.zip" "--map-gen-settings" "map-gen-settings.json" "--map-settings" "map-settings.json" "--server-settings" "server-settings.json"
   0.002 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.002 Write data path: C:/Users/Us/AppData/Roaming/Factorio [168469/714386MB]
   0.002 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.009 System info: [CPU: AMD Ryzen 5 1500X Quad-Core Processor          , 8 cores, RAM: 3882/16336 MB, page: 5459/18768 MB, virtual: 153/134217727 MB, extended virtual: 0 MB]
   0.010 Running in headless mode
   0.050 Loading mod core 0.0.0 (data.lua)
   0.064 Loading mod base 0.16.36 (data.lua)
   0.207 Loading mod base 0.16.36 (data-updates.lua)
   0.255 Checksum for core: 1316978547
   0.256 Checksum of base: 4140083139
   0.345 Info PlayerData.cpp:67: Local player-data.json unavailable
   0.345 Info PlayerData.cpp:72: Cloud player-data.json unavailable
   0.347 Custom inputs active: 0
   0.349 Factorio initialised
   0.350 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).   0.350 Info ServerMultiplayerManager.cpp:698: mapTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
   0.350 Info ServerMultiplayerManager.cpp:698: mapTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
   0.350 Loading map C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\testserver.zip: 22 bytes.
   0.351 Error ServerMultiplayerManager.cpp:96: MultiplayerManager failed: "Opening zip C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin/x64/testserver.zip failed: I/O error"
   0.351 Info ServerMultiplayerManager.cpp:698: mapTick(4294967295) changing state from(CreatingGame) to(InitializationFailed)
   0.352 Info ServerMultiplayerManager.cpp:142: Quitting multiplayer connection.
   0.352 Info ServerMultiplayerManager.cpp:698: mapTick(4294967295) changing state from(InitializationFailed) to(Closed)   0.376 Info UDPSocket.cpp:206: Closing socket
   0.376 Goodbye

C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64>pause
Press any key to continue . . .

Loewchen
Global Moderator
Global Moderator
Posts: 8306
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Error when launching headless server

Post by Loewchen »

testserver.zip is a working save file you want to load on start?

Warlord2150
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Apr 19, 2018 3:35 am
Contact:

Re: Error when launching headless server

Post by Warlord2150 »

It is an empty zip directory that I assumed the game deposited the necessary files into when the game is created.

Loewchen
Global Moderator
Global Moderator
Posts: 8306
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Error when launching headless server

Post by Loewchen »

--start-server expects a working save, if you want to create a map use --create, see: https://wiki.factorio.com/Multiplayer. Creating a save manually in game is to recommend as not all maps are playable.

Warlord2150
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Apr 19, 2018 3:35 am
Contact:

Re: Error when launching headless server

Post by Warlord2150 »

Hmm, ok. I'll give that a whirl. Thanks!

Post Reply

Return to “Technical Help”