Reminder: Internet Explorer 6 or below are NOT supported.





There are currently 44 users playing Freelancer on
40 servers. | April. 12, 2021 |
Browsing this Thread:
1 Anonymous Users
PlayerData |
||||
---|---|---|---|---|
Just can't stay away
![]() ![]() Joined:
2008/6/16 20:41 Group:
Registered Users FLServer Admins Trusted Speciality Developers
Posts:
312
![]() |
I have found some more info on the the PlayerData struct, which i thought will represent so far.
Code:
I am not sure whether the wszAccIdf is 40 or only 36 (x2) bytes big. At least the last 8 bytes from it were uninitialized cdcdcdcd pointers thought they belong to the account id field. Also szCharFile was limited to 16 bytes from me, although it seems the other remaining bytes after it (496 bytes) are always 0 - could be that the char file was supposed to use 512 bytes at all, which makes no sense to me. The long after uiOnlineID seems to be the ShipArchID. And the right, left hand and head body addresses seems to be the Code:
which would fit in. I will try to verify that by further investigation, though if anyone else find stuff - could add it or correct it.
Posted on: 2015/4/23 21:52
|
|||
![]() |
||||
|
Re: PlayerData |
||||
---|---|---|---|---|
Home away from home
![]() ![]() Joined:
2009/8/16 2:58 From Qld, Aus.
Group:
Registered Users FLServer Admins Trusted Speciality Developers Senior Members
Posts:
1984
![]() |
It is indeed 40 characters for the account id. There is an unknown class/struct at 0x50, for those 0x14 bytes. It is actually a
CHARACTER_ID at 0x64, which does just contain char file[512] . It is indeed a Costume at 0x2E4. x340 is bool skip_autosave . I think x3e8 is uint iLaunchBase and x3f4 seems to the base id again, as is x410 (set at BaseExit ). x414 is presumably the id of a location (initialized to CreateID("NO WHERE") ).
Posted on: 2015/4/26 8:08
|
|||
|
Re: PlayerData |
||||
---|---|---|---|---|
Just can't stay away
![]() ![]() Joined:
2008/6/16 20:41 Group:
Registered Users FLServer Admins Trusted Speciality Developers
Posts:
312
![]() |
ok reversed a bit more. Thanks Adoxa, the bool skip_autosave for me didnt work, at least it should be a BOOL - the bool takes no 4 bytes for me, hence i havent it in the following overview.
The costume seems to be twice - no idea why - but in for me both contain the same infos. Code:
Posted on: 2015/5/3 20:26
|
|||
![]() |
||||
|
Re: PlayerData |
||||
---|---|---|---|---|
Home away from home
![]() ![]() Joined:
2009/8/16 2:58 From Qld, Aus.
Group:
Registered Users FLServer Admins Trusted Speciality Developers Senior Members
Posts:
1984
![]() |
bool 's are bytes, which get padded to align the next member (i.e. struct { bool b; int i;} is typically stored as struct { bool b; char pad[3]; int i;} . Likewise, 0x3ca is just padding after the short.0x34c (uiShipArchID) is actually bool cheated , I think; 0x320 (iCyclicRedundancyCheck) is actually iWorth (when you land on a base, to detect cheating when you exit).0x324 is a copy of uiShipArchetype (cheat detection). 0x344 seems to be a count of how many times the character has been saved (per login). 0x3c0 is initialized to 0, but does not seem to be used. 0x3c4 is float difficulty (initialized to 1; restricted to 0 to 2).0x3d0 seems to be your player number (i.e. the one-based Players index).0x3dc is some kind of trade request counter. 0x3e8 is the id of the ship that was created. 0x3f4 is the id of the base you entered (this is the one that is tested for some Req functions); 0x410 is the base just exited. 0x414 is the unsaved but loaded starting_ring , whatever that is.
Posted on: 2015/5/5 4:20
|
|||
|