subata
v0.3.1
Published
一款能快速启动并登录wizard101或pirate101的命令行工具
Maintainers
Readme
subata 使用说明
要求 node 版本 20 以上
现仅支持最基本的补丁安装和快速启动
其他内容正在开发
如何安装
npm i -g subata@latest
yarn global add subata@latestinit 初始化-如果没有使用过客户端的用户可以执行此命令
subata init功能
自动获取steam游戏路径-如果获取失败自行进行config.json的编辑
生成subata_cli配置文件
start 启动游戏
subata start
执行之后跟着指示进行操作
plugin 补丁管理
subata plugins
执行之后跟着指示进行操作
chart 实时查看在线人数-仅查看通过客户端上线的账号
subata chartextract 转换wad文件,限wizrd、pirate
# 将Demo.wad输出到output文件夹下
subata extract Demo.wad ./output
list 查看wad文件内容,限wizard、pirate
# 将文件夹打包成Demo.wad
subata list Demo.wad ./output
pack 查看wad文件内容,限wizard、pirate
# 列出 Demo.wad 文件内容
subata list Demo.wad
命令行配置文件(模板) config.json
命令行配置文件 json,如果无法直接使用可自行修改路径或详细配置
| 字段名 | 作用 | | ------------------- | -------------------------------------------------------------------------------------------------------------------- | | desc | 描述 | | configpath | subata 客户端配置文件地址,没有用过客户端需按下方格式创建客户端 config.json 并修改 configpath 指向客户端 config.json | | service | 服务器地址 | | port | 端口 | | Target_class | wizard 窗口类 | | Target_class_pirate | pirate 窗口类 |
subata 客户端配置文件(一般为储存用户信息和本地游戏路径)
| 字段名 | 作用 | 数据类型 | | -------- | ------------ | ------------- | | userList | 用户信息 | AccountItem[] | | gamePath | 本地游戏路径 | GamePath |
AccountItem
| 字段名 | 作用 | 数据类型 | | -------- | ------ | -------- | | time | 时间戳 | number | | account | 账号 | string | | password | 密码 | string |
gamePath
| 字段名 | 作用 | 数据类型 | | --------------------- | -------------------- | -------- | | wizParam/pirParam | 启动参数 | string | | wizPath/pirPath | 游戏根目录 | string | | wizBinPath/pirBinPath | 游戏 bin 目录 | string | | wizExe/pirExe | 游戏 Bin 下 exe 名称 | string |
示例客户端 config.json
{
"userList": [
{
"account": "test01",
"password": "test01"
},
{
"account": "test02",
"password": "test02"
}
],
"gamePath": {
"wizParam": " -L login.us.wizard101.com 12000 ",
"pirParam": " -L login.us.pirate101.com 12000",
"wizPath": "F:\\mine\\w101",
"wizBinPath": "F:\\mine\\w101\\Bin",
"wizExe": "WizardGraphicalClient.exe",
"pirPath": "F:\\mine\\w101",
"pirBinPath": "F:\\mine\\w101\\Bin",
"pirExe": "Pirate.exe"
}
}