Server Help

General Questions - subarena score

Anonymous - Fri Jun 20, 2003 5:27 pm
Post subject: subarena score
where does the server save the subarean's score
and can u view it/and orginize it for top score and stuff?
Mine GO BOOM - Fri Jun 20, 2003 11:28 pm
Post subject:
FAQ: How can I decode the .scr files?

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.

Code: Show/Hide
01 00 00 00 14 00 03 00 00 00 61 1a 01 00 00 00 00 00
^^^^^^^^^^^ ^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^
userid      kills death victs points      flag points

Quote:
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.


As for a program that does this easily for you, i remember someone may have done that, but i cannot remember the program's name, nor the maker. Maybe someone else can assist.
Smong - Sat Jun 21, 2003 6:33 am
Post subject:
I think divine.216 made scrread
http://www.shanky.com/cgi-bin/ryan/download.cgi?scrfiles.zip
Also in the zip is some .scr <=> .dat stuff so you can use scoreman
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group