Difference between revisions of "Animated Grave Machine (WWP)"

From Worms Knowledge Base

Jump to: navigation, search
m (change icon)
(finish updating hexadecimal numbers' format and further improve concision)
 
(3 intermediate revisions by 3 users not shown)
Line 9: Line 9:
 
| language = Visual Basic 6.0
 
| language = Visual Basic 6.0
 
| license = Closed source
 
| license = Closed source
| download = [http://etho.wormsrenegade.com/programs/team/GraveWWP.zip GraveWWP.zip (16 kb)]
+
| download = [https://web.archive.org/web/20220619090250/http://btp.worms2d.info/filedownload.php?id=3388 GraveWWP.rar (13.9 KiB)]
 
}}
 
}}
  
'''The Animated Grave Machine for WWP''', written by [[Annelid]], is a hack that allows the user to select 1 of 128 different WWP sprites to use as your team's grave. However, the program has been incorporated into Annelid's much better [[TeamED]] program, and so is obsolete.
+
'''The Animated Grave Machine for WWP''', written by [[Annelid]], is a program that allows the user to select 1 of 128 different [[Worms World Party|WWP]] sprites to use as their team's grave. However, the program has been incorporated into Annelid's more general [[TeamED]] program, and so is obsolete.
  
 
== How it works ==
 
== How it works ==
  
This hack is possible because of the way Worms World Party reads a team's grave. Normally, a player has the option to use 1 of 6 default animated graves, or a custom 8-bit, 24 x 32 grave. 1 byte per each team in the team file is used to determine which type of grave is being used. Hex values 00 to 05 are used to represent the 6 default animated graves, and a value of FF signals the use of a custom grave. The program allows 1 of 128 sprites to be used as the grave by allowing you to select a value of 00 to 7F for this byte. The byte acts as an index for WWP's gfx.dir file, which holds almost all the sprites used by the game.
+
Through the usual WWP team editor interface, the player has the option to use 1 of 6 animated graves or a custom 8-bit, 24 x 32 grave. 1 byte per team in the team file is used to determine which type of grave is being used. Hex values 0x00 through 0x05 are used to represent the 6 default animated graves, and a value of 0xFF signals the use of a custom static grave. The Animated Grave Machine allows 1 of 128 sprites to be used as the grave by allowing the user to select a value of 0x00 to 0x7F for this byte. The byte acts as an index for WWP's gfx.dir file, which holds almost all the sprites used by the game.
  
Using values of 80 to FE for this byte can cause WWP to crash if a worm from the team is killed on the land. This is because the index byte is a signed byte. Hex values 80 to FE represent a negative value for the index. No negative entries exist in the gfx.dir, thus no sprite can be found for the grave, thus WWP crashes because it is not programmed to handle this error. If an integer was used instead of a byte for this index, any sprite could have been used from the gfx.dir as your team's grave.
+
Using hexadecimal values 0x80 through 0xFE for this byte causes WWP to crash if a worm from the team drops a grave by being killed on the land. This is because the animated grave index byte in the team file is read as an 8-bit signed integer, meaning hex values 0x80 through 0xFE represent negative values. Since gfx.dir is loaded into memory with an unsigned index, negative indices don't exist, resulting in an index-out-of-range error which causes a crash. If an unsigned integer was used instead of a signed integer for this index, any sprite could be chosen.
 +
 
 +
== See also ==
 +
* [[Gravestone]]
 +
* [[Custom team grave]]
 +
* [[Animated Grave Machine (W:A)]]
 +
* [[Team file#Animated graves|Animated graves]]

Latest revision as of 04:22, 2 September 2024

(Up to Software)
icon Animated Grave Machine
Animated Grave Machine screenshot
Developer: Annelid
Latest version: v1.0.0.3 / 2002
Supported games: WWP
Language: Visual Basic 6.0
License: Closed source
Download: GraveWWP.rar (13.9 KiB)

The Animated Grave Machine for WWP, written by Annelid, is a program that allows the user to select 1 of 128 different WWP sprites to use as their team's grave. However, the program has been incorporated into Annelid's more general TeamED program, and so is obsolete.

How it works

Through the usual WWP team editor interface, the player has the option to use 1 of 6 animated graves or a custom 8-bit, 24 x 32 grave. 1 byte per team in the team file is used to determine which type of grave is being used. Hex values 0x00 through 0x05 are used to represent the 6 default animated graves, and a value of 0xFF signals the use of a custom static grave. The Animated Grave Machine allows 1 of 128 sprites to be used as the grave by allowing the user to select a value of 0x00 to 0x7F for this byte. The byte acts as an index for WWP's gfx.dir file, which holds almost all the sprites used by the game.

Using hexadecimal values 0x80 through 0xFE for this byte causes WWP to crash if a worm from the team drops a grave by being killed on the land. This is because the animated grave index byte in the team file is read as an 8-bit signed integer, meaning hex values 0x80 through 0xFE represent negative values. Since gfx.dir is loaded into memory with an unsigned index, negative indices don't exist, resulting in an index-out-of-range error which causes a crash. If an unsigned integer was used instead of a signed integer for this index, any sprite could be chosen.

See also

Personal tools