gameid.txt改由主程序进行初始化
This commit is contained in:
20
AUTO_MAA.py
20
AUTO_MAA.py
@@ -1170,6 +1170,13 @@ class Main(QWidget):
|
||||
config = {"Default": {}}
|
||||
with open(self.config_path, "w") as f:
|
||||
json.dump(config, f, indent=4)
|
||||
# 生成预设gameid替换方案文件
|
||||
if not os.path.exists(self.gameid_path):
|
||||
with open(self.gameid_path, "w", encoding="utf-8") as f:
|
||||
print(
|
||||
"龙门币:CE-6\n技能:CA-5\n红票:AP-5\n经验:LS-6\n剿灭模式:Annihilation",
|
||||
file=f,
|
||||
)
|
||||
# 生成管理密钥
|
||||
if not os.path.exists(self.key_path):
|
||||
while True:
|
||||
@@ -1877,13 +1884,12 @@ class Main(QWidget):
|
||||
if item.column() in [6, 7, 8]:
|
||||
# 导入与应用特殊关卡规则
|
||||
games = {}
|
||||
if os.path.exists(self.gameid_path):
|
||||
with open(self.gameid_path, encoding="utf-8") as f:
|
||||
gameids = f.readlines()
|
||||
for line in gameids:
|
||||
if ":" in line:
|
||||
game_in, game_out = line.split(":", 1)
|
||||
games[game_in.strip()] = game_out.strip()
|
||||
with open(self.gameid_path, encoding="utf-8") as f:
|
||||
gameids = f.readlines()
|
||||
for line in gameids:
|
||||
if ":" in line:
|
||||
game_in, game_out = line.split(":", 1)
|
||||
games[game_in.strip()] = game_out.strip()
|
||||
text = games.get(text, text)
|
||||
if item.column() == 10:
|
||||
text = text.replace("\\", "/")
|
||||
|
||||
@@ -118,7 +118,7 @@ MAA多账号管理与自动化软件
|
||||
- 特别的:
|
||||
- 对于`简洁用户配置列表的关卡、备选关卡-1、备选关卡-2栏目`您可以自定义关卡号替换方案。
|
||||
- 程序会读取`data/gameid.txt`中的数据,依据此进行关卡号的替换,便于常用关卡的使用。
|
||||
- `gameid.txt`在初始已经存储了一些常用资源本的替代方案。
|
||||
- `gameid.txt`会在程序首次运行时生成,其中将预置一些常用资源本的替换方案。
|
||||
|
||||

|
||||
|
||||
@@ -142,7 +142,7 @@ MAA多账号管理与自动化软件
|
||||
|
||||
- 软件将调起MAA,依次登录各用户的账号。
|
||||
|
||||
- 检查代理情况,可以手动完成未代理的任务。
|
||||
- 完成PRTS登录后,请人工检查代理情况,可以手动完成未代理的任务。
|
||||
|
||||
- 在对话框中单击对应账号的代理情况。
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
龙门币:CE-6
|
||||
技能:CA-5
|
||||
红票:AP-5
|
||||
经验:LS-6
|
||||
剿灭模式:Annihilation
|
||||
3
更新说明.txt
3
更新说明.txt
@@ -6,12 +6,13 @@ v4.0_beta
|
||||
- 修复无用户进行代理时的逻辑错误
|
||||
## 程序优化
|
||||
- 进一步优化MAA配置流程
|
||||
- `gameid.txt`改由主程序进行初始化
|
||||
- log获取部分集成为1个函数
|
||||
- 消除部分if嵌套
|
||||
## 更新说明
|
||||
- 项目初始阶段,不会提供专门的版本更新程序,您需要手动更新程序。
|
||||
- v2.1.5及以前的用户,由于新版本采用全新的架构,您需要手动输入之前的信息。
|
||||
- v3.0_Beta版用户,直接用`AUTO_MAA.exe`替代`gui.exe`后,将原文件夹下的`gui文件夹`用新版本对应文件替换,重新设置每个用户的`自定义基建`选项(输入`-`以关闭该功能,输入自定义基建配置文件地址以开启该功能)。
|
||||
- v3.1~v3.1.3_beta版用户,将原文件夹下除`data文件夹`和`config文件夹`外的内容用新版本对应文件替换即可。
|
||||
- v3.1~v3.1.3_beta版用户,直接用新版本文件替换旧版本即可。
|
||||
- 老用户请务必备份原有数据,在更新前确保所填MAA路径有效且已存在MAA配置文件,此次更新的代码改动较大,可能有数据遗失的风险。
|
||||
- 新用户请忽略本说明。
|
||||
Reference in New Issue
Block a user