diff options
-rw-r--r-- | Classes.h | 11 | ||||
-rw-r--r-- | Core.cpp | 1 | ||||
-rw-r--r-- | CustomLoadingScreen.cpp | 5 | ||||
-rw-r--r-- | Engine.cpp | 2 | ||||
-rw-r--r-- | Offsets.cpp | 37 |
5 files changed, 25 insertions, 31 deletions
@@ -176,8 +176,8 @@ public: char pad_0x0160[0x18]; //0x0160 float xScreenPos; //0x0178 float yScreenPos; //0x017C - char pad_0x0180[0x9220]; //0x0180 - char* name; //0x93A0 + char pad_0x0180[0x9210]; //0x0170 + char* name; //0x9390 void SetCameraPosition(Vector2 pos) { @@ -203,8 +203,8 @@ public: char pad_0x00A8[0xB0]; //0x00A8 float camX; //0x0158 float camY; //0x015C - char pad_0x0160[0x140]; //0x0160 - PlayerArray* pPlayerArray; //0x02A0 + char pad_0x0160[0x148]; //0x0168 + PlayerArray* pPlayerArray; //0x02A8 }; //Size=0x02A8 @@ -309,8 +309,7 @@ public: //When moving sadly height isnt set. When attack it works. Vector3* GetTargetPosition() { - //TODO action maybe wrong - uint64_t actionList = *reinterpret_cast<uint64_t*>((uint64_t)this + 0x280); + uint64_t actionList = *reinterpret_cast<uint64_t*>((uint64_t)this + 0x288); if (!actionList){return NULL;} uint64_t targetDataWrapper = *reinterpret_cast<uint64_t*>(actionList + 0x10); if (!targetDataWrapper) { return NULL; } @@ -276,7 +276,6 @@ void Core::OnPresent() createPlayerTreeNode(currentPlayer, i); } ImGui::Separator(); - ImGui::Text("Test1"); FeatureManager::Get()->OnMenuMainWindow(); ImGui::Separator(); ImGui::Checkbox("Skip localplayer", &skipLocalplayer); diff --git a/CustomLoadingScreen.cpp b/CustomLoadingScreen.cpp index 7ea6d9c..c3f8afb 100644 --- a/CustomLoadingScreen.cpp +++ b/CustomLoadingScreen.cpp @@ -11,11 +11,10 @@ CustomLoadingScreen::CustomLoadingScreen(char* imagePath) void CustomLoadingScreen::OnInitialise() { //original string "/resources/loading_slash.png" - Patcher().Patch((BYTE*)GetModuleHandle(NULL) + 0x1e3c6d0,(int64_t)this->imagePath); + Patcher().Patch((BYTE*)GetModuleHandle(NULL) + 0x1E73E40,(int64_t)this->imagePath); //change LEA to MOV by changing 0x8d to 0x8b - //E8 ? ? ? ? 90 48 8D 8D ? ? ? ? E8 ? ? ? ? 45 33 + 0x1c (location where string is loaded) - Patcher().Patch((BYTE*)GetModuleHandle(NULL) + 0xecfed6 + 1, (int8_t)0x8b); + Patcher().Patch((BYTE*)GetModuleHandle(NULL) + 0xEEAB6E + 1, (int8_t)0x8b); } void CustomLoadingScreen::OnMenuMainWindow() @@ -49,7 +49,7 @@ int Engine::GetTotalPlayers() const { return 0; } - return (*(int64_t*)((int64_t)world + 0x2a8) - *(int64_t*)((int64_t)world + 0x2a0)) / 0x10; + return (*(int64_t*)((int64_t)world + 0x2b0) - *(int64_t*)((int64_t)world + 0x2a8)) / 0x10; } PlayerArray* Engine::GetPlayerArray() const diff --git a/Offsets.cpp b/Offsets.cpp index b549511..989117a 100644 --- a/Offsets.cpp +++ b/Offsets.cpp @@ -2,33 +2,30 @@ namespace Offsets { - //48 8D 0D ? ? ? ? 41 B8 ? ? ? ? E8 ? ? ? ? 33 C0 //2 - //48 8D 0D ? ? ? ? E8 ? ? ? ? 0F B6 C0 //2 - int64_t pathfindingSystem = 0x2961db0; + //48 8D 0D ? ? ? ? 41 B8 ? ? ? ? E8 ? ? ? ? 33 C0 //3 + //48 8D 0D ? ? ? ? E8 ? ? ? ? 0F B6 C0 //3 + int64_t pathfindingSystem = 0x29a4ba0; - //48 8B 0D ? ? ? ? E8 ? ? ? ? C6 85 //2 - int64_t mainScreen = 0x294fc50; + //48 8B 0D ? ? ? ? E8 ? ? ? ? C6 85 //3 + int64_t mainScreen = 0x2992a40; - //not updated - //int64_t totalPlayers = 0x2793064; + //48 8B 0D ? ? ? ? 48 85 C9 0F 84 ? ? ? ? 40 //2 + int64_t tribePanelInven = 0x2993fa0; - //48 8B 0D ? ? ? ? 48 85 C9 0F 84 ? ? ? ? 40 //1 - int64_t tribePanelInven = 0x29511b0; - - //48 8B 83 ? ? ? ? 48 8B 48 70 F3 0F 10 + //48 8B 83 ? ? ? ? 48 8B 48 70 F3 0F 10 //2 int64_t tribePanelInven_localPlayer = 0x208; - //48 8B 0D ? ? ? ? E8 ? ? ? ? 48 3B 47 18 0F //1 - int64_t pAVGame = 0x2941e70; + //48 8B 05 ? ? ? ? 48 8B 88 ? ? ? ? 83 79 10 04 75 2E //1 + int64_t pAVGame = 0x2984b90; - //MinimapText 88 85 ? ? ? ? 41 8B 46 0C - int64_t minimapHookOffset = 0xc10269; + //MinimapText 88 85 ? ? ? ? 41 8B 46 0C //1 + int64_t minimapHookOffset = 0xC27079; //Functions - int64_t printNotification = 0xc06610; //48 83 EC 48 48 8B 05 ? ? ? ? 4C 8D //1 - int64_t printBottomText = 0xbf5a00; //48 8B C4 48 83 EC 78 F3 0F 10 05 ? ? ? ? 41 //1 - int64_t pauseGame = 0x80cff0; //48 89 5C 24 ? 55 48 8D 6C 24 ? 48 81 EC ? ? ? ? 80 //1 - int64_t sendChat = 0x9972a0; //E8 ? ? ? ? 33 FF 49 8B 04 //1 - int64_t createUnitHook = 0xdec390; //48 89 5C 24 ? 48 89 6C 24 ? 57 48 83 EC 20 8B 41 //1 + int64_t printNotification = 0xc1d550; //48 83 EC 48 48 8B 05 ? ? ? ? 4C 8D //2 + int64_t printBottomText = 0xc0c8b0; //48 8B C4 48 83 EC 78 F3 0F 10 05 ? ? ? ? 41 //2 + int64_t pauseGame = 0x81ddd0; //48 89 5C 24 ? 55 48 8D 6C 24 ? 48 81 EC ? ? ? ? 80 //1 + int64_t sendChat = 0x9abef0; //not 100% sure if correct + int64_t createUnitHook = 0xe064b0; //48 89 5C 24 ? 48 89 6C 24 ? 57 48 83 EC 20 8B 41 //1 }
\ No newline at end of file |