Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
subarena score

 
Post new topic   Reply to topic Printable version
 View previous topic  how do i make shipsets for my zone?? Post :: Post vip  View next topic  
Author Message
tor
Guest


Offline

PostPosted: Fri Jun 20, 2003 5:27 pm    Post subject: subarena score Reply to topic Reply with quote

where does the server save the subarean's score
and can u view it/and orginize it for top score and stuff?
Back to top
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:42
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Fri Jun 20, 2003 11:28 pm    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sat Jun 21, 2003 6:33 am    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> General Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 20 page(s) served in previous 5 minutes.

phpBB Created this page in 0.650402 seconds : 28 queries executed (88.0%): GZIP compression disabled