制作工具及客户端--多版本自动切换 » 历史记录 » 修订 2
修订 1 (tejie, 2025-09-04 11:56) → 修订 2/3 (tejie, 2025-09-04 11:57)
*{color:fireBrick}制作工具--快捷切换* 1 设置当前版本,制作工具路径配置。 2 制作工具执行启动。 *{color:fireBrick}客户端--快捷切换* 1 设置当前版本,客户端配置文件设置。 1.1 本地资源路径 1.2 客户端平台(PC或手机) 1.3 客户端分辨率 2 客户端执行启动 *{color:fireBrick}项目目录结构* |<pre> \_scripts\ | |_Mir200\ | |_Mud2\ |____tejiePlatform.bat |____tejie_UiEditor.bat |____uieditorconfig.txt |_tejiePlatform.bat |_tejie_UiEditor.bat |_uieditorconfig.txt </pre>| *{color:fireBrick}相关文件示例* |^.制作工具快捷切换示例 _*{color:green}tejiePlatform.bat*_ <pre> chcp 65001 set str1=%cd%\ set str2=scripts\Mir200 echo basePath = %str1%%str2%\>.\config.txt chcp 936 ::请定义自己的tejiePlatform工具所在路径 set tjPlatFormPath=D:\MyWork\ZFKJ\测试\TeJiePlatForm\ move .\config.txt %tjPlatFormPath% cd %tjPlatFormPath% start "" "TejiePlatform.exe" ::pause </pre> |客户端快捷切换 _*{color:green}tejie_UiEditor.bat*_ <pre> @echo off chcp 65001 >nul REM 设置源文件和目标目录 set "source_file=uieditorconfig.txt" set "target_dir=D:\MyWork\ZFKJ\TeJie_UIEditor_0702" REM 执行文件复制 echo 正在复制文件... echo 从: "%source_file%" echo 到: "%target_dir%" copy /y "%source_file%" "%target_dir%\" >nul set "exe_path=D:\MyWork\ZFKJ\TeJie_UIEditor_0702\TeJie_UIEditor.exe" if exist "%exe_path%" ( start "" "%exe_path%" ) else ( echo 文件不存在: %exe_path% ) ::pause </pre> |^.客户端配置文件示例 _*{color:green}uieditorconfig.txt*_ <pre> # 单行注释规则:在行首添加 井号# # 本地游戏内资源路径(将等号后为实际的本地目录 例:D:\UIRes\sys.ui4) # uiEditorResPath=本地游戏内资源路径 # 本地登陆器资源路径(将等号后为实际的本地目录 例:D:\UIRes\logger) # uiEditorloggerPath=本地登陆器资源路径 # 本地要编辑的资源平台类型 1为PC,2为手机(目前只支持编辑手机版) uieditorplat=2 # 客户端分辨率 # resolution=540,960,0.5 resolution=1720,980,1 </pre>|