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 


feature request: STRUCT

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

Joined: 21 Apr 2014
Posts: 19

PostPosted: Wed Apr 30, 2014 5:47 pm    Post subject: feature request: STRUCT Reply with quote

Most of the Auto Assemble scripts contain fixed offsets when accessing game strucures. Like
MOV EAX, [ESI + 03C4]

Wouldn't it be great if we could define STRUCTs like in MASM/NASM?
Like

Code:
player STRUC
  pWeapon DD ?
  unknown1 DB 50 DUP(?)
  health DD ?
  name DB 100 DUP(?)
  unknown2 DB 200 DUP(?)
  gold DW ?
ENDSTRUC


and then access the elements like this:
MOV EAX, [ESI + OFFSET health]

This would make the AA scripts much more flexible and robust.
Adjusting to new game versions would often only imply changes in the STRUC.

I know this smells like a lot of work, DarkByte, but wouldn't be worth it? Wink
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Apr 30, 2014 6:44 pm    Post subject: Reply with quote

this is already implemented

Code:

STRUCT player
  pWeapon: DD ?
  unknown1: resb 50
  health: dd ?
  name: resb 100
  unknown2: resb 200
  gold: dw ?
ENDSTRUCT


00400500:
mov [eax+name],12

00400510:
mov [ebx+player.gold],#100


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

Joined: 21 Apr 2014
Posts: 19

PostPosted: Thu May 01, 2014 8:20 am    Post subject: Reply with quote

ooops Embarassed

Now that I've learned that, I wanted to explore the Data Dissect tool.
A very powerful tool, but not so easy to use without some more guidance Confused

I had it create a Struct (for tutorial step 1). But is there a way to import that as a STRUCT/ENDSTRUCT into an AA script?
And is it possible to register a struct member name so it gets displayed in the Disassembler (and later in an AA script)?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu May 01, 2014 8:31 am    Post subject: Reply with quote

The data dissect tool is already linked with the auto assembler

structname.variablename is interpreted as the offset provided in the structure.

it's not really possible to specify a struct in the disassembler, but that's what comments are for.



example.ct
 Description:

Download
 Filename:  example.ct
 Filesize:  1 KB
 Downloaded:  797 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
shahezad96
How do I cheat?
Reputation: 0

Joined: 05 Aug 2014
Posts: 1

PostPosted: Tue Aug 05, 2014 8:53 am    Post subject: Feature request Reply with quote

Hi Dark Byte
your cheat engine is best cheating tool. when i want to cheat i use
cheat engine.

I want a feature to be implemented in CE which is that structures
defined in Data Dissect tool being used as data type.
I mean when we use "value type" as Grouped and search and find address
and add it to list it is listed as list of addresses i want a feature
that use one base address and other offsets that expand from base
address as used in structures

consider this example where base address is Player
Player = 00AF1410
then Health = 00AF1414
so i want it as Health = Player + 04

and defined as structure as defined in Data Dissect tool and nested
structures as we can use in Data Dissect tool.

As in Data Dissect tool we can define pointer to other structures so i
want this thing we able to do in cheat table.
Smile

and How do I cheat? is so lame for me!! Mad

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