ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth archive => Topic started by: slyone on October 20, 2014, 06:40:05 PM

Title: Why is profiles.dat a binary file?
Post by: slyone on October 20, 2014, 06:40:05 PM
I did a hexdump of profiles.dat and see a bunch of nulls in addition to the name of each of my profiles as well as a couple of the settings I chose for the profile.

Why is profiles.dat a binary file?
Title: Re: Why is profiles.dat a binary file?
Post by: Boydon on October 21, 2014, 01:30:04 PM
Right now I don't have the code to look at it, but by heart I can tell you that profiles are internally handled as records and those records are serialized when they need to be saved and de-serialized when Stelath need to load them.

Serializing is much more easy than to define your custom file format and the write code to handle it. ;)
Title: Re: Why is profiles.dat a binary file?
Post by: Crome969 on October 21, 2014, 09:53:39 PM
Quote of the Headdeveloper :
Quote
21 Oktober bei 7:58 :
because read&write of fixed-size records from binary file directly to structures is fastest))
Title: Re: Why is profiles.dat a binary file?
Post by: Boydon on October 22, 2014, 07:22:19 AM
Quote of the Headdeveloper :
Quote
21 Oktober bei 7:58 :
because read&write of fixed-size records from binary file directly to structures is fastest))

This is what I said, isn't it? :)
Title: Re: Why is profiles.dat a binary file?
Post by: Crome969 on October 22, 2014, 11:12:56 AM
Quote of the Headdeveloper :
Quote
21 Oktober bei 7:58 :
because read&write of fixed-size records from binary file directly to structures is fastest))

This is what I said, isn't it? :)
And i asked Vizit0r to verify it ;D
Title: Re: Why is profiles.dat a binary file?
Post by: slyone on October 22, 2014, 05:30:25 PM
Thanks for the info!  Now, unless you can reveal this record, time to get to work on reverse engineering what the record looks like...
Title: Re: Why is profiles.dat a binary file?
Post by: Boydon on October 23, 2014, 12:32:15 PM
Problem is you'd then have to reverse the standard Delphi serialization algorithm.
Title: Re: Why is profiles.dat a binary file?
Post by: dxrom on October 24, 2014, 11:57:07 PM
Thanks for the info!  Now, unless you can reveal this record, time to get to work on reverse engineering what the record looks like...

It looks like this:

slyone's Credit History: <value>
slyone's Credit Card Information: <array of values>
slyone's USA SSN: <value>
slyone's UO account history: <array of values>
slyone's emails: <array of values>
slyone's personal information: <array of values>