Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xcating committed Nov 2, 2024
1 parent c759724 commit be919a3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# GhTrTool 0.12b ~ [2024-11-02]
# GhTrTool 0.12c ~ [2024-11-02]
## 完整更新日志
### 更新
- 支持最新版0.17c版本Perfect Voyage
- 修复一个bug
### 正在进行
- 地址数值常数化

Expand Down
4 changes: 2 additions & 2 deletions GhTrTool/Constant.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ CONST DWORD GAME_PLANT_SUB_SUN_OFFSET = 0xA0699;//种植植物阳光减少 偏
CONST CHAR* GAME_PLANT_SUB_SUN_PATCH_OPCODE = "\x90\x90\x90\x90\x90\x90"; //种植植物阳光减少_阳光不减少 操作码
CONST CHAR* GAME_PLANT_SUB_SUN_ORIGINAL_OPCODE = "\x29\xBE\x84\x03\x00\x00"; //种植植物阳光减少_原码 操作码
CONST DWORD GAME_PLANT_NO_CD_OFFSET = 0x1062B9; //重新种植更新当前冷却 偏移 [BaseAddress+GAME_PLANT_NO_CD_OFFSET]
CONST CHAR* GAME_CARD_NO_CD_PATCH_OPCODE = "\xC7\x42\x24\x00\x00\x00\x00\x90\x90\x90"; //重新种植更新当前冷却_重置冷却设为0 操作码
CONST CHAR* GAME_CARD_NO_CD_ORIGINAL_OPCODE = "\x89\x42\x24\xC7\x42\x20\x00\x00\x00\x00"; //重新种植更新当前冷却_原码 操作码
CONST CHAR* GAME_CARD_NO_CD_PATCH_OPCODE = "\xC7\x42\x28\x00\x00\x00\x00\x90\x90\x90"; //重新种植更新当前冷却_重置冷却设为0 操作码
CONST CHAR* GAME_CARD_NO_CD_ORIGINAL_OPCODE = "\x89\x42\x28\xC7\x42\x20\x00\x00\x00\x00"; //重新种植更新当前冷却_原码 操作码
CONST DWORD GAME_PLANT_IGNORE_CD_OFFSET = 0x10657D; //判断冷却是否结束 偏移 [BaseAddress+GAME_PLANT_IGNORE_CD_OFFSET]
CONST CHAR* GAME_CARD_IGNORE_CD_PATCH_OPCODE = "\x90\x90"; //判断冷却是否结束_不判断 操作码
CONST CHAR* GAME_CARD_IGNORE_CD_ORIGINAL_OPCODE = "\x39\x08"; //判断冷却是否结束_原码 操作码
4 changes: 2 additions & 2 deletions GhTrTool/GhTr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM l_param) {
std::wstring wstr =
(std::wstringstream() << L"Plants Vs Zombies GhTr ~ Perfect Voyage "
<< L"ver.0.17c - [Debug] [已被GhTrTool修改] "
<< L"[βver.0.12b] ["
<< L"[βver.0.12c] ["
<< millis << L"]")
.str();
#else
std::wstring wstr =
(std::wstringstream() << L"Plants Vs Zombies GhTr ~ Perfect Voyage "
<< L"ver.0.17c - [已被GhTrTool修改] [ver.0.12b] ["
<< L"ver.0.17c - [已被GhTrTool修改] [ver.0.12c] ["
<< millis << L"]" << L" [Save" << dwNum<<L"]")
.str();
#endif
Expand Down
Binary file modified GhTrTool/GhTrTool.rc
Binary file not shown.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ PlantsVsZombies ~ GhTr *PersonGames Tools*

[+]Modify offset handling to support GhTr 0.17c version
### [#]工具截图 Screenshot
[+]工具版本:0.12b
[+]工具版本:0.12c

[+]Tools Version: 0.12b
[+]Tools Version: 0.12c
![MainGUI](/Image/MainGUI.png "MainGUI")
![GameTest](/Image/GameTest.png "GameTest")

Expand Down

0 comments on commit be919a3

Please sign in to comment.