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 


Some question involving pointer/AoB/script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Astaroth4256
Advanced Cheater
Reputation: 0

Joined: 25 May 2014
Posts: 59

PostPosted: Sat Jul 15, 2017 6:28 am    Post subject: Some question involving pointer/AoB/script Reply with quote

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
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sat Jul 15, 2017 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sat Jul 15, 2017 2:16 pm    Post subject: Reply with quote

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)

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Astaroth4256
Advanced Cheater
Reputation: 0

Joined: 25 May 2014
Posts: 59

PostPosted: Sat Jul 15, 2017 3:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sat Jul 15, 2017 4:15 pm    Post subject: Reply with quote

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

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Astaroth4256
Advanced Cheater
Reputation: 0

Joined: 25 May 2014
Posts: 59

PostPosted: Sun Jul 16, 2017 5:27 am    Post subject: Reply with quote

That's some strange way of assigning data to a variable. Thanks.
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