Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Script Broken and Only Works Sometimes

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
X9Kong9X
How do I cheat?
Reputation: 0

Joined: 05 Feb 2024
Posts: 1

PostPosted: Mon Feb 05, 2024 6:59 pm    Post subject: Cheat Engine Script Broken and Only Works Sometimes Reply with quote

So i play this game called Plants Vs. Zombies: Battle For neighborville and when i first ran this script, it worked fine, and then after a while of using it, it just randomly stopped working and only works 20% of the time.




Here is this script below:

symbols = createSymbolList();
symbols.register();

function onOpenProcess(pid)
symbols.unregister();
symbols = createSymbolList();
symbols.register();

reinitializeSymbolhandler();

if (pid == 4) then
return;
end

local proc = dbk_getPEProcess(pid);
--printf("proc: %08X", proc);

local peb = readQword(proc + 0x550);
--printf("peb: %08X", peb);

local ldr = readQword(peb + 0x18);
--printf("ldr: %08X", ldr);

local index = readQword(ldr + 0x10);
--printf("index: %08X\n", index);

while (index ~= ldr + 0x10) do
local mod = readQword(index);
--printf("mod: %08X", mod);

local name = readString(readQword(mod + 0x58 + 0x8), readSmallInteger(mod + 0x58), true);
--printf("name: %s", name);

local base = readQword(mod + 0x30);
--printf("base: %08X", base);

local size = readInteger(mod + 0x40);
--printf("size: %04X\n", size);

symbols.addModule(name, "", base, size, true);

index = readQword(mod);
end[/code][/b]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites