| View previous topic :: View next topic |
| Author |
Message |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Fri Jul 04, 2008 11:34 am Post subject: |
|
|
| oib111 wrote: | | X_X There is over 5000 lines of code just to save?!?! | If you read it carefully, it's split up for loading trainers, all types of cheat-table files ( From programs that aren't even CE, like ArtMoney, etc ), loading/saving older versions as well.
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Fri Jul 04, 2008 11:38 am Post subject: |
|
|
There's so much that I can't find the right part...x_x
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Cx Master Cheater
Reputation: 0
Joined: 27 Jul 2007 Posts: 367
|
Posted: Fri Jul 04, 2008 12:35 pm Post subject: |
|
|
... the save CT function is only at line 5291 (and below), as DB suggested in the link...
less than 200 lines (which is still probably more than you will need).
_________________
armed with this small butterfly net
i will face the world alone
& never be lonely. |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Fri Jul 04, 2008 12:39 pm Post subject: |
|
|
Are all those functions used there specific to delphi? And is there any documentation reference to them?
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Fri Jul 04, 2008 12:43 pm Post subject: |
|
|
| All can be done with CreateFile/WriteFile/ReadFile, fopen/fputs/fread/fclose, or create a file mapping of the file to be parsed.
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Fri Jul 04, 2008 12:52 pm Post subject: |
|
|
Oh, ok.
@Dark Byte
Well I don't know delphi well enough to understand exactly what you're doing, but I get the gist of it from your other post. But what about reading the file.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Fri Jul 04, 2008 12:57 pm Post subject: |
|
|
| oib111 wrote: | Oh, ok.
@Dark Byte
Well I don't know delphi well enough to understand exactly what you're doing, but I get the gist of it from your other post. But what about reading the file. | When you create the custom file, you should have a premeditated method of writing the information. ( Take CE for example, it has the number of addresses in the CT, the address, is frozen, etc ).
Just read it as you wrote it. If you wrote an 4-byte address, at a 10-byte offset into the file, then you should read 4-bytes from an offset of 10-bytes from the opened file.
|
|
| Back to top |
|
 |
|