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 about editing written cheat engine source code

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

Joined: 17 Mar 2009
Posts: 1

PostPosted: Tue Sep 10, 2019 7:34 am    Post subject: Need help about editing written cheat engine source code Reply with quote

I need to edit this codes to make work again in a pokemon game. After the current patch , i am not able to active the cheat sheat atm. Before that , it works like a charm. The code i used was :
[ENABLE]


aobscanmodule(INJECT,GameAssembly.dll,FF D0 48 85 C0 0F 84 ?? ?? ?? ?? 45 33 C0 B2 01 48 8B CCool // should be unique

INJECT:
call rax
test rax,rax
jmp GameAssembly.dll+173F1D
nop

registersymbol(INJECT)

[DISABLE]

INJECT:
call rax
test rax,rax
je GameAssembly.dll+173F1D

unregistersymbol(INJECT)


and this one

{$lua} // DELETE FROM HERE IF YOU DON'T WANT IT TO BEEP
local timer = createTimer(getMainForm())
local script = getAddressList()
script = script.getMemoryRecordByDescription("Pokemon Hunter")
timer.Interval = 5000
timer.OnTimer = function(timer)
if (readInteger("PokeID")) == (readInteger("EscapePoke1"))then
beep()
elseif (readInteger("PokeID")) == (readInteger("EscapePoke2"))then
beep()
elseif (readInteger("PokeID")) == (readInteger("EscapePoke3"))then
beep()
elseif (readInteger("PokeID")) == (readInteger("EscapePoke4"))then
beep()
if script.Active == false then
timer.destroy()
end
end
end

{$asm} // DELETE FROM HERE IF YOU DONT WANT IT TO BEEP
[ENABLE]
aobscanmodule(ID,GameAssembly.dll,33 D2 48 8B CB E8 ?? ?? ?? ?? 89 87 FC 09 00 00 41 83 7D 18 03) //PokeID
aobscanmodule(RUN,GameAssembly.dll,33 D2 8B C8 E8 ?? ?? ?? ?? 84 C0 0F 84 ?? ?? ?? ?? 33 D2 49 8B CE) //Run

alloc(FindID,$1000) //ID
alloc(PokeID,$1000) //ID

alloc(Escape,$1000) //RUN
alloc(EscapeFound,$1000) //RUN
alloc(EscapePoke1,$1000) //RUN
alloc(EscapePoke2,$1000) //RUN
alloc(EscapePoke3,$1000) //RUN
alloc(EscapePoke4,$1000) //RUN

label(ReturnEscape) //RUN

label(SaveID) //ID
label(ReturnID) //ID

EscapePoke1:
dd 1
EscapePoke2:
dd 1
EscapePoke3:
dd 1
EscapePoke4:
dd 1

Escape:
test al,al
push rax
mov rax,[PokeID]
cmp [EscapePoke1],rax
pop rax
je EscapeFound
push rax
mov rax,[PokeID]
cmp [EscapePoke2],rax
pop rax
je EscapeFound
push rax
mov rax,[PokeID]
cmp [EscapePoke3],rax
pop rax
je EscapeFound
push rax
mov rax,[PokeID]
cmp [EscapePoke4],rax
pop rax
je EscapeFound
db 33 d2
mov rcx,r14
call GameAssembly.dll+17E610
jmp GameAssembly.dll+178920
jmp RUN+20

EscapeFound:
jmp GameAssembly.dll+17AE3C


RUN+9:
jmp Escape
nop
nop
nop
nop
nop
nop
nop
nop
nop
ReturnEscape:


FindID:

SaveID:
mov [PokeID],eax
mov [rdi+000009FC],eax
cmp dword ptr [r13+18],03
jbe GameAssembly.dll+173A15
jmp ID+1B

ID+A:
jmp FindID
nop
nop
nop
ReturnID:

registersymbol(ID)
registersymbol(PokeID)
registersymbol(EscapePoke1)
registersymbol(EscapePoke2)
registersymbol(EscapePoke3)
registersymbol(EscapePoke4)
registersymbol(RUN)

[DISABLE]

ID+A:
mov [rdi+000009FC],eax
cmp dword ptr [r13+18],03
jbe GameAssembly.dll+173A15

RUN+9:
test al,al
je GameAssembly.dll+17AE3C
db 33 d2
mov rcx,r14
call GameAssembly.dll+17E610
jmp GameAssembly.dll+178920


unregistersymbol(ID)
unregistersymbol(PokeID)
unregistersymbol(EscapePoke1)
unregistersymbol(EscapePoke2)
unregistersymbol(EscapePoke3)
unregistersymbol(EscapePoke4)
unregistersymbol(RUN)
dealloc(FindID)
dealloc(Escape)
dealloc(PokeID)
dealloc(EscapePoke1)
dealloc(EscapePoke2)
dealloc(EscapePoke3)
dealloc(EscapePoke4)


What should i change to make it work again? Thank you very much.[/list]
Back to top
View user's profile Send private message AIM Address
Csimbi
I post too much
Reputation: 94

Joined: 14 Jul 2007
Posts: 3108

PostPosted: Tue Sep 10, 2019 12:26 pm    Post subject: Reply with quote

Why don't you ask the author of these scripts to update them?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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