https://worms2d.info/?title=Weapons_file&feed=atom&action=history
Weapons file - Revision history
2024-03-29T09:52:04Z
Revision history for this page on the wiki
MediaWiki 1.26.3
https://worms2d.info/?title=Weapons_file&diff=21874&oldid=prev
Muzer: /* Header */ Mystery bytes ever more mysterious.
2012-10-13T14:00:36Z
<p><span dir="auto"><span class="autocomment">Header: </span> Mystery bytes ever more mysterious.</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 14:00, 13 October 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l17" >Line 17:</td>
<td colspan="2" class="diff-lineno">Line 17:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| 0x10</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| 0x10</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| Unknown</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| Unknown</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>| 16 bytes of unknown purpose. Appears to change every time you save it even if nothing in the file is changed and I can see no pattern myself.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| 16 bytes of unknown purpose. Appears to change every time you save it even if nothing in the file is changed and I can see no pattern myself<ins class="diffchange diffchange-inline">. The game does not seem to care if you edit it</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| 10</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| 10</div></td></tr>
</table>
Muzer
https://worms2d.info/?title=Weapons_file&diff=21862&oldid=prev
Muzer: /* Weapons */ fix link
2012-10-13T00:59:53Z
<p><span dir="auto"><span class="autocomment">Weapons: </span> fix link</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 00:59, 13 October 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l88" >Line 88:</td>
<td colspan="2" class="diff-lineno">Line 88:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| 4</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| 4</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| sint32</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| sint32</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>| [[Explosion <del class="diffchange diffchange-inline">bias</del>]], measured in percent.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| [[Explosion <ins class="diffchange diffchange-inline">Bias</ins>]], measured in percent.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| 2C</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| 2C</div></td></tr>
</table>
Muzer
https://worms2d.info/?title=Weapons_file&diff=21861&oldid=prev
Muzer: Weapons file format.
2012-10-13T00:59:21Z
<p>Weapons file format.</p>
<p><b>New page</b></p><div>{{ParentArticle|[[File formats]]}}<br />
A weapons file stores [[Worms 2]] weapon options. Unlike other games, this file does not also contain game options; those are stored in a separate file. <br />
<br />
As in [[Monochrome map (Worms 2)|traditional Worms 2 fashion]], most of the values which could be stored within one byte are stored within four. All types are little-endian. How many of these are actually read has not been tested.<br />
<br />
Reverse engineered by Muzer, so there might be mistakes ;)<br />
<br />
== Header ==<br />
<br />
{| border="1" cellspacing="0" class="wikitable"<br />
!Offset<br />
!Size<br />
!Type<br />
!Description<br />
|-<br />
| 00<br />
| 0x10<br />
| Unknown<br />
| 16 bytes of unknown purpose. Appears to change every time you save it even if nothing in the file is changed and I can see no pattern myself.<br />
|-<br />
| 10<br />
| 8<br />
| char[8]<br />
| Magic number used to identify the weapons file. The string "WEPFILE", but null-terminated (unlike the one in the options file). Which is good because it means the whole file is now nicely aligned (compared to the options file at least).<br />
|}<br />
<br />
== Weapons ==<br />
<br />
Each weapon appears to be 140 bytes long, and they appear to be directly concatenated together. Fields which do not apply to that weapon appear to be populated with 0xe0e0e0e0. The offsets are now relative to the start of that weapon (0x18 for the bazooka, etc.).<br />
<br />
{| border="1" cellspacing="0" class="wikitable"<br />
!Offset<br />
!Size<br />
!Type<br />
!Description<br />
|-<br />
| 00<br />
| 4<br />
| sint32<br />
| Initial stock of weapon. 0x0a (10) is infinite.<br />
|-<br />
| 04<br />
| 4<br />
| sint32<br />
| Delay of weapon.<br />
|-<br />
| 08<br />
| 4<br />
| sint32<br />
| Retreat time after using weapon. 0 for scheme default.<br />
|-<br />
| 0C<br />
| 4<br />
| sint32<br />
| Nonzero if the weapon is remembered (automatically equipped the next time that worm takes a turn).<br />
|-<br />
| 10<br />
| 4<br />
| sint32<br />
| Not used in any weapon.<br />
|-<br />
| 14<br />
| 4<br />
| sint32<br />
| Total ammo found in a crate.<br />
|-<br />
| 18<br />
| 4<br />
| sint32<br />
| Bullet count (in a single shot).<br />
|-<br />
| 1C<br />
| 4<br />
| sint32<br />
| Appears in crates (crate probability), measured in percent.<br />
|-<br />
| 20<br />
| 4<br />
| sint32<br />
| Weapon damage, measured in health points. Also determines blast radius.<br />
|-<br />
| 24<br />
| 4<br />
| sint32<br />
| Blast power, measured in percent. Pushing power of the weapon.<br />
|-<br />
| 28<br />
| 4<br />
| sint32<br />
| [[Explosion bias]], measured in percent.<br />
|-<br />
| 2C<br />
| 4<br />
| sint32<br />
| Homing delay, measured in milliseconds.<br />
|-<br />
| 30<br />
| 4<br />
| sint32<br />
| Homing time, measured in milliseconds.<br />
|-<br />
| 34<br />
| 4<br />
| sint32<br />
| [[Wind]] response, measured in percent.<br />
|-<br />
| 38<br />
| 4<br />
| sint32<br />
| Not used in any weapon.<br />
|-<br />
| 3C<br />
| 4<br />
| sint32<br />
| Number of clusters.<br />
|-<br />
| 40<br />
| 4<br />
| sint32<br />
| Cluster throw power, measured in percent.<br />
|-<br />
| 44<br />
| 4<br />
| sint32<br />
| Cluster throw angle, measured in degrees.<br />
|-<br />
| 48<br />
| 4<br />
| sint32<br />
| Cluster damage, measured in health points. Also determines blast radius.<br />
|-<br />
| 4C<br />
| 4<br />
| sint32<br />
| Override fuse, measured in seconds, 0 for default.<br />
|-<br />
| 50<br />
| 4<br />
| sint32<br />
| Amount of fire, measured in percent.<br />
|-<br />
| 54<br />
| 4<br />
| sint32<br />
| Fire spread speed, measured in percent.<br />
|-<br />
| 58<br />
| 4<br />
| sint32<br />
| Fire period, measured in percent (the time it burns for).<br />
|-<br />
| 5C<br />
| 4<br />
| sint32<br />
| Melee impact force, measured in percent.<br />
|-<br />
| 60<br />
| 4<br />
| sint32<br />
| Melee impact angle, measured in degrees.<br />
|-<br />
| 64<br />
| 4<br />
| sint32<br />
| Melee impact damage, measured in health points.<br />
|-<br />
| 68<br />
| 4<br />
| sint32<br />
| Fire Punch jump height, measured in percent.<br />
|-<br />
| 6C<br />
| 4<br />
| sint32<br />
| [[Dragon Ball]] damage, measured in health points.<br />
|-<br />
| 70<br />
| 4<br />
| sint32<br />
| Dragon Ball impact power, measured in percent.<br />
|-<br />
| 74<br />
| 4<br />
| sint32<br />
| Dragon Ball impact angle, measured in degrees.<br />
|-<br />
| 78<br />
| 4<br />
| sint32<br />
| Dragon Ball impact time, measured in milliseconds.<br />
|-<br />
| 7C<br />
| 4<br />
| sint32<br />
| [[Kamikaze]] and digging tools dig time, measured in milliseconds.<br />
|-<br />
| 80<br />
| 4<br />
| sint32<br />
| Number of strike bomblets.<br />
|-<br />
| 84<br />
| 4<br />
| sint32<br />
| Strike bomblet damage, measured in health points. Also determines blast radius.<br />
|-<br />
| 88<br />
| 4<br />
| sint32<br />
| Bullet spread, measured in degrees.<br />
|}<br />
<br />
Here is the order in which the weapons appear. Note that superweapons do not appear in the file and so cannot be edited, even externally.<br />
<br />
{| border="1" cellspacing="0" class="wikitable"<br />
!Position<br />
!Name<br />
|-<br />
| 0<br />
| [[Bazooka]]<br />
|-<br />
| 1<br />
| [[Homing Missile]]<br />
|-<br />
| 2<br />
| [[Grenade]]<br />
|-<br />
| 3<br />
| [[Cluster Bomb]]<br />
|-<br />
| 4<br />
| [[Banana Bomb]]<br />
|-<br />
| 5<br />
| [[Holy Hand Grenade]]<br />
|-<br />
| 6<br />
| [[Homing Cluster Bomb]]<br />
|-<br />
| 7<br />
| [[Petrol Bomb]]<br />
|-<br />
| 8<br />
| [[Shotgun]]<br />
|-<br />
| 9<br />
| [[Handgun]]<br />
|-<br />
| 10<br />
| [[Uzi]]<br />
|-<br />
| 11<br />
| [[Minigun]]<br />
|-<br />
| 12<br />
| [[Fire Punch]]<br />
|-<br />
| 13<br />
| [[Dragon Ball]]<br />
|-<br />
| 14<br />
| [[Kamikaze]]<br />
|-<br />
| 15<br />
| [[Dynamite]]<br />
|-<br />
| 16<br />
| [[Mine]]<br />
|-<br />
| 17<br />
| [[Ming Vase]]<br />
|-<br />
| 18<br />
| [[Air Strike]]<br />
|-<br />
| 19<br />
| [[Homing Air Strike]]<br />
|-<br />
| 20<br />
| [[Napalm Strike]]<br />
|-<br />
| 21<br />
| [[Mail Strike]]<br />
|-<br />
| 22<br />
| [[Girder]]<br />
|-<br />
| 23<br />
| [[Pneumatic Drill]]<br />
|-<br />
| 24<br />
| [[Baseball Bat]]<br />
|-<br />
| 25<br />
| [[Prod]]<br />
|-<br />
| 26<br />
| [[Teleport]]<br />
|-<br />
| 27<br />
| [[Ninja Rope]]<br />
|-<br />
| 28<br />
| [[Bungee]]<br />
|-<br />
| 29<br />
| [[Parachute]]<br />
|-<br />
| 30<br />
| [[Sheep]]<br />
|-<br />
| 31<br />
| [[Mad Cow]]<br />
|-<br />
| 32<br />
| [[Old Woman]]<br />
|-<br />
| 33<br />
| [[Mortar]]<br />
|-<br />
| 34<br />
| [[Blow Torch]]<br />
|-<br />
| 35<br />
| [[Homing Pigeon]]<br />
|-<br />
| 36<br />
| [[Super Sheep]]<br />
|-<br />
| 37<br />
| [[Super Banana Bomb]]<br />
|}</div>
Muzer