Difference between revisions of "Worms 2 team file"

From Worms Knowledge Base

Jump to: navigation, search
(Fourth time lucky?)
(Fixed layout)
Line 1: Line 1:
 
{{ParentArticle|[[File formats]]}}
 
{{ParentArticle|[[File formats]]}}
  
A [[Worms 2]] team file stores the user's teams in Worms 2.
+
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
 
|-
 
|-
| 00
+
| 0
 
| 2
 
| 2
 
| uint16
 
| uint16
| Two null bytes. Unknown purpose as of yet.
+
| Two null bytes. Unknown purpose.
 
|-
 
|-
| 02
+
| 2
| 0x42
+
| 66
 
| String
 
| String
| Team name, null-terminated.
+
| Team name.
 
|-
 
|-
| 44
+
| 68
| 0x24
+
| 36
 
| String
 
| String
| Name of sound bank, null-terminated.
+
| Name of sound bank.
 
|-
 
|-
| 68
+
| 104
| 0x14
+
| 20
 
| String
 
| String
| Worm name, null-terminated.
+
| Name of worm 1.
 
|-
 
|-
| 7C
+
| 124
| 0x14
+
| 20
 
| String
 
| String
| Worm name, null-terminated.
+
| Name of worm 2.
 
|-
 
|-
| 90
+
| 144
| 0x14
+
| 20
 
| String
 
| String
| Worm name, null-terminated.
+
| Name of worm 3.
 
|-
 
|-
| A4
+
| 164
| 0x14
+
| 20
 
| String
 
| String
| Worm name, null-terminated.
+
| Name of worm 4.
 
|-
 
|-
| B8
+
| 184
| 0x14
+
| 20
 
| String
 
| String
| Worm name, null-terminated.
+
| Name of worm 5.
 
|-
 
|-
| CC
+
| 204
| 0x14
+
| 20
 
| String
 
| String
| Worm name, null-terminated.
+
| Name of worm 6.
 
|-
 
|-
| E0
+
| 224
| 0x14
+
| 20
 
| String
 
| String
| Worm name, null-terminated.
+
| Name of worm 7.
 
|-
 
|-
| F4
+
| 244
| 0x14
+
| 20
 
| String
 
| String
| Worm name, null-terminated.
+
| Name of worm 8.
 
|-
 
|-
| 168
+
| 264
 
| 4
 
| 4
 
| sint32
 
| sint32
 
| Number of games lost.
 
| Number of games lost.
 
|-
 
|-
| 16C
+
| 268
 
| 4
 
| 4
 
| sint32
 
| sint32
 
| Number of games won.
 
| Number of games won.
 
|-
 
|-
| 178
+
| 272
 
| 4
 
| 4
 
| sint32
 
| sint32
| Number of kills.
+
| Number of opponent worm kills.
 
|-
 
|-
| 17C
+
| 276
 
| 4
 
| 4
 
| sint32
 
| sint32
| Number of worms killed on this team.
+
| Number of worms lost in this team.
 
|-
 
|-
| 180
+
| 278
 
| 4
 
| 4
 
| sint32
 
| sint32
 
| CPU skill, range 0x01 to 0x64. 0 for human teams.
 
| CPU skill, range 0x01 to 0x64. 0 for human teams.
 
|-
 
|-
| 190
+
| 284
 
| 4
 
| 4
 
| sint32
 
| sint32
| Kills-killed.
+
| Kills-killed (?).
 
|-
 
|-
| 194
+
| 288
 
| 4
 
| 4
 
| sint32
 
| sint32
 
| Number of games played. If 0, none of the stats are displayed (always 0 for CPU teams).
 
| Number of games played. If 0, none of the stats are displayed (always 0 for CPU teams).
 
|-
 
|-
| 198
+
| 292
 +
| 4 * 21
 +
| sint32[21]
 +
| Unknown values.
 +
|-
 +
| 376
 +
| 4
 +
| sint32
 +
| Number of hits on other teams.
 +
|-
 +
| 380
 +
| 4
 +
| sint32
 +
| Number of hits from other teams.
 +
|-
 +
| 384
 +
| 4 * 4
 +
| sint32[4]
 +
| Unknown values.
 +
|-
 +
| 400
 +
| 4
 +
| sint32
 +
| "Difference" statistics value.
 +
|-
 +
| 404
 +
| 4
 +
| sint32
 +
| Unknown value.
 +
|-
 +
| 408
 
| 4
 
| 4
 
| sint32
 
| sint32
 
| Points.
 
| Points.
 
|}
 
|}
 
 
Bytes not listed are of unknown use.
 

Revision as of 14:53, 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 sint32 Number of games lost.
268 4 sint32 Number of games won.
272 4 sint32 Number of opponent worm kills.
276 4 sint32 Number of worms lost in this team.
278 4 sint32 CPU skill, range 0x01 to 0x64. 0 for human teams.
284 4 sint32 Kills-killed (?).
288 4 sint32 Number of games played. If 0, none of the stats are displayed (always 0 for CPU teams).
292 4 * 21 sint32[21] Unknown values.
376 4 sint32 Number of hits on other teams.
380 4 sint32 Number of hits from other teams.
384 4 * 4 sint32[4] Unknown values.
400 4 sint32 "Difference" statistics value.
404 4 sint32 Unknown value.
408 4 sint32 Points.
Personal tools