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 


[Help] Writing to a data structure that has pointers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
noobpwner5
Newbie cheater
Reputation: 0

Joined: 28 Nov 2010
Posts: 12

PostPosted: Wed Oct 08, 2014 4:02 pm    Post subject: [Help] Writing to a data structure that has pointers Reply with quote

Hey guys so i've recently been working some on data structures and i've got the basics down, but i've run into a problem. In the code section below (wouldnt let me post a picture) is the list of offsets that i'm using to change the memory. I can easily change the offset 0088 by injecting the code mov [eax+0088],whatevervalue but i would like some help on writing values onto the offset 0008 that is within 0034. Any help would be greatly appreciated.

Code:
0000 - Vtable            22D017D0 : P->035E7320       
0004 - headFrameCounter  22D017D4 : 2.3341953700618E-313
000C - bodyFrameCounter  22D017DC : 0                 
0014 - legFrameCounter   22D017E4 : 0                 
001C - beetlePos         22D017EC : P->238DBED4       
0020 - beetleVel         22D017F0 : P->238DBEF8       
0024 - itemFlamePos      22D017F4 : P->238DBF1C       
0028 - chatText          22D017F8 : P->037D1228       
002C - armor             22D017FC : P->238DBF60       
0030 - dye               22D01800 : P->238DBFB0       
0034 - buffType          22D01804 : P->238DBFE0       
-----0000 - Vtable            238DBFE0 : P->6A723A70       
-----0004 - Number of Elements238DBFE4 : 22                 
-----0008 - Array[0]          238DBFE8 : 0                 
-----000C - Array[1]          238DBFEC : 0                 
-----0010 - Array[2]          238DBFF0 : 0                 
-----0014 - Array[3]          238DBFF4 : 0                 
-----0018 - Array[4]          238DBFF8 : 0                 
-----001C - Array[5]          238DBFFC : 0                 
-----0020 - Array[6]          238DC000 : 0                 
-----0024 - Array[7]          238DC004 : 0                 
-----0028 - Array[8]          238DC008 : 0                 
-----002C - Array[9]          238DC00C : 0                 
-----0030 - Array[10]         238DC010 : 0                 
-----0034 - Array[11]         238DC014 : 0                 
-----0038 - Array[12]         238DC018 : 0                 
-----003C - Array[13]         238DC01C : 0                 
-----0040 - Array[14]         238DC020 : 0                 
-----0044 - Array[15]         238DC024 : 0                 
-----0048 - Array[16]         238DC028 : 0                 
-----004C - Array[17]         238DC02C : 0                 
-----0050 - Array[18]         238DC030 : 0                 
-----0054 - Array[19]         238DC034 : 0                 
-----0058 - Array[20]         238DC038 : 0                 
-----005C - Array[21]         238DC03C : 0                 
0038 - buffTime          22D01808 : P->238DC044       
003C - buffImmune        22D0180C : P->238DC0A8       
0040 - setBonus          22D01810 : P->037D1228       
0044 - inventory         22D01814 : P->238DC140       
0048 - bank              22D01818 : P->238DC23C       
004C - bank2             22D0181C : P->238DC308       
0050 - name              22D01820 : P->238E9500       
0054 - hitTile           22D01824 : P->238E9308       
0058 - showItemIconText  22D01828 : P->037D1228       
005C - shadowPos         22D0182C : P->238DC3D4       
0060 - shadowRotation    22D01830 : P->238DC3F8       
0064 - shadowOrigin      22D01834 : P->238DC410       
0068 - mount             22D01838 : P->238E94C4       
006C - spX               22D0183C : P->238DC434       
0070 - spY               22D01840 : P->238DC760       
0074 - spN               22D01844 : P->238DCA8C       
0078 - spI               22D01848 : P->238DCDBC       
007C - adjTile           22D0184C : P->238DD0E8       
0080 - oldAdjTile        22D01850 : P->238DD248       
0084 - grappling         22D01854 : P->238DD3A8       
0088 - beetleOrbs        22D01858 : 0                 
008C - beetleCounter     22D0185C : 0                 
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Oct 08, 2014 4:09 pm    Post subject: Reply with quote

something like this:
Code:

push eax //save eax
mov eax,[eax+34] //eax now contains the pointer stored at offset 34
mov [eax+8],whatevervalue //write whatever value you wish as offset 8
pop eax //restore eax

_________________
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
noobpwner5
Newbie cheater
Reputation: 0

Joined: 28 Nov 2010
Posts: 12

PostPosted: Wed Oct 08, 2014 4:41 pm    Post subject: Reply with quote

Thank you very much! Works just fine.
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