Difference between revisions of "Team file"

From Worms Knowledge Base

Jump to: navigation, search
(sections)
(Animated graves: use a table to probably look better)
Line 78: Line 78:
 
This is possible by setting the Team Grave value in the team file to a value higher than 5. The game calculates the sprite index for the team grave by reading the value from the team file, and adding it to the index of the first grave. Using a value higher than 5 causes the game to use sprites which follow the graves in the game's internal sprite list:
 
This is possible by setting the Team Grave value in the team file to a value higher than 5. The game calculates the sprite index for the team grave by reading the value from the team file, and adding it to the index of the first grave. Using a value higher than 5 causes the game to use sprites which follow the graves in the game's internal sprite list:
  
* ... some other sprites ...
+
{| class="wikitable"
{{gap}}
+
| colspan="2" style="text-align: center" | ... some other sprites ...
* 0 - <code>grave1.spr</code>
+
|-
* 1 - <code>grave2.spr</code>
+
| '''0''' || <tt>grave1.spr</tt>
* 2 - <code>grave3.spr</code>
+
|-
* 3 - <code>grave4.spr</code>
+
| '''1''' || <tt>grave2.spr</tt>
* 4 - <code>grave5.spr</code>
+
|-
* 5 - <code>grave6.spr</code>
+
| '''2''' || <tt>grave3.spr</tt>
{{gap}}
+
|-
* 6 - <code>flame1.spr</code>
+
| '''3''' || <tt>grave4.spr</tt>
* 7 - <code>flame2.spr</code>
+
|-
* 8 - <code>petrol-1.spr</code>
+
| '''4''' || <tt>grave5.spr</tt>
{{gap}}
+
|-
* ... more sprites ...
+
| '''5''' || <tt>grave6.spr</tt>
 +
|-
 +
| 6 || <tt>flame1.spr</tt>
 +
|-
 +
| 7 || <tt>flame2.spr</tt>
 +
|-
 +
| 8 || <tt>petrol-1.spr</tt>
 +
|-
 +
| colspan="2" style="text-align: center" | ... more sprites ...
 +
|}

Revision as of 11:15, 25 October 2010

(Up to File formats)

File Format

File Header

  • 4-byte tag signature - "WGT\x00"
  • unknown (1 byte)
  • total team count (1 byte)
  • utility upgrade options (1 byte)
    • Flags:
      • 1 = Laser Sight
      • 2 = Fast Walk
      • 4 = Invisibility
      • 8 = Gravity
      • 16 = Jetpack
  • weapon upgrade options (1 byte)
    • Flags:
      • 1 = Grenade Uprgade
      • 2 = Shotgun Upgrade
      • 4 = Banana Bomb Upgrade
      • 8 = Longbow Upgrade
      • 16 = Aqua Sheep Upgrade
  • game options (1 byte)
    • Flags:
      • 1 = God Worms
      • 2 = Blood
      • 4 = Sheep Heaven
  • indestructible terrain option (1 byte) (0 = no, 3 = yes)
  • unknown (1 byte)

Team Format - Looped For Number of Teams

  • Team Name (17 bytes)
  • Worm 1 Name (17 bytes)
  • Worm 2 Name (17 bytes)
  • Worm 3 Name (17 bytes)
  • Worm 4 Name (17 bytes)
  • Worm 5 Name (17 bytes)
  • Worm 6 Name (17 bytes)
  • Worm 7 Name (17 bytes)
  • Worm 8 Name (17 bytes)
  • Team Control (1 byte) (0 = player controlled, 1 to 5 correspond to CPU level 1 to 5)
  • Soundbank Name (32 bytes)
  • Soundbank Location? (1 byte) (0 = ?, 1 = ?)
  • Fanfare Name (32 bytes)
  • Fanfare Location (1 byte) (0 = ?, 1 = ?)
  • Team Grave (1 byte) (0 to 254 = sprite index from gfx.dir, 255 = custom 24 x 32 bitmap)
    • If Team Grave >= 128 (negative signed byte) then include:
      • Grave File Name (32 bytes)
      • Grave Bitmap Data (1792 bytes) ((palette 256 * 4) + (data 24 * 32))
  • Team Weapon (1 byte)
  • Team Loss Count (4 bytes)
  • Team Deathmatch Loss Count (4 bytes)
  • Team Win Count (4 bytes)
  • Team Deathmatch Win Count (4 bytes)
  • Team Draw Count (4 bytes)
  • Team Deathmatch Draw Count (4 bytes)
  • Number of worms killed by team (4 bytes)
  • Number of worms killed in deathmatches by team (4 bytes)
  • Number of worms lost by team (4 bytes)
  • Number of worms lost in deathmatches by team (4 bytes)
  • Team's Mission Status (264 bytes) (33 missions * (mission attempts (4 bytes) & mission medal (4 bytes))
  • Flag File Name (32 bytes)
  • Flag Bitmap Data (1364 bytes) ((palette 256 * 4) + (data 20 * 17))
  • Team's Deathmatch Rank (1 byte)
  • Team Training Mission Times (24 bytes) (4 bytes * 6 missions)
  • Unknown (40 bytes)
  • Team Training Mission Medals (6 bytes) (1 byte * 6 missions)
  • Unknown (10 bytes)
  • Unknown (28 bytes) (7 * 4)
  • Unknown (1 Byte)

Animated graves

W:A and WWP allows the user to select one of six animated graves from the user interface. However, it's possible to set the grave animation to certain other sprites.

This is possible by setting the Team Grave value in the team file to a value higher than 5. The game calculates the sprite index for the team grave by reading the value from the team file, and adding it to the index of the first grave. Using a value higher than 5 causes the game to use sprites which follow the graves in the game's internal sprite list:

... some other sprites ...
0 grave1.spr
1 grave2.spr
2 grave3.spr
3 grave4.spr
4 grave5.spr
5 grave6.spr
6 flame1.spr
7 flame2.spr
8 petrol-1.spr
... more sprites ...
Personal tools