| Quote: | |
| To get stats from subarenas, you'll need a premade list of player's and their userid's. The subarenas record the following data:
Userid, kills, deaths, points (from kills), points (from flags), and flag games won. The akward stat in here is the flag games won. This # increases everytime that player wins a flag game. So everytime he sees a Team Victory (### points), this number goes up one. Does NOT count if they are in spec on winning team. Have to be in a ship. The formating for the .scr file is 18 bytes per data. First 4 bytes is the player's userid. The next two are for kills. 2 more for deaths. 2 more for number of victories player has won. 4 more for points from kills. And the last 4 for points from flags.
For those of you not well known with programming, a normal format for when people save data into a binary format, the bytes are reversed sort of. Like take example for the normal points, it is saved as 61 1a 01 00. To decode this into normal decimal, you would 'reverse' the bytes, so it would end up being 00 01 1a 61. Then you would convert hex into decimal, and get 72289 for points from kills. |
| CypherJF wrote: |
| I don't save my binary backwards o.o ... have i been missing something my entire life :X *lol* |
| Qndre wrote: |
| It's called Little-Endian! |
| Qndre wrote: |
| [..]
It's called Little-Endian! It's the way your CPU processes data and the way it's stored in memory. Your whole hardware works this way. If you build network packets, you also have to do it this way. I can download the *.scr files using ?getfile, can't I? |
| Cyan~Fire wrote: |
| reads it 'backwards' |