This page relates to the ship parts in Keen 1. Getting all four ship parts (Battery, Vacuum, Whiskey and Joystick) is required to win the game. The ship parts are also seen (as tiles) in the status window, BWB message window, high scores window and game over high score entry window.
What parts affect
These patches affect what the four ship parts affect. By default they affect four different values in memory set aside especially for ship parts. Values in blue relate to Item bytes. It is possible to alter these in all sorts of locations for various effects. Values in brown are the quantity or size of the effect. Patches also involve jump conditions, usually $74. A knowledge of all these is useful when altering these patches.
All ship parts add 10'000 points to Keen's score; if this is set to 0, no points will be given. Due to how it is coded, the score being affected cannot be changed (It can't for example be patched so Keen gets 20'000 shots with each part.).
|Patch: Change the score amount that items give Keen when collected|
%patch $4471 $2710W
|Patch: Change what ship parts affect and how much|
Increase points parts give
As noted above there is a simple patch to change the number of points the parts give. however this patch has a limit of 32'000 points. ($7FFFW.) Increasing this limit requires shuffling the tile code to add a second call to the increase_points code. In this example two calls of 20'000 are made for a total of 40'000 points. (The new maximum is thus 64'000 points.)
Only the last two lines and blue values are of importance here; these are the points added to the player's score. This patch is incompatible with most other patches on this page. (Though they can mostly be inserted into the cod given here.)
|Patch: Keen 1|
Parts increase parts counter instead of setting to 1
By default ship parts set a value. That is, no matter how many of something Keen has, when he gets a part, he end up with 1 of it (Or whatever value it's patched to.) This can be considered to be similar to how the C T Space Cheat works, no matter how many shots Keen has, the cheat sets them to 99. The following patches are all separate and make an item add to Keen's score, so that if he has x items he will then have x + 1 If a modder isn't using the ship parts, they are useful for doing such things as making the joystick a second raygun, such as is seen in Keen 3.
|Patch: Keen 1|
Parts levels and removing parts on death
These are the levels the parts are found in by default. If Keen dies in these levels after getting a part, the part will be removed, thus preventing Keen from getting a part and not completing the level. This can come as a shock to modders who find parts they have 'disappearing' when they die in a custom level.
It is possible to make more than one level remove a part on death by altering the brown jumps in the first set of patches, though care is required. Changing the level to something 'impossible' such as level 100 will mean that no level Keen can enter in the game will remove his ship parts. (Or there is a patch to ignore ship part removal entirely.)
This patch can be modified so that Keen loses other things in special levels, like his ammunition. It can also be altered to give Keen things. Only one thing can be changed per level. See also Patch:Ship Parts
|Patch: Keen 1 parts level stuff|
Misc parts patches
This patch works by firstly skipping the 'give parts' code for the first three parts, then using the Battery's 'give part' code to fix the score by adding 65'536 points. This is because the actual score is larger than 32'000, meaning the game sees it as negative. This patch works with any score above 32'000 (See last line) and less than 65'000 (Higher scores can be given by tweaking the fix score line.)
|Patch: Get a very large score for ship parts|
|Patch: Affect ship parts when Keen dies in any level|
What is needed to win the game
This is what is required to trigger the ending sequence when Keen exits a level. By default Keen must have all four Ship Parts, that is, the value for these game stats must not be 0. (See also Patch:Jump conditions.) To make a part unnecessary simply replace $74 with $90 $90. If all four parts are treated this way, Keen will win the game on exiting any level.
|Patch: Keen 1|
Number of different parts needed to win game
This patch decreases the number of different parts needed to win the game. By default four parts are needed, each line of this patch removes on, starting with the Whiskey. If all four parts are disabled simply exiting a level wins the game.
|Patch: Keen 1|
%patch $8035 $EB $05