该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
写了写了,事儿一多差点忘记了。首先是我在官网找到别人出错的一个bat文件哈,我是放在这个文件目录下的 F:\Steam\steamapps\common\Factorio,大家可以找到自己的目录。内容:
@echo off
::==============================================================================================================
::Replace the appropriate entries below to suit your installation (Default install example shown) ::==============================================================================================================
set FactorioExeLocation=F:\Steam\steamapps\common\Factorio\bin\x64 \\factorio.exe的目录
set SaveFileName=game.zip \\存档名字,需要自己先建个满意的存档
set SaveLocation=C:\Users\zzm\AppData\Roaming\Factorio\saves\ \\存档位置
set ServerSettingsFileName=server-settings.example.json \\这个文件可以从data\下找到,把他复 制到F:\Steam\steamapps\common\Factorio文件夹下
set ServerSettingsLocation=F:\Steam\steamapps\common\Factorio\ \\server-settings.example.json文件的位置
::==============================================================================================================
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
\\后面都是要删掉的东西
这样就可以了,然后我的完整的bat再复制一遍,放楼下