Win 10 Dedicated 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
Onyxdust
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jul 18, 2016 3:02 am
Contact:

Win 10 Dedicated Server.

Post by Onyxdust »

Greetings!

I have been trying to set up a dedicated server for Factorio. Currently running Steam on version 13.9 With Windows 10 x64 OS

I have created the batch file with appropriate string leading to a specific save. ( 'factorio.exe --start-server C:\Users\*USERNAME*\AppData\Roaming\Factorio\saves\Defenders Peninsula.zip' )

However, when I try to start it, the command box blinks into existence, then disappears and nothing happens. I've re-read the wiki and several other forums, and could not find a similar problem or solution that worked. If anyone has any Ideas, I would greatly appreciate the help.

-Dusty

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Win 10 Dedicated Server.

Post by prg »

Run the batch file in cmd so you can see the output? You just might need quotes around the save file name because it contains a space.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

Onyxdust
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jul 18, 2016 3:02 am
Contact:

Re: Win 10 Dedicated Server.

Post by Onyxdust »

prg wrote:Run the batch file in cmd so you can see the output? You just might need quotes around the save file name because it contains a space.

Tried it out, No change in activity.

I can see it trying to do something, is there a way to prevent it from auto-closing the window so I can read what happened?

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Win 10 Dedicated Server.

Post by prg »

win+r -> cmd gives you a terminal window that will stay open. cd into the directory with the batch file in it, run the batch file.

Or maybe just put a "pause" at the end of the batch file so it'll ask you to press a key before exiting.

Or try finding factorio-current.log somewhere, should contain the same information.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

User avatar
asus349
Inserter
Inserter
Posts: 20
Joined: Sat Mar 26, 2016 5:43 pm
Contact:

Re: Win 10 Dedicated Server.

Post by asus349 »

ok it still crash on me i did add the pause command and got this:

C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64>factorio --start-server saves/online.zip
0.003 2016-08-23 02:40:47; Factorio 0.13.17 (build 23946, win64, steam)
0.004 Operating system: Windows 10
0.005 Program arguments: "factorio" "--start-server" "saves/online.zip"
0.006 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
0.007 Write data path: C:/Users/roberto/AppData/Roaming/Factorio
0.009 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
0.032 Running in headless mode
0.047 Loading mod core 0.0.0 (data.lua)
0.056 Loading mod base 0.13.17 (data.lua)
0.238 Loading mod air-filtering 0.4.0 (data.lua)
0.336 Loading mod AllFluids 1.0.2 (data.lua)
0.444 Loading mod KS_Power 0.1.5 (data.lua)
0.542 Checksum for core: 2228900852
0.543 Checksum for mod base: 2069790529
0.544 Checksum for mod air-filtering: 2542281814
0.544 Checksum for mod AllFluids: 1324556902
0.545 Checksum for mod KS_Power: 181953323
1.108 Info PlayerData.cpp:45: Local player-data.json available, timestamp 1471931798
1.109 Info PlayerData.cpp:52: Cloud player-data.json unavailable
1.130 Custom inputs active: 0
1.135 Factorio initialised
1.137 Info Router.cpp:558: Router peerID(65535) shutting down.
1.138 Info Router.cpp:594: Router state -> Disconnected
1.146 Info MultiplayerManager.cpp:1000: networkTick(0) mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
1.148 Info MultiplayerManager.cpp:1000: networkTick(0) mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
1.150 Loading map C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\saves\online.zip
1.170 Error MultiplayerManager.cpp:129: MultiplayerManager failed: "Opening zip C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin/x64/saves/online.zip failed: No such file or directory"
1.173 Info MultiplayerManager.cpp:1000: networkTick(0) mapTick(-1) changing state from(CreatingGame) to(InitializationFailed)
1.175 Error Main.cpp:446: Couldn't load the game for MP: Opening zip C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin/x64/saves/online.zip failed: No such file or directory

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

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Win 10 Dedicated Server.

Post by prg »

