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 


[C++] Program to handle the Pointer scan files

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

Joined: 28 Oct 2012
Posts: 13

PostPosted: Wed Jan 02, 2013 4:03 pm    Post subject: [C++] Program to handle the Pointer scan files Reply with quote

Ok, so I want to create a small tool that can compare the offsets between 2 Pointer scan files. I'm only interested in the offsets and not the base pointers.
However, I can't find the "loadfromfile" function in the source code for CE and I'm not entirely sure how the format is made in the PTR files..

So, I was wondering if someone could tell me what I should go for to read the PTR files.
Something like this? (I'll be using fstream).

Code:
ifstream load;
load.open(path, ios::binary);
load.read((char*)&PointerAddress,sizeof(DWORD));   
load.read((char*)&Off1,sizeof(DWORD));
load.read((char*)&Off2,sizeof(DWORD));
load.read((char*)&Off3,sizeof(DWORD));
load.read((char*)&Off4,sizeof(DWORD));
load.close();
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Jan 02, 2013 4:50 pm    Post subject: Reply with quote

I recommend compiling ce from the svn, and use the sort by offset feature.
The result will be a multiple .ptr files with each value in the specified column in it's own partfile

anyhow, a ptr is buildup using dwords in this order:
MODULEID - OFFSETINMODULE - NROFOFFSETSINTHISENTRY - OFFSET1 - OFFSET2 - ...


if NROFOFFSETSINTHISENTRY is lower than the maximum number of offsets that was defined in the main .ptr file the non used offsets contain garbage

and moduleid is the index in the modulelist of the main .ptr file

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

Joined: 28 Oct 2012
Posts: 13

PostPosted: Wed Jan 09, 2013 4:51 pm    Post subject: Reply with quote

Ah, sorry for answering this late Sad

Thanks for your reply, though I managed to solve my issue without the tool that I wanted to create ^^

I may need it later on anyway, so thanks for clarification Smile
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 programming 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