Multiplayer: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
The multiplayer feature was introduced with v0.11.0 and will be thought only for ''Lan-parties'' or ''Low-latency internet'', because there is no much lag latency hiding mechanics introduced. | The multiplayer feature was introduced with v0.11.0 and will be thought only for ''Lan-parties'' or ''Low-latency internet'', because there is no much lag latency hiding mechanics introduced. | ||
The game is technically a peer2peer game. Which means, there is no ''server'' needed. | |||
Anybody can join an existing game, if he knows the IP of the game. He connects to the game, the game stops and the second players game downloads the current map. If the first hoster stops, the second player can continue to play and the first player can rejoin at any time. If the game desynchronizes, the map is redownloaded automatically and the game can continue. | |||
== Playing over LAN / Internet == | |||
Playing over Internet was not thought to work proper with v0.11! There could be noticeable lags, depending on connection speed/reaction time. | |||
* Both game instances need the installation of exactly same game-versions and mods! (Maybe someone has the scenario pack mod | * Both game instances need the installation of exactly same game-versions and mods! (Tip: Maybe someone has the scenario pack mod off?) | ||
* | * For a it more fluent game the "clients" can turn off autosave. | ||
* Factorio uses the port '''34197'''. The port can be changed in the [[Application Directory|config]]. | |||
* Factorio uses '''UDP only,''' so make sure, you configured your router correct. (The game builds it's own "reliable delivery" layer built on UDP to deal with packet loss and reordering issues.) | |||
* Factorio uses the port 34197. The port can be changed in the [[Application Directory|config]]. | |||
* Factorio uses UDP only, so make sure, you configured your router correct. (The game builds it's own "reliable delivery" layer built on UDP to deal with packet loss and reordering issues.) | |||
** Make sure, that there is no firewall or anti-virus blocking the UDP-packets. | ** Make sure, that there is no firewall or anti-virus blocking the UDP-packets. | ||
** read further, look into "more guides", to configure your router set up. | ** read further, look into "more guides", to configure your router set up. | ||
** It is necessary that all the peers can communicate with each other. It is however in theory not necessary that all the peers have public IP address - this should work even behind a NAT. See [http://www.factorioforums.com/forum/viewtopic.php?f=30&p=51201#p50553 Cube in ''Cannot Have 3+ Players connected at the same time.]'' | ** It is necessary that all the peers can communicate with each other. It is however in theory not necessary that all the peers have public IP address - this should work even behind a NAT. See [http://www.factorioforums.com/forum/viewtopic.php?f=30&p=51201#p50553 Cube in ''Cannot Have 3+ Players connected at the same time.]'' | ||
* | * The hard limit for the number of players is [http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6481&p=50661#p50586 65535]. :) | ||
=== Voice Chat === | |||
* it is recommended to use some voice chat (teamspeak, Skype), because you need to talk a lot (coordinate connection, building, handling attacks...). Teamspeak servers are posted in the [http://www.factorioforums.com/forum/viewforum.php?f=53 multiplayer forum]. | * it is recommended to use some voice chat (teamspeak, Skype), because you need to talk a lot (coordinate connection, building, handling attacks...). Teamspeak servers are posted in the [http://www.factorioforums.com/forum/viewforum.php?f=53 multiplayer forum]. | ||
* many players use other software like Hamachi or Evolve to meet other players ... See down under software. | |||
=== Finding other Peers === | |||
* use the [http://www.factorioforums.com/forum/viewforum.php?f=53 multiplayer board in the forum]. | |||
* many players use other software like Hamachi or Evolve to meet other players ... They have also the "advantage" to create a virtual private network between the player. See down under software. | |||
* some use also [http://www.factorioforums.com/forum/viewtopic.php?f=5&t=9136 Steam] to find others. | |||
== Factorio servers or Why Peer-to-Peer? == | |||
There where some discussions about, why Factorio doesn't use the client+server-model, but instead uses the peer-to-peer-priniciple. | |||
With v0.11 there will be no explicit support for making Factorio "servers". That will come with v0.12! | |||
If you want to make a world running 24/7 you need to start whole Factorio on your "server" machine and keep it running, it works just as a peer. The server instance will then have a character in the game just like anybody else. | |||
Some links | |||
* [http://www.factorioforums.com/forum/viewtopic.php?f=38&p=74091#p73402 developer statement] | |||
* [http://www.factorioforums.com/forum/viewtopic.php?f=38&p=70874 Good explanation] | |||
==== Headless server ==== | |||
* Linux Headless server / vnc (Maybe too soon?): http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6449 | |||
* [http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6585 Dedicated Multiplayer Server Guide] | |||
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&t=6077#p47283 Make a linux headless server] | |||
=== Game types === | |||
==== Coop ==== | |||
Coop-game runs without any further preparation ( http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6501 ) | |||
==== PvP ==== | |||
* [http://www.factorioforums.com/forum/viewtopic.php?f=14&t=8352 PvP with craftable biters] | |||
== Technical Implementation == | |||
* [http://www.factorio.com/blog/post/fff-76 Friday facts article] | |||
=== More Tools/Infos === | |||
* use mods for planning. See [http://www.factorioforums.com/forum/viewtopic.php?f=14&t=6788 basic planner], [http://www.factorioforums.com/forum/viewtopic.php?f=14&t=4022 Planning-Tool-Mod]... | * use mods for planning. See [http://www.factorioforums.com/forum/viewtopic.php?f=14&t=6788 basic planner], [http://www.factorioforums.com/forum/viewtopic.php?f=14&t=4022 Planning-Tool-Mod]... | ||
* look into [http://www.factorioforums.com/forum/viewforum.php?f=53 multiplayer forum], most other questions are answered there. | * look into [http://www.factorioforums.com/forum/viewforum.php?f=53 multiplayer forum], most other questions are answered there. | ||
''And always remember that Factorio in v0.11 isn't intended to work well on internet connections, so keep patient. ;) | ''And always remember that Factorio in v0.11 isn't intended to work well on internet connections, so keep patient. ;) | ||
Line 38: | Line 73: | ||
* [http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6585 Dedicated Multiplayer Server Guide], by Icecube45 | * [http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6585 Dedicated Multiplayer Server Guide], by Icecube45 | ||
* [http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6720 Tips to connect in multiplayer], by Nondre | * [http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6720 Tips to connect in multiplayer], by Nondre | ||
== Miscellaneous tips == | == Miscellaneous tips == | ||
* the key for [[Console commands]] will now initiate a chat in MP. To execute commands you need to type '/c' before the command! | * the key for [[Console commands]] will now initiate a chat in MP. To execute commands you need to type '/c' before the command! | ||
* Set the player's color using the command | * Set the player's color using the command | ||
/c game.players[x].color = {r=0.7, g=0.5, b=0.1, a=0.9} | /c game.players[x].color = {r=0.7, g=0.5, b=0.1, a=0.9} | ||
Line 60: | Line 86: | ||
* http://www.factorioforums.com/forum/viewtopic.php?f=49&t=7690 | * http://www.factorioforums.com/forum/viewtopic.php?f=49&t=7690 | ||
* [http://www.factorioforums.com/forum/viewtopic.php?f=53&t=7714 A guide for connecting with evolve] | * [http://www.factorioforums.com/forum/viewtopic.php?f=53&t=7714 A guide for connecting with evolve] | ||
{{Stub}} | {{Stub}} |
Revision as of 07:25, 25 March 2015
This article contains content on features that are included in Alpha 0.11.0, an "experimental release" of the game that is not considered as "stable release" by the developers yet.
The multiplayer feature was introduced with v0.11.0 and will be thought only for Lan-parties or Low-latency internet, because there is no much lag latency hiding mechanics introduced.
The game is technically a peer2peer game. Which means, there is no server needed.
Anybody can join an existing game, if he knows the IP of the game. He connects to the game, the game stops and the second players game downloads the current map. If the first hoster stops, the second player can continue to play and the first player can rejoin at any time. If the game desynchronizes, the map is redownloaded automatically and the game can continue.
Playing over LAN / Internet
Playing over Internet was not thought to work proper with v0.11! There could be noticeable lags, depending on connection speed/reaction time.
- Both game instances need the installation of exactly same game-versions and mods! (Tip: Maybe someone has the scenario pack mod off?)
- For a it more fluent game the "clients" can turn off autosave.
- Factorio uses the port 34197. The port can be changed in the config.
- Factorio uses UDP only, so make sure, you configured your router correct. (The game builds it's own "reliable delivery" layer built on UDP to deal with packet loss and reordering issues.)
- Make sure, that there is no firewall or anti-virus blocking the UDP-packets.
- read further, look into "more guides", to configure your router set up.
- It is necessary that all the peers can communicate with each other. It is however in theory not necessary that all the peers have public IP address - this should work even behind a NAT. See Cube in Cannot Have 3+ Players connected at the same time.
- The hard limit for the number of players is 65535. :)
Voice Chat
- it is recommended to use some voice chat (teamspeak, Skype), because you need to talk a lot (coordinate connection, building, handling attacks...). Teamspeak servers are posted in the multiplayer forum.
Finding other Peers
- use the multiplayer board in the forum.
- many players use other software like Hamachi or Evolve to meet other players ... They have also the "advantage" to create a virtual private network between the player. See down under software.
- some use also Steam to find others.
Factorio servers or Why Peer-to-Peer?
There where some discussions about, why Factorio doesn't use the client+server-model, but instead uses the peer-to-peer-priniciple. With v0.11 there will be no explicit support for making Factorio "servers". That will come with v0.12!
If you want to make a world running 24/7 you need to start whole Factorio on your "server" machine and keep it running, it works just as a peer. The server instance will then have a character in the game just like anybody else.
Some links
Headless server
- Linux Headless server / vnc (Maybe too soon?): http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6449
- Dedicated Multiplayer Server Guide
- Make a linux headless server
Game types
Coop
Coop-game runs without any further preparation ( http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6501 )
PvP
Technical Implementation
More Tools/Infos
- use mods for planning. See basic planner, Planning-Tool-Mod...
- look into multiplayer forum, most other questions are answered there.
And always remember that Factorio in v0.11 isn't intended to work well on internet connections, so keep patient. ;)
More Guides
- How To set up a Factorio Multiplayer Server | Guide | Tutorial, by Teaspoon
- Dedicated Multiplayer Server Guide, by Icecube45
- Tips to connect in multiplayer, by Nondre
Miscellaneous tips
- the key for Console commands will now initiate a chat in MP. To execute commands you need to type '/c' before the command!
- Set the player's color using the command
/c game.players[x].color = {r=0.7, g=0.5, b=0.1, a=0.9}
Where x is the player number. r, g and b are for red, green and blue respectively (possible values are between 0 and 1, use the right-most column on http://prideout.net/archive/colors.php). a is alpha channel aka Transparency of the color to the base texture. For single player, leave off the "[x]" to set the color.
Software for routing / establishing connection
- http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6393
- http://www.factorioforums.com/forum/viewtopic.php?f=53&t=6386
- http://www.factorioforums.com/forum/viewtopic.php?f=49&t=7690
- A guide for connecting with evolve
This article is a stub, and not comprehensive. |
---|
You can help this wiki by expanding it. |