From dc53babf7accf05b3642e9c47f230ee2950404db Mon Sep 17 00:00:00 2001 From: Kohu Date: Sat, 14 Jan 2023 09:44:08 -0800 Subject: [PATCH 1/3] Update cookingmod Update the pattern used to find cookingAddress --- Kanan/CookingMod.cpp | 2 +- rebuildkanan.ps1 | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 rebuildkanan.ps1 diff --git a/Kanan/CookingMod.cpp b/Kanan/CookingMod.cpp index 4f3cdab..4ed70c7 100644 --- a/Kanan/CookingMod.cpp +++ b/Kanan/CookingMod.cpp @@ -88,7 +88,7 @@ namespace kanan { //find the addresses we need for patching CookingMod::CookingMod() { - auto cookingAddress = scan("client.exe", "55 8B EC 6A ? 68 ? ? ? ? 64 ? ? ? ? ? ? ? ? A1 ? ? ? ? 33 C5 50 8D ? F4 64 ? ? ? ? ? ? ? 8B 97 14 ? 00 00"); + auto cookingAddress = scan("client.exe", "55 8B EC 6A ? 68 ? ? ? ? 64 ? ? ? ? ? ? ? ? ? A8 ? CF 03 33 C5 50 8D ? F4 64 ? ? ? ? ? ? ? ? ? 14 ? 00 00"); DWORD cookingAddresst = *cookingAddress; if (!cookingAddresst) { log("unable to find cooking address"); diff --git a/rebuildkanan.ps1 b/rebuildkanan.ps1 new file mode 100644 index 0000000..5811f24 --- /dev/null +++ b/rebuildkanan.ps1 @@ -0,0 +1,4 @@ +cd C:\Users\Kohu\Documents\Github\kanan-new +cmake -B build -G "Visual Studio 17 2022" -A Win32 +cmake --build build --config Release +cmake --install build --prefix out \ No newline at end of file From 73f46b11e98727ad7d16c3311ef157b3658f7c9d Mon Sep 17 00:00:00 2001 From: Kohu Date: Sat, 14 Jan 2023 09:48:42 -0800 Subject: [PATCH 2/3] Revert "Update cookingmod" This reverts commit dc53babf7accf05b3642e9c47f230ee2950404db. --- Kanan/CookingMod.cpp | 2 +- rebuildkanan.ps1 | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 rebuildkanan.ps1 diff --git a/Kanan/CookingMod.cpp b/Kanan/CookingMod.cpp index 4ed70c7..4f3cdab 100644 --- a/Kanan/CookingMod.cpp +++ b/Kanan/CookingMod.cpp @@ -88,7 +88,7 @@ namespace kanan { //find the addresses we need for patching CookingMod::CookingMod() { - auto cookingAddress = scan("client.exe", "55 8B EC 6A ? 68 ? ? ? ? 64 ? ? ? ? ? ? ? ? ? A8 ? CF 03 33 C5 50 8D ? F4 64 ? ? ? ? ? ? ? ? ? 14 ? 00 00"); + auto cookingAddress = scan("client.exe", "55 8B EC 6A ? 68 ? ? ? ? 64 ? ? ? ? ? ? ? ? A1 ? ? ? ? 33 C5 50 8D ? F4 64 ? ? ? ? ? ? ? 8B 97 14 ? 00 00"); DWORD cookingAddresst = *cookingAddress; if (!cookingAddresst) { log("unable to find cooking address"); diff --git a/rebuildkanan.ps1 b/rebuildkanan.ps1 deleted file mode 100644 index 5811f24..0000000 --- a/rebuildkanan.ps1 +++ /dev/null @@ -1,4 +0,0 @@ -cd C:\Users\Kohu\Documents\Github\kanan-new -cmake -B build -G "Visual Studio 17 2022" -A Win32 -cmake --build build --config Release -cmake --install build --prefix out \ No newline at end of file From bb9ca66070b8b7070e960363947fe518287c1dae Mon Sep 17 00:00:00 2001 From: Kohu Date: Sat, 14 Jan 2023 09:50:32 -0800 Subject: [PATCH 3/3] Update CookingMod.cpp Update pattern used by cookingod to find cookingAddress --- Kanan/CookingMod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kanan/CookingMod.cpp b/Kanan/CookingMod.cpp index 4f3cdab..4ed70c7 100644 --- a/Kanan/CookingMod.cpp +++ b/Kanan/CookingMod.cpp @@ -88,7 +88,7 @@ namespace kanan { //find the addresses we need for patching CookingMod::CookingMod() { - auto cookingAddress = scan("client.exe", "55 8B EC 6A ? 68 ? ? ? ? 64 ? ? ? ? ? ? ? ? A1 ? ? ? ? 33 C5 50 8D ? F4 64 ? ? ? ? ? ? ? 8B 97 14 ? 00 00"); + auto cookingAddress = scan("client.exe", "55 8B EC 6A ? 68 ? ? ? ? 64 ? ? ? ? ? ? ? ? ? A8 ? CF 03 33 C5 50 8D ? F4 64 ? ? ? ? ? ? ? ? ? 14 ? 00 00"); DWORD cookingAddresst = *cookingAddress; if (!cookingAddresst) { log("unable to find cooking address");