制作工具及客户端--多版本自动切换 » 历史记录 » 版本 1
tejie, 2025-09-04 11:56
| 1 | 1 | tejie | *{color:fireBrick}制作工具--快捷切换* |
|---|---|---|---|
| 2 | 1 设置当前版本,制作工具路径配置。 |
||
| 3 | 2 制作工具执行启动。 |
||
| 4 | |||
| 5 | *{color:fireBrick}客户端--快捷切换* |
||
| 6 | 1 设置当前版本,客户端配置文件设置。 |
||
| 7 | 1.1 本地资源路径 |
||
| 8 | 1.2 客户端平台(PC或手机) |
||
| 9 | 1.3 客户端分辨率 |
||
| 10 | 2 客户端执行启动 |
||
| 11 | |||
| 12 | *{color:fireBrick}项目目录结构* |
||
| 13 | |<pre> |
||
| 14 | \_scripts\ |
||
| 15 | |_Mir200\ |
||
| 16 | |_Mud2\ |
||
| 17 | |_tejiePlatform.bat |
||
| 18 | |_tejie_UiEditor.bat |
||
| 19 | |_uieditorconfig.txt |
||
| 20 | </pre>| |
||
| 21 | |||
| 22 | *{color:fireBrick}相关文件示例* |
||
| 23 | |^.制作工具快捷切换示例 _*{color:green}tejiePlatform.bat*_ <pre> |
||
| 24 | chcp 65001 |
||
| 25 | set str1=%cd%\ |
||
| 26 | set str2=scripts\Mir200 |
||
| 27 | echo basePath = %str1%%str2%\>.\config.txt |
||
| 28 | |||
| 29 | chcp 936 |
||
| 30 | ::请定义自己的tejiePlatform工具所在路径 |
||
| 31 | set tjPlatFormPath=D:\MyWork\ZFKJ\测试\TeJiePlatForm\ |
||
| 32 | move .\config.txt %tjPlatFormPath% |
||
| 33 | |||
| 34 | cd %tjPlatFormPath% |
||
| 35 | start "" "TejiePlatform.exe" |
||
| 36 | |||
| 37 | ::pause |
||
| 38 | </pre> |
||
| 39 | |客户端快捷切换 _*{color:green}tejie_UiEditor.bat*_ <pre> |
||
| 40 | @echo off |
||
| 41 | chcp 65001 >nul |
||
| 42 | |||
| 43 | REM 设置源文件和目标目录 |
||
| 44 | set "source_file=uieditorconfig.txt" |
||
| 45 | set "target_dir=D:\MyWork\ZFKJ\TeJie_UIEditor_0702" |
||
| 46 | |||
| 47 | REM 执行文件复制 |
||
| 48 | echo 正在复制文件... |
||
| 49 | echo 从: "%source_file%" |
||
| 50 | echo 到: "%target_dir%" |
||
| 51 | copy /y "%source_file%" "%target_dir%\" >nul |
||
| 52 | |||
| 53 | set "exe_path=D:\MyWork\ZFKJ\TeJie_UIEditor_0702\TeJie_UIEditor.exe" |
||
| 54 | if exist "%exe_path%" ( |
||
| 55 | start "" "%exe_path%" |
||
| 56 | ) else ( |
||
| 57 | echo 文件不存在: %exe_path% |
||
| 58 | ) |
||
| 59 | |||
| 60 | ::pause |
||
| 61 | </pre> |
||
| 62 | |^.客户端配置文件示例 _*{color:green}uieditorconfig.txt*_ <pre> |
||
| 63 | # 单行注释规则:在行首添加 井号# |
||
| 64 | |||
| 65 | # 本地游戏内资源路径(将等号后为实际的本地目录 例:D:\UIRes\sys.ui4) |
||
| 66 | # uiEditorResPath=本地游戏内资源路径 |
||
| 67 | |||
| 68 | # 本地登陆器资源路径(将等号后为实际的本地目录 例:D:\UIRes\logger) |
||
| 69 | # uiEditorloggerPath=本地登陆器资源路径 |
||
| 70 | |||
| 71 | # 本地要编辑的资源平台类型 1为PC,2为手机(目前只支持编辑手机版) |
||
| 72 | uieditorplat=2 |
||
| 73 | |||
| 74 | # 客户端分辨率 |
||
| 75 | # resolution=540,960,0.5 |
||
| 76 | resolution=1720,980,1 |
||
| 77 | </pre>| |