Author Topic: Why is profiles.dat a binary file?  (Read 8225 times)

0 Members and 1 Guest are viewing this topic.

Offline slyoneTopic starter

  • Full Member
  • ***
  • Posts: 135
  • Activity:
    0%
  • Reputation Power: 2
  • slyone has no influence.
  • Gender: Male
  • Respect: +87
  • Referrals: 1
    • View Profile
Why is profiles.dat a binary file?
« on: October 20, 2014, 06:40:05 PM »
0
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?
Started playing back at the Second Age

Offline Boydon

  • Moderator
  • **
  • *****
  • Posts: 76
  • Activity:
    0%
  • Reputation Power: 3
  • Boydon has no influence.
  • Respect: +29
  • Referrals: 0
    • View Profile
Re: Why is profiles.dat a binary file?
« Reply #1 on: October 21, 2014, 01:30:04 PM »
0
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. ;)
Member of the Stealth development team.

Offline Crome969

  • Moderator
  • *
  • *****
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +559
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Why is profiles.dat a binary file?
« Reply #2 on: October 21, 2014, 09:53:39 PM »
0
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))

Offline Boydon

  • Moderator
  • **
  • *****
  • Posts: 76
  • Activity:
    0%
  • Reputation Power: 3
  • Boydon has no influence.
  • Respect: +29
  • Referrals: 0
    • View Profile
Re: Why is profiles.dat a binary file?
« Reply #3 on: October 22, 2014, 07:22:19 AM »
0
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? :)
Member of the Stealth development team.

Offline Crome969

  • Moderator
  • *
  • *****
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +559
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Why is profiles.dat a binary file?
« Reply #4 on: October 22, 2014, 11:12:56 AM »
0
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

Offline slyoneTopic starter

  • Full Member
  • ***
  • Posts: 135
  • Activity:
    0%
  • Reputation Power: 2
  • slyone has no influence.
  • Gender: Male
  • Respect: +87
  • Referrals: 1
    • View Profile
Re: Why is profiles.dat a binary file?
« Reply #5 on: October 22, 2014, 05:30:25 PM »
0
Thanks for the info!  Now, unless you can reveal this record, time to get to work on reverse engineering what the record looks like...
Started playing back at the Second Age

Offline Boydon

  • Moderator
  • **
  • *****
  • Posts: 76
  • Activity:
    0%
  • Reputation Power: 3
  • Boydon has no influence.
  • Respect: +29
  • Referrals: 0
    • View Profile
Re: Why is profiles.dat a binary file?
« Reply #6 on: October 23, 2014, 12:32:15 PM »
0
Problem is you'd then have to reverse the standard Delphi serialization algorithm.
Member of the Stealth development team.

Offline dxrom

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +277
  • Referrals: 1
    • View Profile
Re: Why is profiles.dat a binary file?
« Reply #7 on: October 24, 2014, 11:57:07 PM »
0
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>



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Tags: