Patch:Two button firing

From KeenWiki
Jump to: navigation, search

Two button firing is a setting that requires the ctrl and alt keys to be pressed simultaneously before the player can fire. This is the only setting in Keen Vorticons but it can be changed to one button firing (Spacebar) in Keen galaxy. (In Dreams the alt key is not used so this is not an issue.)


Force or disable two button firing

These patches force the player to either always use two button firing or never use it, independent of what settings they use. This does not change the two button menu option (See below.) so players can still change settings, they just won't have any effect. It may therefore be wise to patch the menu option to also reflect this. The equivalent patch for Vorticons is in the next section.

Patch: Force two button firing on
#Force 2-button firing -Keen 4
%patch $8B89 $EB
#Force 2-button firing -Keen 5
%patch $8B05 $EB
#Force 2-button firing -Keen 6
%patch $896D $EB

Patch: Disable two button firing
#Disable two button firing -Keen 4
%patch $8B84 $EB $05
#Disable two button firing -Keen 5
%patch $8B00 $EB $05
#Disable two button firing -Keen 6
%patch $8968 $EB $05


One button firing in Vorticons

This changes the controls of the Vorticons games to use one button firing. Spacebar shoots, enter brings up the status screen. See http://keenmodding.org/viewtopic.php?t=433 for the original topic. Note that the first two lines alter the status window key and the remaining lines Keen's shot key (In various situations.) To change the key simply alter the blue highlighted values. (Consulting Patch:Scancodes will be informative.)

In this patch the status box lines are included since the shooting key is now the spacebar. This patch also causes the shooting key to be one key, not two (Both ctrl and alt by default.) This can cause some issues with things like keyboard setup and joystick.

Patch: Keen 1
#Change the controls to Space, shoot; Enter, status.
%patch $1251 $5048W %patch $7FA3 $5048W %patch $3B23 $90 $90 $90 $90 $90 $90 $90 $80 $3E $5065W $00 %patch $3C4E $90 $90 $90 $90 $90 $90 $90 $80 $3E $5065W $00 %patch $3DB9 $90 $90 $90 $90 $90 $90 $90 $80 $3E $5065W $00 %patch $3DCC $90 $90 %patch $3E6D $90 $90 $90 $90 $90 $90 $90 $80 $3E $5065W $00 %patch $3FFC $90 $90 $90 $90 $90 $90 $90 $80 $3E $5065W $00 %patch $40AA $90 $90 $90 $90 $90 $90 $90 $80 $3E $5065W $00

Patch: Keen 2
#Change the controls to: Space, shoot; Enter, status.
%patch $120B $5024W %patch $83A2 $5024W %patch $6965 $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W $00 %patch $6A90 $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W $00 %patch $6BFB $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W $00 %patch $6C0E $90 $90 %patch $6CAF $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W $00 %patch $6E3E $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W $00 %patch $6EEC $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W $00

Patch: Keen 3
#Change the controls to: Space, shoot; Enter, status.
%patch $11AF $5274W %patch $8D6E $5274W %patch $71C9 $90 $90 $90 $90 $90 $90 $90 $80 $3E $5291W $00 %patch $72FA $90 $90 $90 $90 $90 $90 $90 $80 $3E $5291W $00 %patch $7461 $90 $90 $90 $90 $90 $90 $90 $80 $3E $5291W $00 %patch $7474 $90 $90 %patch $7515 $90 $90 $90 $90 $90 $90 $90 $80 $3E $5291W $00 %patch $76A1 $90 $90 $90 $90 $90 $90 $90 $80 $3E $5291W $00 %patch $7750 $90 $90 $90 $90 $90 $90 $90 $80 $3E $5291W $00


Two button firing disabled in demos

Two button firing is enabled by default in demos no matter how it is set. If a demo has been recorded without two button firing, then the demo will not play correctly. The following patches disable two button firing in demo playback.

Patch: Disable 2 Button firing in demos
#Disable 2 Button firing in demos -Keen 4
%patch $8B8B $90 $90 $90 $90 $90 $90 $90
#Disable 2 Button firing in demos -Keen 5
%patch $8B07 $90 $90 $90 $90 $90 $90 $90
#Disable 2 Button firing in demos -Keen 6
%patch $8439 $90 $90 $90 $90 $90 $90 $90


Two button firing menu option

These patches affect the configuration menu, specifically the portion that allows the player to set the two button firing.


Option texts

There are two texts displayed by the menu option depending on whether two button firing is enabled or not. There are also two messages displayed when

Patch: Two button menu texts
#Texts -Keen 4:
%patch $33893 "TWO-BUTTON FIRING (ON)" $00 %patch $338AA "TWO-BUTTON FIRING (OFF)" $00 %patch $33A06 "Two-button firing now on" $00 %patch $33A1F "Two-button firing now off" $00
#Texts read from -Keen 4:
%patch $1B282 $4B96W
#Now on
%patch $1B287 $4BAFW
#Now off
#Texts -Keen 5:
%patch $34343 "TWO-BUTTON FIRING (ON)" $00 %patch $3435A "TWO-BUTTON FIRING (OFF)" $00 %patch $3449A "Two-button firing now on" $00 %patch $344B3 "Two-button firing now off" $00
#Texts read from -Keen 5:
%patch $1C0BC $4003W
#On
%patch $1C0C1 $401AW
#Off
%patch $1C220 $415AW
#Now on
%patch $1C225 $4173W
#Now off
#Texts -Keen 6:
%patch $351CD "TWO-BUTTON FIRING (ON)" $00 %patch $351E4 "TWO-BUTTON FIRING (OFF)" $00 %patch $35340 "Two-button firing now on" $00 %patch $35359 "Two-button firing now off" $00
#Texts read from -Keen 6:
%patch $1AEF2 $4629W
#Now on
%patch $1AEF7 $4610W
#Now off


Option always shows same text

This patch changes the two button menu option so that it always shows the same text. Again there are two possibilities, one involving the menu option itself, the other involving changing the setting.

Patch: Two button menu texts
#Two button firing text always the same -Keen 4:
%patch $1B27F $EB
#When changing
#Two button firing text always the same -Keen 5:
%patch $1C0B9 $EB
#In menu
%patch $1C21D $EB
#When changing
#Two button firing text always the same -Keen 6:
%patch $1AEEF $EB
#When changing