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 


User defined symbol as VEH hook

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
AbrasiveZealot
Newbie cheater
Reputation: 0

Joined: 02 Jan 2011
Posts: 21

PostPosted: Mon Jul 07, 2014 10:19 pm    Post subject: User defined symbol as VEH hook Reply with quote

I'm really not sure what the problem is, trying to do a debug jump to my code.

Code:

function debugger_onBreakpoint()
         if (EIP == 0x0093F710) then EIP = 0x0093F772
         elseif (EIP == 0x00FF47B6) then EIP = getAddress(MyCode)
         else return 0 end

         debug_continueFromBreakpoint(co_run)
         return 1
end


Code:

[enable]
alloc(MyCode, 1024)
registersymbol(MyCode)

label(WAddress)
registersymbol(WAddress)

////
////
////
////

MyCode:
mov [WAddress],esi
movss xmm1,[esi+000000CC]
jmp 00FF47BE

WAddress:
db 00 00 00 00

////
////
////
////

[disable]


The point of this is to store the address for the last fired weapon so I can use it elsewhere, in testing i've been setting the breakpoint manually so I can be sure that the symbol is being declared before hand. An error pops up saying that it cant determine what it means.
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Tue Jul 08, 2014 12:27 am    Post subject: Re: User defined symbol as VEH hook Reply with quote

Quote:
function debugger_onBreakpoint()
if (EIP == 0x0093F710) then EIP = 0x0093F772
elseif (EIP == 0x00FF47B6) then EIP = getAddress(MyCode)
else return 0 end

debug_continueFromBreakpoint(co_run)
return 1
end

Quote:
function debugger_onBreakpoint()
if (EIP == 0x0093F710) then EIP = 0x0093F772
elseif (EIP == 0x00FF47B6) then EIP = getAddress('MyCode')
else return 0 end

debug_continueFromBreakpoint(co_run)
return 1
end

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
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