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 


Still can't work out the Registered symbol thing...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
LykanthricAura
Advanced Cheater
Reputation: 0

Joined: 17 May 2010
Posts: 58
Location: India

PostPosted: Tue Nov 29, 2011 12:43 am    Post subject: Still can't work out the Registered symbol thing... Reply with quote

Ok. Here's the original instruction...

Code:
mov edx,[esi+0000008C]


Where...

esi = 3240094 (the address of the Unit's structure)
edx = E6 (230 ...the value Im working on)

So... If I did..

Code:
push edx
mov edx,[esi]
mov [pHero],edx
pop edx


That shud give me 3240094 in pHero right? or...Is that not how it works?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25829
Location: The netherlands

PostPosted: Tue Nov 29, 2011 2:56 am    Post subject: Reply with quote

no, this writes the first 4 byte value from the unit's structure into pHero (vtable)

Instead of
Code:

push edx
mov edx,[esi]
mov [pHero],edx
pop edx

you just do:
Code:

mov [pHero],esi


Note that pHero must be an allocated block of memory (at least 4 bytes) that has it's name registered.

So in a previous script (or the same one)
Code:

alloc(pHero,4)
registersymbol(pHero)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
LykanthricAura
Advanced Cheater
Reputation: 0

Joined: 17 May 2010
Posts: 58
Location: India

PostPosted: Wed Nov 30, 2011 12:20 am    Post subject: Reply with quote

If I do

alloc(pHero,4)

I cannot do label(pHero) ??? (made the script un-toggle-able)

I suppose we can't. I know...But why?

Allocated memory can't be a label?
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Wed Nov 30, 2011 1:04 am    Post subject: Reply with quote

LykanthricAura wrote:
If I do

alloc(pHero,4)

I cannot do label(pHero) ??? (made the script un-toggle-able)

I suppose we can't. I know...But why?

Allocated memory can't be a label?


If you want to do that, use globalalloc.

globalalloc(pHero,4)

It will allocate the space + register it as a symbol.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
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