View previous topic :: View next topic |
Author |
Message |
DrNOP Newbie cheater Reputation: 0
Joined: 21 Apr 2014 Posts: 19
|
Posted: Wed Apr 30, 2014 5:47 pm Post subject: feature request: STRUCT |
|
|
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?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25285 Location: The netherlands
|
Posted: Wed Apr 30, 2014 6:44 pm Post subject: |
|
|
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 |
|
|
DrNOP Newbie cheater Reputation: 0
Joined: 21 Apr 2014 Posts: 19
|
Posted: Thu May 01, 2014 8:20 am Post subject: |
|
|
ooops
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
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 |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25285 Location: The netherlands
|
Posted: Thu May 01, 2014 8:31 am Post subject: |
|
|
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.
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 |
|
|
shahezad96 How do I cheat? Reputation: 0
Joined: 05 Aug 2014 Posts: 1
|
|
Back to top |
|
|
|