切换语言: Deutsch English Español 日本語 Русский Українська

Multiplayer/zh: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "{{Languages}} {{Experimental|Alpha 0.11.0}} 多人游戏的功能产生于v0.11.0版本,建议在''局域网''或''低延迟互联网''上使用,因为这样会不那么...")
 
No edit summary
Line 32: Line 32:
== 异星工厂服务器:为什么要p2p? ==
== 异星工厂服务器:为什么要p2p? ==


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!
在v0.11没有明确支持一个异星工厂 “服务器”。而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.
如果你想制作一个24/7不间断运行的世界,你需要在你的服务器上运行异星工厂并保持运行,它的原理就如同一个玩家。服务器将如同其他人一样,成为一个在游戏中的角色。


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=74091#p73402 开发者接口]
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&t=6077#p47283 Older statement]
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&t=6077#p47283 早期的接口]
* [http://www.factorioforums.com/forum/viewtopic.php?f=38&p=70874 Good explanation]
* [http://www.factorioforums.com/forum/viewtopic.php?f=38&p=70874 更好的解释]


==== Headless server ====
==== Headless server ====

Revision as of 08:09, 4 June 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.

多人游戏的功能产生于v0.11.0版本,建议在局域网低延迟互联网上使用,因为这样会不那么卡顿。

从技术上讲这是一个用户-用户的游戏,不需要服务器

只要知道游戏的IP地址,任何人都可以加入一个已经存在的游戏。他加入游戏时,游戏将暂停以等待新玩家下载地图。如果原先的玩家退出了游戏,第二名玩家可以继续游戏,同时第一名玩家还可以随时重新加入。如果游戏需要同步,地图会被自动重新下载,然后游戏会继续进行。

在局域网/互联网上联机

v0.11版游戏可能不能正常在互联网上玩。注意,卡顿和延迟取决于连接速度和响应时间。

  • 所有玩家的游戏版本和安装的mod必须完全一致。 (提示:也许有人没有装剧情包?)
  • 为了更流畅的进行游戏,主机可以关闭自动保存。
  • 游戏使用端口34197。端口可以在设置中更改。
  • 游戏仅支持 UDP协议。请确保你的路由器有正确的设置。(游戏拥有自己的“可靠通信层”建立在UDP之上来解决丢包问题。)
    • 请确保没有防火墙或杀毒软件阻止了UDP数据包。
    • 请看“更多指导”来正确设置路由器。
    • 所有的玩家都能互相连接是十分必要的。不仅仅是必要,而是从理论上说,所有的玩家都需要有公共的IP地址,即使在NAT中也是如此。看 为什么我不能超过三人同时联机?
  • 同时联机人数的理论上限是65535. :)

语音聊天

  • 建议使用一些聊天软件,因为你会需要说很多话(配合连接,建造,传递物品...)。 语音服务器:多人游戏论坛

寻找其他玩家

  • 使用论坛中的多人游戏版面.
  • 很多人使用蛤蟆吃(Hamachi)或Evolve来寻找其他玩家。这有助于在玩家之间建立一个虚拟私有网络。看看下面的软件。
  • 一些人在 Steam 上寻找其他玩家。

异星工厂服务器:为什么要p2p?

有人争论,为什么异星工厂不使用客户-服务器的模式,却采用玩家-玩家的模式。 在v0.11没有明确支持一个异星工厂 “服务器”。而v0.12会支持!

如果你想制作一个24/7不间断运行的世界,你需要在你的服务器上运行异星工厂并保持运行,它的原理就如同一个玩家。服务器将如同其他人一样,成为一个在游戏中的角色。

一些链接:

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

And always remember that Factorio in v0.11 isn't intended to work well on internet connections, so keep patient. ;)

More Guides

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


No-building-material-icon.png
This article is a stub, and not comprehensive.
You can help this wiki by expanding it.