https://wiki.stunts.hu/api.php?action=feedcontributions&user=91.36.240.64&feedformat=atom
Stunts Wiki - User contributions [en-us]
2024-03-29T07:15:59Z
User contributions
MediaWiki 1.35.7
https://wiki.stunts.hu/index.php?title=Highscore_file_format&diff=2131
Highscore file format
2011-04-16T19:27:19Z
<p>91.36.240.64: Links for stuntshs</p>
<hr />
<div>This Article describes the File Format of the Highscore files used by all versions of Stunts.<br />
Each Track has its own Highscore Table.<br />
<br />
{| class="wikitable"<br />
|- class="hintergrundfarbe5"<br />
!Offset<br />
!Data Type<br />
!Length<br />
!Field Name<br />
!Description<br />
|-<br />
|0<br />
|CHAR[17] (ASCIIZ)<br />
|17<br />
|Name<br />
|Driver's Name, terminated with a NUL Character<br />
|-<br />
|17<br />
|CHAR[21] (ASCIIZ)<br />
|21<br />
|Car<br />
|Driver's Car, terminated with a NUL Character<br />
|-<br />
|38<br />
|CHAR[4]<br />
|4<br />
|Unknown<br />
|Unknown Data is stored Here<br />
|-<br />
|42<br />
|CHAR[8] (ASCIIZ)<br />
|8<br />
|Opponent<br />
|-<br />
|50<br />
|UCHAR[2]<br />
|2<br />
|Time<br />
|}<br />
<br />
The 4. Field (Opponent) has the following structure:<br />
{| class="wikitable"<br />
|- class="hintergrundfarbe5"<br />
!Offset<br />
!Data Type<br />
!Length<br />
!Field Name (or constant)<br />
!Description<br />
|-<br />
|0<br />
|CHAR[2]<br />
|2<br />
|Opponent ID<br />
|<br />
|-<br />
|2<br />
|CHAR<br />
|1<br />
|Character '/'<br />
|<br />
|-<br />
|3<br />
|CHAR[4]<br />
|4<br />
|Opponent Car<br />
|<br />
|-<br />
|7<br />
|CHAR<br />
|1<br />
|NUL Character<br />
|<br />
|}<br />
<br />
The Size of an Entry is 52 Bytes.<br />
Every Highscore File contains exactly 7 Entries = 364 Bytes per File.<br />
The 5. Field (Time) is expressed in Hundreds of a Second, and is calculated as following:<br />
TIME = time [1] * 1280 + time [0] * 5<br />
<br />
To convert this time to normal min:sec:hundreds format, use the following calculations<br />
(hundr contains the time in hundreds):<br />
hundreds = (hundr % 100)<br />
hundr /= 100<br />
sec = (hundr % 60)<br />
min = (hundr / 60)<br />
<br />
== Weblinks ==<br />
* [http://marm.homepage.t-online.de/files/stuntshs.tar.gz Stuntshs: A Package for listing, adding and deletion of Entries of an Stunts Highscore File]</div>
91.36.240.64
https://wiki.stunts.hu/index.php?title=Highscore_file_format&diff=2130
Highscore file format
2011-04-16T19:13:41Z
<p>91.36.240.64: Typo correction</p>
<hr />
<div>This Article describes the File Format of the Highscore files used by all versions of Stunts.<br />
Each Track has its own Highscore Table.<br />
<br />
{| class="wikitable"<br />
|- class="hintergrundfarbe5"<br />
!Offset<br />
!Data Type<br />
!Length<br />
!Field Name<br />
!Description<br />
|-<br />
|0<br />
|CHAR[17] (ASCIIZ)<br />
|17<br />
|Name<br />
|Driver's Name, terminated with a NUL Character<br />
|-<br />
|17<br />
|CHAR[21] (ASCIIZ)<br />
|21<br />
|Car<br />
|Driver's Car, terminated with a NUL Character<br />
|-<br />
|38<br />
|CHAR[4]<br />
|4<br />
|Unknown<br />
|Unknown Data is stored Here<br />
|-<br />
|42<br />
|CHAR[8] (ASCIIZ)<br />
|8<br />
|Opponent<br />
|-<br />
|50<br />
|UCHAR[2]<br />
|2<br />
|Time<br />
|}<br />
<br />
The 4. Field (Opponent) has the following structure:<br />
{| class="wikitable"<br />
|- class="hintergrundfarbe5"<br />
!Offset<br />
!Data Type<br />
!Length<br />
!Field Name (or constant)<br />
!Description<br />
|-<br />
|0<br />
|CHAR[2]<br />
|2<br />
|Opponent ID<br />
|<br />
|-<br />
|2<br />
|CHAR<br />
|1<br />
|Character '/'<br />
|<br />
|-<br />
|3<br />
|CHAR[4]<br />
|4<br />
|Opponent Car<br />
|<br />
|-<br />
|7<br />
|CHAR<br />
|1<br />
|NUL Character<br />
|<br />
|}<br />
<br />
The Size of an Entry is 52 Bytes.<br />
Every Highscore File contains exactly 7 Entries = 364 Bytes per File.<br />
The 5. Field (Time) is expressed in Hundreds of a Second, and is calculated as following:<br />
TIME = time [1] * 1280 + time [0] * 5<br />
<br />
To convert this time to normal min:sec:hundreds format, use the following calculations<br />
(hundr contains the time in hundreds):<br />
hundreds = (hundr % 100)<br />
hundr /= 100<br />
sec = (hundr % 60)<br />
min = (hundr / 60)</div>
91.36.240.64
https://wiki.stunts.hu/index.php?title=Highscore_file_format&diff=2129
Highscore file format
2011-04-16T19:12:42Z
<p>91.36.240.64: Initial Version</p>
<hr />
<div>This Article describes the File Format of the Highscore files used by all versions of Stunts.<br />
Each Track has its own Highscore Table.<br />
<br />
{| class="wikitable"<br />
|- class="hintergrundfarbe5"<br />
!Offset<br />
!Data Type<br />
!Length<br />
!Field Name<br />
!Description<br />
|-<br />
|0<br />
|CHAR[17] (ASCIIZ)<br />
|17<br />
|Name<br />
|Driver's Name, terminated with a NUL Character<br />
|-<br />
|17<br />
|CHAR[21] (ASCIIZ)<br />
|21<br />
|Car<br />
|Driver's Car, terminated with a NUL Character<br />
|-<br />
|38<br />
|CHAR[4]<br />
|4<br />
|Unknown<br />
|Unknown Data is stored Here<br />
|-<br />
|42<br />
|CHAR[8] (ASCIIZ)<br />
|8<br />
|Opponent<br />
|-<br />
|50<br />
|UCHAR[2]<br />
|2<br />
|Time<br />
|}<br />
<br />
The 4. Field (Opponent has the following structure:<br />
{| class="wikitable"<br />
|- class="hintergrundfarbe5"<br />
!Offset<br />
!Data Type<br />
!Length<br />
!Field Name (or constant)<br />
!Description<br />
|-<br />
|0<br />
|CHAR[2]<br />
|2<br />
|Opponent ID<br />
|<br />
|-<br />
|2<br />
|CHAR<br />
|1<br />
|Character '/'<br />
|<br />
|-<br />
|3<br />
|CHAR[4]<br />
|4<br />
|Opponent Car<br />
|<br />
|-<br />
|7<br />
|CHAR<br />
|1<br />
|NUL Character<br />
|<br />
|}<br />
<br />
The Size of an Entry is 52 Bytes.<br />
Every Highscore File contains exactly 7 Entries = 364 Bytes per File.<br />
The 5. Field (Time) is expressed in Hundreds of a Second, and is calculated as following:<br />
TIME = time [1] * 1280 + time [0] * 5<br />
<br />
To convert this time to normal min:sec:hundreds format, use the following calculations<br />
(hundr contains the time in hundreds):<br />
hundreds = (hundr % 100)<br />
hundr /= 100<br />
sec = (hundr % 60)<br />
min = (hundr / 60)</div>
91.36.240.64