Skip to content

Commit

Permalink
fix more
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed May 27, 2024
1 parent d5cc2aa commit 89757ff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

MAXWELL is an ingame ImGui overlay for the game ANIMAL WELL, featuring an inventory editor, warping map, cheats etc.

It has been tested on the 2024-05-24 build on Windows 10, but it might work on future versions too.
It has last been tested on the 2024-05-27 build on Windows 10, but it might work on other versions too.

**Please go away if you haven't finished the game, this will spoil everything for you.**

## Disclaimer

Expand All @@ -29,3 +31,6 @@ Build with cmake or get the [Autobuild](https://github.com/Dregu/maxwell/release
- Noclip without cring
- Save anywhere
- Adjust window scaling
- Disable fog of war / darkness
- Play in b&w gameboy mode
- Hide the game hud
7 changes: 5 additions & 2 deletions search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,11 @@ std::unordered_map<std::string_view, AddressRule> g_address_rules{
// iVar2 = FUN_00017ae0(0x29);
// if (0 < iVar2) { <-
"render_hud"sv,
PatternCommandBuffer{}.set_optional(true).from_exe_base(
0x12c3ed), // TODO
PatternCommandBuffer{}
.set_optional(true)
.find_after_inst("8b 8f 48 0d 00 00 ff 56 20 b9 29 00 00 00"_gh)
.offset(7)
.at_exe(),
},
{
// RE: L"Visibility", 7E -> EB, inside render_game
Expand Down
8 changes: 4 additions & 4 deletions ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ void UI::Draw() {
}

if (doWarp && get_address("warp")) {
write_mem_recoverable("warp", get_address("warp"), "\xEB"sv, true);
write_mem_recoverable("warp", get_address("warp"), "EB"_gh, true);
} else {
recover_mem("warp");
}
Expand Down Expand Up @@ -513,21 +513,21 @@ void UI::Draw() {

if (options["cheat_darkness"].value && get_address("render_darkness")) {
write_mem_recoverable("render_darkness", get_address("render_darkness"),
"\xEB\x19", true);
"EB 19"_gh, true);
} else {
recover_mem("render_darkness");
}

if (options["cheat_gameboy"].value && get_address("render_gameboy")) {
write_mem_recoverable("render_gameboy", get_address("render_gameboy"),
"\xEB\x0E", true);
"EB 0E"_gh, true);
} else {
recover_mem("render_gameboy");
}

if (options["cheat_hud"].value && get_address("render_hud")) {
write_mem_recoverable(
"render_hud", get_address("render_hud"), "\xEB\x74",
"render_hud", get_address("render_hud"), "EB 74"_gh,
true); // jmp over this and the next if that renders some more text
} else {
recover_mem("render_hud");
Expand Down

0 comments on commit 89757ff

Please sign in to comment.