异星工厂吧 关注:61,128贴子:391,247
  • 7回复贴,共1

没有找到WIN主机搭建服务器的教程

只看楼主收藏回复

试了两个方法都不行,官网下载的服务器版本,英文教程看不懂,跟着试了试也不行,
1.服务器上运行factorio.exe登陆FAC账号创建游戏,
电脑端互联网能搜到服务器,连接时提示同账号已登陆游戏。
2.服务器上运行factorio.exe登陆FAC账号创建游戏,
电脑端直连服务器IP可以连接游戏,但是VPS一断开远程连接的话电脑端就一直提示服务器无响应,一旦远程连接VPS就没问题,开个服务器总不能电脑一直开着远程吧,那还不如本地电脑做服务器。
网上搜了半天也没有WIN主机搭建服务器的教程。


IP属地:河南1楼2017-01-23 19:10回复
    Windows
    Go to your Factorio.exe folder (Probably 'C:\Program Files\Factorio\bin\x64\')
    Create a text document, paste the following and make appropriate entries:
    -----------------------------
    @echo off ::============================================================================================================== ::Replace the appropriate entries below to suit your installation (Default install example shown) ::============================================================================================================== set FactorioExeLocation=C:\Program Files\Factorio\bin\x64\ set SaveFileName=YOURSAVENAME.zip set SaveLocation=C:\Users\YOURWINDOWSUSERACCOUNT\AppData\Roaming\Factorio\saves\ set ServerSettingsFileName=server-settings.json set ServerSettingsLocation=C:\Program Files\Factorio\data\ ::============================================================================================================== cd %FactorioExeLocation% echo. echo. echo PREPARING TO LAUNCH FACTORIO SERVER... echo. echo Save to be loaded: echo %SaveLocation%%SaveFileName% echo. echo Server Settings to load: echo %ServerSettingsLocation%%ServerSettingsFileName% echo. echo. echo *** Remember to use Ctrl+C to ensure saving when finished instead of simply closing this window *** echo. echo. pause 3 ::============================================================================================================== :: ***NOTE: The line below launches factorio in headless mode with desired server settings, add any other :: desired arguments to end of the line. Use "factorio.exe --help" for a list of all supported arguments. ::============================================================================================================== factorio.exe --start-server "%SaveLocation%%SaveFileName%" --server-settings "%ServerSettingsLocation%%ServerSettingsFileName%" pause 3
    -----------------------------
    Save the file as server.bat. Important: At 'Save as type:' select 'All Files' By default, windows will append the filetype automatically, so disabling this in order to provide your own is necessary.
    Reminder: Be sure to have replaced YOURSAVENAME and YOURWINDOWSACCOUNTNAME with correct information.
    Use the server.bat to start your server.
    The console log will be shown in the window.
    To close the server, select the console window press Control+C. If you just close it without pressing this, it will not save your game.
    Forward Ports: You will find detailed instructions for your specific router on the web
    如此简单明了,你有那里不懂?


    IP属地:浙江4楼2017-01-24 11:36
    收起回复
      嘿嘿 我用CentOS6搭的7*24小时 很稳定


      IP属地:浙江5楼2017-01-24 20:56
      收起回复
        开服务器的命令后面加个[空格]& 让他后台运行, 或者用screen命令开后台, 方法多的是


        IP属地:上海7楼2017-02-01 11:59
        回复
          win断开后不会停程序把。。
          谁说要游戏画面启动了……


          IP属地:浙江9楼2017-05-08 10:49
          回复