Patch:Quit Windows

From KeenWiki
Jump to: navigation, search

Quit windows are windows that ask whether the player wants to quit. In Keen Vorticons there are two such windows. One appears in the title screen and allows the player to quit to DOS, the other in-game, allowing the player to quit to Dos or the Title screen. These are treated in the first section of this page.

In Keen Galaxy there is one such window in the main menu. If 'Y' is pressed it temporarily displays a second 'Quitting...' window while the game shuts down. These are treated in the second section of this page.


Vorticons windows

Quit Y/N window

These patches alter the window that appears in the title screen. It has two options; 'Y' quits the game and any other key closes the window. The height and width are in 8x8 tiles. See also Patch:Text patches.

Patch: Keen Vorticons Quit window patches
#Keen 1:
%patch $0839 $0001W
#Height
%patch $083D $000CW
#Width
%patch $0847 $1D5BW
#Text called from
%patch $14DAB "Quit (Y/N)?" $00
#Keen 2:
%patch $0839 $0001W
#Height
%patch $083D $000CW
#Width
%patch $0847 $2103W
#Text called from
%patch $19883 "Quit (Y/N)?" $00
#Keen 3:
%patch $0896 $0001W
#Height
%patch $089A $000CW
#Width
%patch $08A3 $223BW
#Text called from
%patch $1BA5B "Quit (Y/N)?" $00


Keys used for options

The quit window uses an alphanumeric scancode to discern which key has been pressed. By default it responds to the 'Y' key by exiting. (All other keys close the window.) In this scheme 'A' has a value of $41, 'B' $42, etc.

Patch: Keen Vorticons Quit keypress patches
#'Y' key -Keen 1:
%patch $085C $59
#'Y' key -Keen 2:
%patch $085C $59
#'Y' key -Keen 3:
%patch $08B9 $59


Quit to DOS\Title window

These patches alter the window that appears ingame when the player presses Esc. It has two options; 'D' quits the game and exits to DOS while 'T' quits the current game and exits to the title screen. (Any other key closes the window.) The height and width are in 8x8 tiles. See also Patch:Text patches.

Patch: Keen Vorticons Quit window patches
#Keen 1:
%patch $086B $0002W
#Height
%patch $086F $0014W
#Width
%patch $879 $1D68W
#Text called from 1
%patch $882 $1D7AW
#Text called from 2
%patch $14DB8 "Quit to (D)os or" $0A $00 %patch $14DCA "(T)itle:" $00
#Keen 2:
%patch $086B $0002W
#Height
%patch $086F $0014W
#Width
%patch $879 $2110W
#Text called from 1
%patch $882 $2122W
#Text called from 2
%patch $19890 "Quit to (D)os or" $0A $00 %patch $198A2 "(T)itle:" $00
#Keen 3:
%patch $08C7 $0002W
#Height
%patch $08CB $0014W
#Width
%patch $8D4 $2248W
#Text called from 1
%patch $8DC $225AW
#Text called from 2
%patch $1BA68 "Quit to (D)os or" $0A $00 %patch $1BA7A "(T)itle:" $00


Keys used for options

The quit window uses an alphanumeric scancode to discern which key has been pressed. By default it has two options; 'D' quits the game and exits to DOS while 'T' quits the current game and exits to the title screen. (Any other key closes the window.) In this scheme 'A' has a value of $41, 'B' $42, etc.

Patch: Keen Vorticons Quit keypress patches
#Quit keys -Keen 1:
%patch $0897 $44
#D
%patch $08A7 $54
#T
#Quit keys -Keen 2:
%patch $0897 $44
#D
%patch $08A7 $54
#T
#Quit keys -Keen 3:
%patch $08F2 $44
#D
%patch $0901 $54
#T


Galaxy windows

Quit Y/N window

The Quit window shares a setup with several other windows, the only unique thing being the text displayed and what happens when 'Y' is pressed. As such only the text is easily altered.

Patch: Keen 4
#Text
%patch $1AFCE $495DW
#Really
%patch $1AFD3 $496AW
#Press
%patch $337CD "REALLY QUIT?" $00 %patch $337DA "PRESS Y TO QUIT" $00


Don't ask to quit

This patch removes the quit window; instead the player will simply exit the game when they press Esc in the main menu (Or select the quit option.)

Patch: Keen 4
#Don't ask if player wants to quit
%patch $1AFA7 $EB


Disable quitting in Main Menu

This patch stops the player from being able to exit from the Main Menu.

Patch: Keen 4
#Can't quit from Main Menu
%patch $1AF78 $CB


'Y' key in Galaxy

A single patch controls the 'Y' key for all options in Keen Galaxy. Altering this will alter not just one window or option but all that use the 'Y' key as an input. Note that it uses a standard scancode. By and large these options are 'quit related.'

Patch: Keen Galaxy 'Y' scancodes
#Y key -Keen 4:
%patch $1AF68 $15
#Y key -Keen 5:
%patch $1BF06 $15
#Y key -Keen 6:
%patch $1ABD8 $15


Quitting... window

When the player selects the QUIT option in the Main menu an presses 'Y' the game is exited. Before the game's final B800 screen appears a window will appear informing the player that the game is being quit. Nothing can interrupt this.

Patch: Galaxy Quitting window
#Keen 4:
%patch $1CDBB $0003W
#Height
%patch $1CDBF $0014W
#Width
%patch $1CDD0 $4EA1W
#Text called from
%patch $33D11 "Quitting..." $00
#Keen 5:
%patch $1DD57 $0003W
#Height
%patch $1DD5B $0014W
#Width
%patch $1DD6C $43A1W
#Text called from
%patch $346E1 "Quitting..." $00
#Keen 6:
%patch $1CA29 $0003W
#Height
%patch $1CA2D $0014W
#Width
%patch $1CA3E $491BW
#Text called from
%patch $3564B "Quitting..." $00