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 


Need help with AA script

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

Joined: 17 Aug 2023
Posts: 1

PostPosted: Thu Aug 17, 2023 5:00 pm    Post subject: Need help with AA script Reply with quote

When I try to run this script I get this error <<Error in line 15 (assert("DeadIsland-Win64-Shipping.exe"+2151330,40 55 53 56 57 41 54 41 55 41 56 41 57 48 81 EC C8 02 00 00)) :The bytes at "DeadIsland-Win64-Shipping.exe"+2151330 are not what was expected>>


define(address,"DeadIsland-Win64-Shipping.exe"+2151330)
define(bytes,40 55 53 56 57 41 54 41 55 41 56 41 57 48 81 EC C8 02 00 00)

[ENABLE]


assert(address,bytes)
alloc(newmem,$1000)

label(code)
label(return)
newmem:

code:
push rcx
mov rcx,DeadIsland-Win64-Shipping.exe+7932728
mov rcx,[rcx]
test rcx,rcx
je Skip

mov rcx,[rcx+EA8]
mov rcx,[rcx+38]
mov rcx,[rcx]
mov rcx,[rcx+30]
mov rcx,[rcx+2E0]
test rcx,rcx
je Skip
mov rcx,[rcx+998]
mov rcx,[rcx+2B8]
mov [rsp],rcx

Skip:
pop rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp,000002C8
jmp return

address:
jmp far newmem
nop 6
return:

[DISABLE]

address:
db bytes
// push rbp
// push rbx
// push rsi
// push rdi
// push r12
// push r13
// push r14
// push r15
// sub rsp,000002C8

dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: DeadIsland-Win64-Shipping.exe+2151330

DeadIsland-Win64-Shipping.exe+2151326: 5D - pop rbp
DeadIsland-Win64-Shipping.exe+2151327: C3 - ret
DeadIsland-Win64-Shipping.exe+2151328: CC - int 3
DeadIsland-Win64-Shipping.exe+2151329: CC - int 3
DeadIsland-Win64-Shipping.exe+215132A: CC - int 3
DeadIsland-Win64-Shipping.exe+215132B: CC - int 3
DeadIsland-Win64-Shipping.exe+215132C: CC - int 3
DeadIsland-Win64-Shipping.exe+215132D: CC - int 3
DeadIsland-Win64-Shipping.exe+215132E: CC - int 3
DeadIsland-Win64-Shipping.exe+215132F: CC - int 3
// ---------- INJECTING HERE ----------
DeadIsland-Win64-Shipping.exe+2151330: 40 55 - push rbp
// ---------- DONE INJECTING ----------
DeadIsland-Win64-Shipping.exe+2151332: 53 - push rbx
DeadIsland-Win64-Shipping.exe+2151333: 56 - push rsi
DeadIsland-Win64-Shipping.exe+2151334: 57 - push rdi
DeadIsland-Win64-Shipping.exe+2151335: 41 54 - push r12
DeadIsland-Win64-Shipping.exe+2151337: 41 55 - push r13
DeadIsland-Win64-Shipping.exe+2151339: 41 56 - push r14
DeadIsland-Win64-Shipping.exe+215133B: 41 57 - push r15
DeadIsland-Win64-Shipping.exe+215133D: 48 81 EC C8 02 00 00 - sub rsp,000002C8
DeadIsland-Win64-Shipping.exe+2151344: 48 8D 6C 24 60 - lea rbp,[rsp+60]
DeadIsland-Win64-Shipping.exe+2151349: 48 8B 05 E8 1F 35 05 - mov rax,[DeadIsland-Win64-Shipping.exe+74A3338]
}
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4695

PostPosted: Thu Aug 17, 2023 5:40 pm    Post subject: Reply with quote

Quote:
The bytes at "DeadIsland-Win64-Shipping.exe"+2151330 are not what was expected
That explains it pretty well.

The table you downloaded is likely made for a different version of the game than the one you're currently on.

Try scanning the exe for that aob and change the address accordingly. Make sure to scan all memory, not just writable.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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 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