搭win建中转服务器,【图片】windows搭建服务器教程【异星工厂吧】_百度贴吧

这篇博客分享了一个在Windows环境下使用批处理(BAT)文件自动启动Factorio服务器的方法。作者提供了详细的步骤,包括设置文件路径、指定存档和服务器设置文件,以及如何运行批处理脚本来启动游戏服务器。这有助于简化Factorio服务器的管理流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

写了写了,事儿一多差点忘记了。首先是我在官网找到别人出错的一个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再复制一遍,放楼下

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值