Team file
From Worms Knowledge Base
(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
- Flags:
- weapon upgrade options (1 byte)
- Flags:
- 1 = Grenade Uprgade
- 2 = Shotgun Upgrade
- 4 = Banana Bomb Upgrade
- 8 = Longbow Upgrade
- 16 = Aqua Sheep Upgrade
- Flags:
- game options (1 byte)
- Flags:
- 1 = God Worms
- 2 = Blood
- 4 = Sheep Heaven
- Flags:
- 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))
- If Team Grave = 255 (custom) then include:
- 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)