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 (-1) | Shanky.com
*.scr files?

 
Post new topic   Reply to topic Printable version
 View previous topic  New biller doesn't work Post :: Post Weapon speed  View next topic  
Author Message
Qndre
Server Help Squatter


Gender:Gender:Male
Joined: Jan 25 2004
Posts: 295
Offline

PostPosted: Sat Apr 10, 2004 4:00 pm    Post subject: *.scr files? Reply to topic Reply with quote

*.scr files contain scoring information of specific arenas. How can I read their contents?
Back to top
View users profile Send private message Add User to Ignore List
wEaViL
Don't make me turn this forum around!


Age:46
Gender:Gender:Male
Joined: Feb 17 2003
Posts: 829
Location: nc usa
Offline

PostPosted: Sat Apr 10, 2004 9:26 pm    Post subject: Reply to topic Reply with quote

Theres a program i think on subspacedownloads.com that converts scr files into dat files... "i think"
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address Yahoo Messenger MSN Messenger
Gravitron
VIE Vet


Age:43
Gender:Gender:Male
Joined: Aug 02 2002
Posts: 993
Location: Israel
Offline

PostPosted: Sat Apr 10, 2004 10:40 pm    Post subject: Reply to topic Reply with quote

Talk to catid, I believe he has done some research on them.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address Yahoo Messenger MSN Messenger
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


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

PostPosted: Sat Apr 10, 2004 10:57 pm    Post subject: Reply to topic Reply with quote

From 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


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.
Back to top
View users profile Send private message Add User to Ignore List Send email
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sat Apr 10, 2004 11:38 pm    Post subject: Reply to topic Reply with quote

I don't save my binary backwards o.o ... have i been missing something my entire life :X *lol*
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
Qndre
Server Help Squatter


Gender:Gender:Male
Joined: Jan 25 2004
Posts: 295
Offline

PostPosted: Sun Apr 11, 2004 4:52 am    Post subject: Reply to topic Reply with quote

CypherJF wrote:
I don't save my binary backwards o.o ... have i been missing something my entire life :X *lol*

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?
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sun Apr 11, 2004 10:11 am    Post subject: Reply to topic Reply with quote

Qndre wrote:
It's called Little-Endian!

Hey! You had no clue what this meant the first time you came here, so don't yell!
But Qndre's right, your whole system reads it 'backwards' so you don't have to worry about it.

And it's *getfile, not ?getfile, this isn't ASSS icon_razz.gif
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sun Apr 11, 2004 10:40 am    Post subject: Reply to topic Reply with quote

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?


yes yes i know; and the only reason u know is because ekted told you about it.. hehe
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


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

PostPosted: Sun Apr 11, 2004 8:46 pm    Post subject: Reply to topic Reply with quote

Cyan~Fire wrote:
reads it 'backwards'

Its like this so if you want to read a number, in binary form, the least significant digits are all at the location where the pointer points to. Thus, if you read the number 32 from a pointer, in char, short, int, or int64, it will all return 32. Very useful in languages with pointers, such as C.
Back to top
View users profile Send private message Add User to Ignore List Send email
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: 173 page(s) served in previous 5 minutes.

phpBB Created this page in 0.084013 seconds : 29 queries executed (61.3%): GZIP compression disabled