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 


[BUG/LACK_OF_FEATURE] Pointer scanner v.s. PACKED_STRUCTURES

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
grasmanek94
Master Cheater
Reputation: 0

Joined: 03 Jun 2008
Posts: 283
Location: The Netherlands

PostPosted: Sun Jul 28, 2013 8:45 pm    Post subject: [BUG/LACK_OF_FEATURE] Pointer scanner v.s. PACKED_STRUCTURES Reply with quote

Well after examining the leaked source code of an application it seems I have come up with these steps to produce a pointer path:

Code:

//address ->
CNetGame * pNetGame//0
{
   AnotherClassPointer *m_AnotherClassPointer;//1 byte or 4? depends... on compilation settings :/ so I have two possible combinations
   //+1 or +4 ->
   CPlayerPool               *m_pPlayerPool;
   {
      BOOL   m_bPlayerSlotState[500];
      //+500+//(+1 or +4)*playerid... ->
      CPlayer *m_pPlayers[500];
      {
         //...to access this
         short a;
         short b;
         short c;
         //+6 -> \|/
         float Position[3];//we are here!
      }
   }
}


This would get me a pointer looking like this:

[[[[BaseAddres]+(0x01 or 0x04)]+0x1F4+((0x01 or 0x04)*playerid)]+0x06]

(or the easier to read one:)
Code:

BaseAddres
   +(0x01 or 0x04)
      +0x1F4+((0x01 or 0x04)*playerid)
         +0x06

But I noticed in the pointer scanner that..... it produces only values which are divisable by 4.. does it scan those single bytes too and this means that the pointers ARE 4 bytes long or is this a bug/lacking feature and it "jumps" each 4 bytes?
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5636

PostPosted: Sun Jul 28, 2013 10:41 pm    Post subject: Reply with quote

Have you unchecked the "Addresses must be 32-bit aligned" option? It's on by default. Just like Fast scan (which is also on by default).
_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Jul 29, 2013 3:46 am    Post subject: Reply with quote

Yes, uncheck the 32-bit alignment requirement.
Note though that the amount of ram you need for this scan may grow 4 times larger (worst case scenario), so use of 64bit ce is recommended

_________________
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
grasmanek94
Master Cheater
Reputation: 0

Joined: 03 Jun 2008
Posts: 283
Location: The Netherlands

PostPosted: Mon Jul 29, 2013 4:27 pm    Post subject: Reply with quote

ah alright! It's kind of confusing bcause in the main scanner it's "Fast scan" and in the pointer canner it's "addreses must be aligned" xD Thak you guys.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Jul 29, 2013 4:48 pm    Post subject: Reply with quote

"Addresses must be 32-bit aligned" == address must end with 0,4,8 or C.
_________________
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 -> Cheat Engine 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