日本語のREADMEはこちら
- Trainers-Legend-G的外部插件, 用于增强插件本体功能
- 快捷编辑
config.json
, 并附带注释 - Discord Rich Presence, 向您的列表展示游戏状态
- 插件自动更新
- 快速重启游戏, 无需DMM
- 热重载配置 (部分配置需要重启游戏)
- 开关翻译项目
- 调整游戏窗口位置/比例
- ......
- 插件发行版更新基于 GitHub API, 国内使用了反代服务器优化速度
- 翻译文件热更新后端项目见: Trainers-Legend-Barbecue
您可以前往Release下载exe文件, 若您不喜欢使用exe, 请:
- 安装
Python 3
环境 - 安装以下包:
pip install -r requirements.txt
PyQt5>=5.15.4
requests>=2.26.0
pypresence==4.2.0
jsonschema>=4.6.0
- 运行
main.py
python main.py
- 由于 Python 自带的
zipfile
库有文件名编码问题, 故更改为 bit7z 库 (基于 7-zip ), 使用 pybind11 编译, 编译文件放置于./gui/umauitools.pyd
。此二进制文件基于Python 3.8
, 若您使用其它版本的 Python , 请自行编译, 源码位于:./unzip_cpp
以下路径配置仅为例子, 请自行修改为自己的python
和 pybind11
的安装目录
- 配置属性 - VC++目录 - 包含目录:
C:\Users\Administrator\AppData\Local\Programs\Python\Python38\include
C:\Users\Administrator\Downloads\pybind11\include
- 配置属性 - VC++目录 - 库目录:
C:\Users\Administrator\AppData\Local\Programs\Python\Python38\libs
- 配置属性 - 链接器 - 附加依赖项
python3.lib
python38.lib
建议使用Nuitka进行打包。Nuitka可以将Python代码转换为C++后编译, 极大提高了运行速度- Nuitka 目前不再支持 PyQt5
nuitka --standalone --windows-icon-from-ico=jio.ico --onefile --plugin-enable=pyqt5 --include-qt-plugins=sensible,styles main.py
- 使用pyinstaller进行打包
"E:\upx"
请替换成自己的 UPX 目录
pyinstaller -F --noconsole -i jio.ico -n legend_g_plugin.exe main.py --upx-dir "E:\upx" --clean --add-data uncompressed.tpk;./UnityPy/resources/