Difference between revisions of "Team file"

From Worms Knowledge Base

Jump to: navigation, search
(Added 1 Unknown Byte at the end, and made it clearer if grave =255 what to include.)
(formatting)
Line 6: Line 6:
 
* total team count (1 byte)
 
* total team count (1 byte)
 
* utility upgrade options (1 byte)  
 
* utility upgrade options (1 byte)  
- Flags:
+
** Flags:
- 1 = Laser Sight
+
*** 1 = Laser Sight
- 2 = Fast Walk
+
*** 2 = Fast Walk
- 4 = Invisibility
+
*** 4 = Invisibility
- 8 = Gravity
+
*** 8 = Gravity
- 16 = Jetpack
+
*** 16 = Jetpack
 
* weapon upgrade options (1 byte)
 
* weapon upgrade options (1 byte)
- Flags:
+
** Flags:
- 1 = Grenade Uprgade
+
*** 1 = Grenade Uprgade
- 2 = Shotgun Upgrade
+
*** 2 = Shotgun Upgrade
- 4 = Banana Bomb Upgrade
+
*** 4 = Banana Bomb Upgrade
- 8 = Longbow Upgrade
+
*** 8 = Longbow Upgrade
- 16 = Aqua Sheep Upgrade
+
*** 16 = Aqua Sheep Upgrade
 
* game options (1 byte)
 
* game options (1 byte)
- Flags:
+
** Flags:
- 1 = God Worms
+
*** 1 = God Worms
- 2 = Blood
+
*** 2 = Blood
- 4 = Sheep Heaven
+
*** 4 = Sheep Heaven
 
* indestructible terrain option (1 byte) (0 = no, 3 = yes)
 
* indestructible terrain option (1 byte) (0 = no, 3 = yes)
 
* unknown (1 byte)
 
* unknown (1 byte)
Line 44: Line 44:
 
* Fanfare Location (1 byte) (0 = ?, 1 = ?)
 
* Fanfare Location (1 byte) (0 = ?, 1 = ?)
 
* Team Grave (1 byte) (0 to 254 = sprite index from gfx.dir, 255 = custom 24 x 32 bitmap)
 
* Team Grave (1 byte) (0 to 254 = sprite index from gfx.dir, 255 = custom 24 x 32 bitmap)
 
+
** If Team Grave = 255 (custom) then include:
If Team Grave = 255 (custom) then include:
+
*** Grave File Name (32 bytes)
  * Grave File Name (32 bytes)
+
*** Grave Bitmap Data (1792 bytes) ((palette 256 * 4) + (data 24 * 32))
  * Grave Bitmap Data (1792 bytes) ((palette 256 * 4) + (data 24 * 32))
+
  
 
* Team Weapon (1 byte)
 
* Team Weapon (1 byte)

Revision as of 10:32, 25 October 2010

(Up to File formats)

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 = 255 (custom) 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)
Personal tools