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 


Auto-created Strcutures in "Structure Dissection"

 
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: Fri Feb 14, 2014 8:44 am    Post subject: Auto-created Strcutures in "Structure Dissection" Reply with quote

This has always bothered me.



As seen in the image.. CE makes those sub-stucture that you can expand. But funny enough.. I've seen it NOT getting created in sometimes. Same game, same address...Sometimes it doesnt get created.

So is there a way to ...get a "straight"...increasing offset thing..instead of these expandable sub-strucures.

I wanna examine the strucure from 00B66CE0 to 00B66CE7 .. I cant do that because of this. So please tell me how this works.



01.jpg
 Description:
 Filesize:  211.51 KB
 Viewed:  7360 Time(s)

01.jpg


Back to top
View user's profile Send private message
LykanthricAura
Advanced Cheater
Reputation: 0

Joined: 17 May 2010
Posts: 58
Location: India

PostPosted: Fri Feb 14, 2014 11:56 pm    Post subject: Reply with quote

I am able to do this manually. I was just wondering if it can be done automatically...?


02.jpg
 Description:
 Filesize:  99.77 KB
 Viewed:  7320 Time(s)

02.jpg


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Feb 15, 2014 1:01 am    Post subject: Reply with quote

Save this .lua file to the autorun folder of cheat engine (or just execute it manually each time)

It will add a new menu item to the structure dissect window called generator->byte structure

This will create a byte structure and add it to the structures list. You can then select it and use it

Also, do you know you can compare two memory blocks in the memory viewer and highlight bytes that are different?
Open a second memoryviewer, bring it to the other object in memory, and then rightclick and choose "show difference->between memory browser (x)"



compare.png
 Description:
 Filesize:  21.55 KB
 Viewed:  7306 Time(s)

compare.png



bytestructuregenerator.lua
 Description:

Download
 Filename:  bytestructuregenerator.lua
 Filesize:  1.6 KB
 Downloaded:  441 Time(s)


_________________
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: Sat Mar 01, 2014 3:08 am    Post subject: Reply with quote

I did not know that. No. Thanks for the tip. And the script.
Back to top
View user's profile Send private message
LykanthricAura
Advanced Cheater
Reputation: 0

Joined: 17 May 2010
Posts: 58
Location: India

PostPosted: Sat Sep 20, 2014 8:14 am    Post subject: Reply with quote

Which part(s) of the LUA should I change to change the size of each item.

For all the data types.. From byte to Double.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Sep 20, 2014 8:20 am    Post subject: Reply with quote

Structures and structentries do not have sizes, they just have offsets and an entry with biggest offset value

Anyhow, change the type by changing vtByte to vtWhatever

and you may want to change e.Offset=i to e.Offset=i*entrysize

_________________
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
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