【服务器:云服务器Win Server】
"name": "服务器名称,随便写,用英文"
"username": "账户名。需要上异星工厂官网申请一个账户,然后绑定Steam"
"password": "密码。需要上异星工厂官网申请一个账户,然后绑定Steam"
"token": "官网上绑定steam后,能获得一个token"
"game_password": "玩家进入游戏时需要输入的密码"
'===========设置变量=====================================
'异星工厂EXE所在目录路径
RootDir = "C:\Steam\steamapps\common\Factorio\bin\x64\" '文件夹路径结尾请带\
'地图保存路径
MapDir = "C:\Steam\steamapps\common\Factorio\Saves\"
'地图名称
MapName = "Map1.zip" '后缀为.zip
'===================================================
'下面的不要修改=====================
DirSign = left(RootDir,1)
Set obj = createobject("wscript.shell")
obj.run "cmd /k " + DirSign + ": && cd " + RootDir + " && factorio.exe --create " + """" + MapDir + MapName + """"
'===========设置变量=====================================
'异星工厂EXE所在目录路径
RootDir = "C:\Steam\steamapps\common\Factorio\bin\x64\" '文件夹路径结尾请带\
'地图保存路径
MapDir = "C:\Steam\steamapps\common\Factorio\Saves\"
'地图名称
MapName = "Map1.zip" '后缀为.zip
'服务器配置路径
ConfigDir = "C:\Steam\steamapps\common\Factorio\"
'配置名称
ConfigName = "server-setting1.json"
'===================================================
'下面的不要修改=====================
DirSign = left(RootDir,1)
Set obj = createobject("wscript.shell")
obj.run "cmd /k " + DirSign + ": && cd " + RootDir + " && factorio.exe --create " + """" + MapDir + MapName + """"