DayZ
gbalestrin Aug 26, 2024 @ 7:20pm
Question about the players.db file
I'm trying to debug a problem on my Linux server and i'm studying the players.db file, which is a player database located in the folder: dayz-server/mpmissions/dayzOffline.chernarusplus/storage_1/players.db

I'm opening the file with sqlite and inside there is the Players table. Within this table there are the columns: Id, Alive, UID and Data. This Data column has binary data and i'm trying to understand its structure.

Here is an example of the beginning of a binary converted to hexadecimal:
02000A77214662F50143D64D1E46410D...

I managed to find out that after 4 bytes i have information about the player's location. However, I have no idea what these first 4 bytes are, since the first 2 bytes (02 00) seem to always be fixed:

02 00 0A 77 (?????????)
21 46 62 F5 (Player position X on the map)
01 43 D6 4D (Player position Z on the map)
1E 46 41 0D (Player position Y on the map)

Obs: I found this information using the website https://www.scadacore.com/tools/programming-calculators/online-hex-converter/, where the location data is stored in type Float - Mid-Big Endian (BADC)

In this example, does anyone have any knowledge of what these initial bytes mean?
< >
Showing 1-2 of 2 comments
srLinux:~# Dec 30, 2024 @ 8:06am 
idk what are the 4 initial bytes for, but you helped me a lot <3 thank you mate
_KC76_ Dec 30, 2024 @ 3:23pm 
Does the converted data coincide with a Compass heading? (That would be the "a" value in the different xml files that use coordinates, ex; <pos x="8241.619141" z="6025.999512" a="141.819946" /> with 141.819946 being degrees)
Last edited by _KC76_; Dec 30, 2024 @ 3:24pm
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Aug 26, 2024 @ 7:20pm
Posts: 2