View previous topic :: View next topic |
Author |
Message |
Astaroth4256 Advanced Cheater Reputation: 0
Joined: 25 May 2014 Posts: 59
|
Posted: Sat Jul 15, 2017 6:28 am Post subject: Some question involving pointer/AoB/script |
|
|
So I'm trying to get a pointer path to the player structure in somegame.exe, I get the mana address>find out what accesses this address>I get a bunch of codes with offset 348. So I subtract 348 from my mana address(get the structure's base) and I do a 4byte hex scan for the result to find what points to this structure's base. That's how I always used to do it but recently I downloaded a cheat table for terraria which was full of scripts that used some array of byte stuff, I looked it up and got interested in learning that, I get get the concept but the cheat table has some stuff that I don't understand.
Code: | define(player, Terraria.Lighting::LightTiles+128)
assert(player, ?? ?? ?? ?? 8b 15 ?? ?? ?? ?? 3b 50 04)
label(players)
registersymbol(players)
player:
players: |
1. -
2. What exactly does this "Terraria.Lighting::LightTiles+128" do? This is the first time I meet something like this
3. At some point "players" becomes an address obtained by doing assert on 'player', but where?
And: Terraria.Player::ResetEffects+796
How can this be used as an address, this isn't defined anywhere in the cheat table.
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Sat Jul 15, 2017 10:09 am Post subject: |
|
|
Sounds like mono, though it could simply be that debug symbols are shipped with the game which tells CE what function names are and what classes they belong to etc. Most games will not include that information since it takes up room and is often linked to whether debug code is generated or not (which slows down the game in the process of making bugs easier to detect)...
See https://www.youtube.com/watch?v=YYpl4WHpcS4
|
|
Back to top |
|
|
STN I post too much Reputation: 42
Joined: 09 Nov 2005 Posts: 2672
|
Posted: Sat Jul 15, 2017 2:16 pm Post subject: |
|
|
Not unity, Microsoft's XNA Framework (.NET) so symbols info is included.
Terraria.Player::ResetEffects+796 is a symbol which CE resolves.
To your question:
2. What exactly does this "Terraria.Lighting::LightTiles+128" do? This is the first time I meet something like this
I have no idea because your script doesn't show anything
3. At some point "players" becomes an address obtained by doing assert on 'player', but where?
It becomes an address here
define(player, Terraria.Lighting::LightTiles+128)
the assert simply checks if the bytes match, it doesn't obtain an address
assert(player, ?? ?? ?? ?? 8b 15 ?? ?? ?? ?? 3b 50 04)
_________________
|
|
Back to top |
|
|
Astaroth4256 Advanced Cheater Reputation: 0
Joined: 25 May 2014 Posts: 59
|
Posted: Sat Jul 15, 2017 3:07 pm Post subject: |
|
|
STN wrote: | Not unity, Microsoft's XNA Framework (.NET) so symbols info is included.
Terraria.Player::ResetEffects+796 is a symbol which CE resolves.
To your question:
2. What exactly does this "Terraria.Lighting::LightTiles+128" do? This is the first time I meet something like this
I have no idea because your script doesn't show anything
3. At some point "players" becomes an address obtained by doing assert on 'player', but where?
It becomes an address here
define(player, Terraria.Lighting::LightTiles+128)
the assert simply checks if the bytes match, it doesn't obtain an address
assert(player, ?? ?? ?? ?? 8b 15 ?? ?? ?? ?? 3b 50 04) |
The define is 'player', 'players' is not defined but is used in addresses attached to the script. Does registersymbol/label do a players = player?
My cheat engine doesn't have this "mono" option when I attach it to terraria (checked closely in every corner of cheat engine)
|
|
Back to top |
|
|
STN I post too much Reputation: 42
Joined: 09 Nov 2005 Posts: 2672
|
Posted: Sat Jul 15, 2017 4:15 pm Post subject: |
|
|
Astaroth4256 wrote: |
The define is 'player', 'players' is not defined but is used in addresses attached to the script. Does registersymbol/label do a players = player?
My cheat engine doesn't have this "mono" option when I attach it to terraria (checked closely in every corner of cheat engine)
|
Nope, this does
player:
players:
players gets assigned the address of player.
And i told you "Not unity, Microsoft's XNA Framework (.NET) so symbols info is included. " so the mono option will not work. FreeER just guessed it might be unity based on symbol info but it's not unity. I have made a trainer for this game and i know. It's Microsoft's XNA Framework
_________________
|
|
Back to top |
|
|
Astaroth4256 Advanced Cheater Reputation: 0
Joined: 25 May 2014 Posts: 59
|
Posted: Sun Jul 16, 2017 5:27 am Post subject: |
|
|
That's some strange way of assigning data to a variable. Thanks.
|
|
Back to top |
|
|
|