From a21bb513137eca745c16230edaf6200d666b03bb Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Sat, 26 Jan 2019 15:25:57 -0800 Subject: Challenge is not working, all else is fine. --- Source/Memory.cpp | 7 +------ Source/Memory.h | 2 +- Source/Panels.h | 1 + Source/Randomizer.h | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) (limited to 'Source') diff --git a/Source/Memory.cpp b/Source/Memory.cpp index 2d0d4a9..7bc3b2f 100644 --- a/Source/Memory.cpp +++ b/Source/Memory.cpp @@ -39,11 +39,6 @@ Memory::Memory(const std::string& processName) { if (_baseAddress == 0) { throw std::exception("Couldn't find the base process address!"); } - - // Unprotect regions of memory - - DWORD oldProtect; - VirtualProtectEx(_handle, (LPVOID)_baseAddress, sizeof(DWORD), PAGE_READWRITE, &oldProtect); } Memory::~Memory() { @@ -55,7 +50,7 @@ int Memory::GetCurrentFrame() int SCRIPT_FRAMES; if (GLOBALS == 0x5B28C0) { SCRIPT_FRAMES = 0x5BE3B0; - } else if (GLOBALS == 0x62A080) { + } else if (GLOBALS == 0x62D0A0) { SCRIPT_FRAMES = 0x63651C; } else { throw std::exception("Unknown value for Globals!"); diff --git a/Source/Memory.h b/Source/Memory.h index fa9eb60..cce06ba 100644 --- a/Source/Memory.h +++ b/Source/Memory.h @@ -5,7 +5,7 @@ #include // #define GLOBALS 0x5B28C0 -#define GLOBALS 0x62A080 +#define GLOBALS 0x62D0A0 // https://github.com/erayarslan/WriteProcessMemory-Example // http://stackoverflow.com/q/32798185 diff --git a/Source/Panels.h b/Source/Panels.h index 9eb1a8e..5b4e085 100644 --- a/Source/Panels.h +++ b/Source/Panels.h @@ -46,6 +46,7 @@ std::vector upDownPanels = { 0x28ACB, // Town Blue 4 0x28ACC, // Town Blue 5 0x00029, // UTM Invisible Dots Symmetry 3 + 0x288AA, // UTM Perspective 4 0x0A3B5, // Tutorial Back Left 0x17CC4, // Mill Elevator Control diff --git a/Source/Randomizer.h b/Source/Randomizer.h index aeccbeb..6029513 100644 --- a/Source/Randomizer.h +++ b/Source/Randomizer.h @@ -117,7 +117,7 @@ private: #define OPEN_RATE 0xE8 #define METADATA 0xF2 // sizeof(short) #define HOTEL_EP_NAME 0x4BC640 -#elif GLOBALS == 0x62A080 +#elif GLOBALS == 0x62D0A0 #define PATH_COLOR 0xC0 #define REFLECTION_PATH_COLOR 0xD0 #define DOT_COLOR 0xF0 -- cgit 1.4.1