Difference between revisions of "Worms 2 team file"
From Worms Knowledge Base
(Fourth time lucky?) |
m (Stupid german translation, "hits" are actually worm kills.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ParentArticle|[[File formats]]}} | {{ParentArticle|[[File formats]]}} | ||
− | A [[Worms 2]] team file stores the user's teams | + | A [[Worms 2]] team file stores the user's teams including names and statistics. |
− | Each team appears to be 412 bytes long, and are concatenated together. | + | == File Format == |
+ | |||
+ | Each team appears to be 412 bytes long, and are concatenated together, read until the file ends. | ||
+ | |||
+ | Strings are stored in fixed-size blocks, but encoded like any other 0-terminated string. | ||
{| border="1" cellspacing="0" class="wikitable" | {| border="1" cellspacing="0" class="wikitable" | ||
Line 11: | Line 15: | ||
!Description | !Description | ||
|- | |- | ||
− | | | + | | 0 |
| 2 | | 2 | ||
| uint16 | | uint16 | ||
− | | Two null bytes. Unknown purpose | + | | Two null bytes. Unknown purpose. |
|- | |- | ||
− | | | + | | 2 |
− | | | + | | 66 |
| String | | String | ||
− | | Team name | + | | Team name. |
|- | |- | ||
− | | | + | | 68 |
− | | | + | | 36 |
| String | | String | ||
− | | Name of sound bank | + | | Name of sound bank. |
|- | |- | ||
− | | | + | | 104 |
− | | | + | | 20 |
| String | | String | ||
− | | | + | | Name of worm 1. |
|- | |- | ||
− | | | + | | 124 |
− | | | + | | 20 |
| String | | String | ||
− | | | + | | Name of worm 2. |
|- | |- | ||
− | | | + | | 144 |
− | | | + | | 20 |
| String | | String | ||
− | | | + | | Name of worm 3. |
|- | |- | ||
− | | | + | | 164 |
− | | | + | | 20 |
| String | | String | ||
− | | | + | | Name of worm 4. |
|- | |- | ||
− | | | + | | 184 |
− | | | + | | 20 |
| String | | String | ||
− | | | + | | Name of worm 5. |
|- | |- | ||
− | | | + | | 204 |
− | | | + | | 20 |
| String | | String | ||
− | | | + | | Name of worm 6. |
|- | |- | ||
− | | | + | | 224 |
− | | | + | | 20 |
| String | | String | ||
− | | | + | | Name of worm 7. |
|- | |- | ||
− | | | + | | 244 |
− | | | + | | 20 |
| String | | String | ||
− | | | + | | Name of worm 8. |
|- | |- | ||
− | | | + | | 264 |
+ | | 4 * 24 | ||
+ | | sint32[24] | ||
+ | | Unknown values. | ||
+ | |- | ||
+ | | 360 | ||
| 4 | | 4 | ||
| sint32 | | sint32 | ||
| Number of games lost. | | Number of games lost. | ||
|- | |- | ||
− | | | + | | 364 |
| 4 | | 4 | ||
| sint32 | | sint32 | ||
| Number of games won. | | Number of games won. | ||
|- | |- | ||
− | | | + | | 368 |
| 4 | | 4 | ||
| sint32 | | sint32 | ||
− | | | + | | Unknown value. |
|- | |- | ||
− | | | + | | 372 |
| 4 | | 4 | ||
| sint32 | | sint32 | ||
− | | | + | | Unknown value. |
|- | |- | ||
− | | | + | | 376 |
| 4 | | 4 | ||
| sint32 | | sint32 | ||
− | | | + | | Number of opponent team worms killed. |
|- | |- | ||
− | | | + | | 380 |
| 4 | | 4 | ||
| sint32 | | sint32 | ||
− | | | + | | Number of worms lost in this team. |
|- | |- | ||
− | | | + | | 384 |
| 4 | | 4 | ||
| sint32 | | sint32 | ||
− | | | + | | CPU skill, ranges from 0 to 100, where 0 is used for human controlled teams. |
|- | |- | ||
− | | | + | | 388 |
| 4 | | 4 | ||
| sint32 | | sint32 | ||
− | | Points. | + | | Unknown value. |
+ | |- | ||
+ | | 392 | ||
+ | | 4 | ||
+ | | sint32 | ||
+ | | Unknown value. | ||
+ | |- | ||
+ | | 396 | ||
+ | | 4 | ||
+ | | sint32 | ||
+ | | Unknown value. | ||
+ | |- | ||
+ | | 400 | ||
+ | | 4 | ||
+ | | sint32 | ||
+ | | "Difference" statistics value. | ||
+ | |- | ||
+ | | 404 | ||
+ | | 4 | ||
+ | | sint32 | ||
+ | | Number of games played. | ||
+ | |- | ||
+ | | 408 | ||
+ | | 4 | ||
+ | | sint32 | ||
+ | | "Points" statistics value. | ||
|} | |} | ||
− | |||
− | |||
− |
Latest revision as of 15:22, 23 April 2017
(Up to File formats)
A Worms 2 team file stores the user's teams including names and statistics.
File Format
Each team appears to be 412 bytes long, and are concatenated together, read until the file ends.
Strings are stored in fixed-size blocks, but encoded like any other 0-terminated string.
Offset | Size | Type | Description |
---|---|---|---|
0 | 2 | uint16 | Two null bytes. Unknown purpose. |
2 | 66 | String | Team name. |
68 | 36 | String | Name of sound bank. |
104 | 20 | String | Name of worm 1. |
124 | 20 | String | Name of worm 2. |
144 | 20 | String | Name of worm 3. |
164 | 20 | String | Name of worm 4. |
184 | 20 | String | Name of worm 5. |
204 | 20 | String | Name of worm 6. |
224 | 20 | String | Name of worm 7. |
244 | 20 | String | Name of worm 8. |
264 | 4 * 24 | sint32[24] | Unknown values. |
360 | 4 | sint32 | Number of games lost. |
364 | 4 | sint32 | Number of games won. |
368 | 4 | sint32 | Unknown value. |
372 | 4 | sint32 | Unknown value. |
376 | 4 | sint32 | Number of opponent team worms killed. |
380 | 4 | sint32 | Number of worms lost in this team. |
384 | 4 | sint32 | CPU skill, ranges from 0 to 100, where 0 is used for human controlled teams. |
388 | 4 | sint32 | Unknown value. |
392 | 4 | sint32 | Unknown value. |
396 | 4 | sint32 | Unknown value. |
400 | 4 | sint32 | "Difference" statistics value. |
404 | 4 | sint32 | Number of games played. |
408 | 4 | sint32 | "Points" statistics value. |