Dedicated server error

Arrange meetings with other people to play MP, announce your servers.
spookyplanet
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Sep 07, 2015 10:14 pm
Contact:

Dedicated server error

Post by spookyplanet »

Hi All

When i run the server.bat file to start my server i get the following error

Opening zip
c:/Users/Mark/AppData/Roaming/Factorio/saves/tart-server failed

The .bat file consists of the following line
Factorio.exe -start-server Spookys_MP.zip

I did start a single player game and saved it straight away which i called the saved game as Spookys_MP

Any ideas anyone

Regards
Mark
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: Dedicated server error

Post by Oxyd »

You misspelled --start-server as -start-server.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Dedicated server error

Post by daniel34 »

the command should be --start-server Spookys_MP.zip, with two dashes before the start-server
or factorio.exe -s Spookys_MP.zip

if you call it with just -start-server it assumes you want to load (-s) the file tart-server, which it can't find.
quick links: log file | graphical issues | wiki
spookyplanet
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Sep 07, 2015 10:14 pm
Contact:

Re: Dedicated server error

Post by spookyplanet »

Ive tried that and nothing happens part from a black window pops up for 2sec
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Dedicated server error

Post by daniel34 »

Could you first run 'cmd' (open a command prompt) and then start the .bat file from that?
You could see the error that's occuring that way. Without that we can't help you much.

There should also be a log file at %appdata%\Factorio\factorio-current.log, can you post that?
quick links: log file | graphical issues | wiki
spookyplanet
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Sep 07, 2015 10:14 pm
Contact:

Re: Dedicated server error

Post by spookyplanet »

here's the details in the cmd box

Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\Mark>cd\

C:\>cd "Program Files"

C:\Program Files>cd Factorio

C:\Program Files\Factorio>cd bin

C:\Program Files\Factorio\bin>cd x64

C:\Program Files\Factorio\bin\x64>server.bat

C:\Program Files\Factorio\bin\x64>Factorio.exe --start-server Spookys_MP.zip

C:\Program Files\Factorio\bin\x64>
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: Dedicated server error

Post by Oxyd »

daniel34 wrote:or factorio.exe -s Spookys_MP.zip
-s is actually the short option for --map2scenario, so that won't work either. --start-server does not have any short option currently.
spookyplanet wrote:Ive tried that and nothing happens part from a black window pops up for 2sec
Can you post the log that's created from that? That might tell us exactly what it's doing.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Dedicated server error

Post by daniel34 »

Oxyd wrote:-s is actually the short option for --map2scenario, so that won't work either. --start-server does not have any short option currently.
You are right, my bad. Thought it was short for loading server map, because it loaded the game on my machine and I killed it before it finished.
Last edited by daniel34 on Mon Sep 07, 2015 11:29 pm, edited 1 time in total.
quick links: log file | graphical issues | wiki
spookyplanet
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Sep 07, 2015 10:14 pm
Contact:

Re: Dedicated server error

Post by spookyplanet »

There's no error logs in that location
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Dedicated server error

Post by daniel34 »

Can you post a screenshot of your Factorio directory? It should look like that:
Image

There should be the logfile in it (factorio-current.log).

Also, is your .bat file only that line? Try starting it without the .bat file by directly entering the command Factorio.exe --start-server Spookys_MP.zip
quick links: log file | graphical issues | wiki
spookyplanet
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Sep 07, 2015 10:14 pm
Contact:

Re: Dedicated server error

Post by spookyplanet »

ive attached screen shot of folder
Attachments
Capture.PNG
Capture.PNG (46.69 KiB) Viewed 12689 times
spookyplanet
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Sep 07, 2015 10:14 pm
Contact:

Re: Dedicated server error

Post by spookyplanet »

Entering the command instead of running the .bat file still does the same
spookyplanet
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Sep 07, 2015 10:14 pm
Contact:

Re: Dedicated server error

Post by spookyplanet »

Any ideas anyone?

Regards
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Dedicated server error

Post by daniel34 »

As you don't have any logs in your %appdata% folder, can you even start Factorio the usual way (starting only factorio.exe) without starting it as server? This might give you an error that could resolve the problem.
quick links: log file | graphical issues | wiki
spookyplanet
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Sep 07, 2015 10:14 pm
Contact:

Re: Dedicated server error

Post by spookyplanet »

Hi

The game works fine as single player.

Regards
razztorback
Burner Inserter
Burner Inserter
Posts: 7
Joined: Tue Mar 03, 2015 6:42 pm
Contact:

Re: Dedicated server error

Post by razztorback »

for Windows
Go to your Factorio.exe folder (Probably 'C:\Program Files\Factorio\bin\x64\')
Create a text document and write into it 'Factorio.exe --start-server YOURSAVEGAME.zip'
If you haven't already done, replace YOURSAVEGAME with your savegame name
Save the file as server.bat. Important: At 'Save as type:' select 'All Files'

Remember to portforward your router :) i got mine to work fine dedicated


https://forums.factorio.com/wiki/inde ... ultiplayer
Post Reply

Return to “Multiplayer”