| View previous topic :: View next topic |
| Author |
Message |
iLogic Newbie cheater
Reputation: 0
Joined: 28 Oct 2012 Posts: 13
|
Posted: Wed Jan 02, 2013 4:03 pm Post subject: [C++] Program to handle the Pointer scan files |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25827 Location: The netherlands
|
Posted: Wed Jan 02, 2013 4:50 pm Post subject: |
|
|
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 |
|
 |
iLogic Newbie cheater
Reputation: 0
Joined: 28 Oct 2012 Posts: 13
|
Posted: Wed Jan 09, 2013 4:51 pm Post subject: |
|
|
Ah, sorry for answering this late
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
|
|
| Back to top |
|
 |
|