asus349 wrote: 1.170 Error MultiplayerManager.cpp:129: MultiplayerManager failed: "Opening zip C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin/x64/saves/online.zip failed: No such file or directory"
Bet that's not where the file is located indeed. Seems like you need to pass a path relative to Factorio/bin/x64/ or just use an absolute path (which would probably be easier than trying to get from somewhere within steamapps to the write data path in AppData using lots of ..)
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

User avatar
asus349
Inserter
Inserter
Posts: 20
Joined: Sat Mar 26, 2016 5:43 pm
Contact:

Re: Win 10 Dedicated Server.

Post by asus349 »

now that i have my brain back (mine you i posted this when i played fact for 12 hours) i think the way to fix this is in the path like you said so the server is looking for the file in the server "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64" where the save data is looking for in the code... so i try that still dose not work... here is what it says "
C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64>factorio/bin/x64 --start-server saves/online.zip
0.002 2016-08-23 14:54:10; Factorio 0.13.17 (build 23946, win64, steam)
0.004 Operating system: Windows 10
0.004 Program arguments: "factorio" "/bin/x64" "--start-server" "saves/online.zip"
0.005 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
0.007 Write data path: C:/Users/roberto/AppData/Roaming/Factorio
0.008 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
0.029 Running in headless mode
0.043 Loading mod core 0.0.0 (data.lua)
0.052 Loading mod base 0.13.17 (data.lua)
0.233 Loading mod air-filtering 0.4.0 (data.lua)
0.327 Loading mod AllFluids 1.0.2 (data.lua)
0.420 Loading mod KS_Power 0.1.5 (data.lua)
0.515 Checksum for core: 2228900852
0.515 Checksum for mod base: 2069790529
0.516 Checksum for mod air-filtering: 2542281814
0.517 Checksum for mod AllFluids: 1324556902
0.517 Checksum for mod KS_Power: 181953323
1.046 Info PlayerData.cpp:45: Local player-data.json available, timestamp 1471931798
1.048 Info PlayerData.cpp:52: Cloud player-data.json unavailable
1.063 Custom inputs active: 0
1.067 Factorio initialised
1.069 Info Router.cpp:558: Router peerID(65535) shutting down.
1.070 Info Router.cpp:594: Router state -> Disconnected
1.077 Info MultiplayerManager.cpp:1000: networkTick(0) mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
1.079 Info MultiplayerManager.cpp:1000: networkTick(0) mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
1.081 Loading map C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\saves\online.zip
1.101 Error MultiplayerManager.cpp:129: MultiplayerManager failed: "Opening zip C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin/x64/saves/online.zip failed: No such file or directory"
1.103 Info MultiplayerManager.cpp:1000: networkTick(0) mapTick(-1) changing state from(CreatingGame) to(InitializationFailed)
1.105 Error Main.cpp:446: Couldn't load the game for MP: Opening zip C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin/x64/saves/online.zip failed: No such file or directory

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

User avatar
asus349
Inserter
Inserter
Posts: 20
Joined: Sat Mar 26, 2016 5:43 pm
Contact:

Re: Win 10 Dedicated Server.

Post by asus349 »

ok I KNOW HOW TO FIX i just take out the numbers out of the code and
put the saves file that you want to use in the same file as the .bat and the fact EXE to run it, now its running now to join it....
Last edited by asus349 on Tue Aug 23, 2016 8:20 pm, edited 1 time in total.

User avatar
asus349
Inserter
Inserter
Posts: 20
Joined: Sat Mar 26, 2016 5:43 pm
Contact:

Re: Win 10 Dedicated Server.

Post by asus349 »

ok i cant join it i tryed to have my roomM pc (but he is hates me and he did not pay his part of rent...) but anyway just keep numbers off of the out of the code but i need to set up a server for it... so my poweredge 1900 server should be up soon. (sorry of a bit off topic)

User avatar
asus349
Inserter
Inserter
Posts: 20
Joined: Sat Mar 26, 2016 5:43 pm
Contact:

Re: Win 10 Dedicated Server.

Post by asus349 »

i have made a vid on it, on how to do it!
https://www.youtube.com/watch?v=V1QLOTrYT9w
if that dose not work.... idk next maybe prg know more,

Post Reply

Return to “Technical Help”