该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
3互联网服务器
上文提及互联网游戏实际为基于国内网络环境的局域网,如何创建可以显示在官方互联网游戏联机平台才能世界人民大团结。也是体现正版玩家联机便利性所在。
创建一个7*24小时服务器首先需要有一个网络稳定24小时的主机,推荐使用云服务器,价格在每月10元到100元不等,登录官网,上传官网游戏到云服务器并安装。
在游戏启动图标目录创建bat文件并粘贴以下代码,注意更改set开头的四行=后面的位置
@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=010.zip
set SaveLocation=C:\Users\Administrator\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