Dedicated Multiplayer Server Guide

Find multiplayer games.
Tools/scripts to run a dedicated server.
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: Dedicated Multiplayer Server Guide

Post by cube »

Alkalyne wrote:It's because you don't have the lastest version of libc.so (required by factorio), it's not available in wheezy with apt-get because wheezy is oldstable

I know you can force the install of a new version but I don't remember how
Exactly. Factorio needs at least glibc 2.15. That means Debian Jessie or newer.
icecube45
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon Nov 03, 2014 5:36 am
Contact:

Re: Dedicated Multiplayer Server Guide

Post by icecube45 »

Holy Crap! I'm so sorry guys.
When I created this it got so little response that I just forgot about it, and honestly just kind of dwindled away from factorio..

I just started playing again, and rediscovered I had made this via the wiki..

I promise I'll try to update the post with fixes/added information from what you guys have found out!

Sorry I was so unresponsive!

-icecube45

P.S. feel free to ask me questions about this, I can try and answer.
Chaos234
Long Handed Inserter
Long Handed Inserter
Posts: 54
Joined: Sat Jun 27, 2015 10:45 pm
Contact:

Re: Dedicated Multiplayer Server Guide

Post by Chaos234 »

Hello,

I like this tutorial but I don't understand what the following step means:
We now need to create a save file, this must be done on a local copy of factorio
In your new savefile, type the following into the console:

Code: Select all

/c local char = game.players[1].character; game.players[1].character = nil; char.die()
Can you explane this step by step? My Questions are:

What save game file? From WIndows? Linux? How is it created (new game, or the latest own save game file from the folder on the local windows machine)?
In which console is code to paste? Windows cmd or after uploading the save file or must this code snipet directly pasted into the save file?

The best way will be for each step one screenshot e. g. one for creating the save file (or can I use any already existing save files?), then a one for how to
correctly setup the above code line and then a picture what is to do after pasting the code above.

Hope, that this will be possible and I hope that it would run on tha latest stable linux debian server (can't see any differences between ubuntu and debian).
icecube45
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon Nov 03, 2014 5:36 am
Contact:

Re: Dedicated Multiplayer Server Guide

Post by icecube45 »

Chaos234 wrote:Hello,

I like this tutorial but I don't understand what the following step means:
We now need to create a save file, this must be done on a local copy of factorio
In your new savefile, type the following into the console:

Code: Select all

/c local char = game.players[1].character; game.players[1].character = nil; char.die()
Can you explane this step by step? My Questions are:

What save game file? From WIndows? Linux? How is it created (new game, or the latest own save game file from the folder on the local windows machine)?
In which console is code to paste? Windows cmd or after uploading the save file or must this code snipet directly pasted into the save file?

The best way will be for each step one screenshot e. g. one for creating the save file (or can I use any already existing save files?), then a one for how to
correctly setup the above code line and then a picture what is to do after pasting the code above.

Hope, that this will be possible and I hope that it would run on tha latest stable linux debian server (can't see any differences between ubuntu and debian).

On your gaming machine (not the server), create a new game, and open the console with the "`" or "~" button, then type that in there, and save the game, the step to do after that is transfer that save file to your server.

As for debian/ubunutu, as long as you use the same libraries, it should be fine.
Chaos234
Long Handed Inserter
Long Handed Inserter
Posts: 54
Joined: Sat Jun 27, 2015 10:45 pm
Contact:

Re: Dedicated Multiplayer Server Guide

Post by Chaos234 »

Thanks for your answere, I'll try it the next weekend :).
Nukesor
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat May 30, 2015 8:33 am
Contact:

Re: Dedicated Multiplayer Server Guide

Post by Nukesor »

Hey Guys!

In the next release (0.12) a few new flags will be introduced.
There is a --start-server, which will start a server in headless mode, as well as --autosave-interval and --latency.
See https://forums.factorio.com/forum/vie ... 71&t=12908
All our scripts will be redundant :D.
icecube45
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon Nov 03, 2014 5:36 am
Contact:

Re: Dedicated Multiplayer Server Guide

Post by icecube45 »

Nukesor wrote:Hey Guys!

In the next release (0.12) a few new flags will be introduced.
There is a --start-server, which will start a server in headless mode, as well as --autosave-interval and --latency.
See https://forums.factorio.com/forum/vie ... 71&t=12908
All our scripts will be redundant :D.

Oh, I know.
Believe me, I won't be sad one bit about having a dedicated option implimented
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Dedicated Multiplayer Server Guide

Post by Adil »

I wonder, whatdoes it mean when server disconnects from your game?

edit: The answer is you keep your own game session which becomes irrelevant to server and to which people won't connect.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Default
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Feb 25, 2016 5:02 pm
Contact:

Re: Dedicated Multiplayer Server Guide

Post by Default »

Default
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Feb 25, 2016 5:02 pm
Contact:

Re: Dedicated Multiplayer Server Guide

Post by Default »

We will rent this server for about one month and than i will write a review about the offer of zap hosting :)
NoPantsMcDance
Filter Inserter
Filter Inserter
Posts: 478
Joined: Fri Jul 17, 2015 6:56 pm
Contact:

Re: Dedicated Multiplayer Server Guide

Post by NoPantsMcDance »

4GB is more than enough. I'm running 2 servers on 2GB of ram. Server with no mods uses 100-500MB. Modded server ( 20 mods ) sits around 200MB-1GB.
Looking for a multiplayer server? Check out my servers Vanilla Server
Bisa
Filter Inserter
Filter Inserter
Posts: 450
Joined: Fri Jul 17, 2015 3:22 pm
Contact:

Re: Dedicated Multiplayer Server Guide

Post by Bisa »

Default wrote:Are 4 GB RAM enough? Look Here for the offer of ZAP-Hostingsting
just pitching in, I've been running my server for almost a year now 2GB is sufficient for a small vanilla server (0~10 players). Can't say I've ever had more than that at a time so hard for me to say if it would cope with more
Hosting a factorio server? Take a look at this || init script ||.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Dedicated Multiplayer Server Guide

Post by daniel34 »

My vanilla server currently uses 550MB (OS + Factorio + Apache2 + TS).
Vanilla server
The modded server uses 750MB (OS + Factorio)
Modded server
quick links: log file | graphical issues | wiki
zychrias
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Mar 14, 2016 7:39 pm
Contact:

Re: Dedicated Multiplayer Server Guide

Post by zychrias »

I apologize if this has been covered. I tried searching and didn't come up with anything helpful..

Linux server of Factorio running on a Raspberry Pi 2. Is this game there yet?

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

Re: Dedicated Multiplayer Server Guide

Post by prg »

zychrias wrote:I apologize if this has been covered. I tried searching and didn't come up with anything helpful..

Linux server of Factorio running on a Raspberry Pi 2. Is this game there yet?

Thank you!
There are no ARM builds of Factorio, only x86 and x86_64 (headless server only x86_64)
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Post Reply

Return to “Multiplayer / Dedicated Server”