Patch:Palette

From KeenWiki
Jump to: navigation, search

This page covers patches relating to the color palette(s) used in Keen games. There are several areas covered by the term "palette".

The first is the actual colors used in the game. By default, Keen games use the standard EGA palette for DOS, as do most id Software games. These colors are preset and cannot be changed. It is however possible to make the Keen Vorticons games to use the VGA palette, in which up to 256 colors can be independently defined in terms of RGB (Red, Blue, Green) values from 0–63.

The second use of the term relates to how the existing colors are used in the games. As an EGA game, Keen can only display 16 colors on the screen at once, and usually takes these 16 colors from the default EGA palette set up when the game starts. (Though, this too has been patched.) A classic example is the screen fading in/out from black; this is used to hide abrupt transitions when levels are being loaded and thelike. This is done by changing how the 16 EGA colors are used, eventually turning them all black.

The page is thus split into three sections, the first involves patches that change colors, this is possible only with Keen Vorticons at present and allows for VGA (256 color) effects. The second section involves patches that actually change the 16-color EGA palettes used by the game. Finally there is a section for an advanced Keen 1 palette patch intended to be used in conjunction with the V 2 tileset patch.


Changing colors

These patches relate to changing the 16 "EGA" colors the game uses. This is done by making the game use VGA, or 256 color graphics effects. While the game displays only 16 different colors at a time, these can be changed from the normal EGA colors.


Old color patch

This controls the actual colors in the palette. Each color consists of three components; red, green and blue. These have values from 0–63, as with other VGA palette formats. This makes each palette 48 bytes long. The order of colors in the palette is the order of the colors in the game. (The first color, 0, is usually black for example.) The colors listed here are their default values and in their default order, so you can see how they work.

Note that the Keen 1 patch needs the change background tiles patch in order to work properly. The Keen 2/3 patches disable the joystick configuration window for the required space.

Patch: Change the default colors [Keen 1]
#This is the color palette: 16 entries of r, g, b (each 0–63)
%patch $13054 00 00 00
#Black
00 00 42
#Blue
00 42 00
#Green
00 42 42
#Cyan
42 00 00
#Red
42 00 42
#Magenta
42 21 00
#Brown
42 42 42
#Bright grey
21 21 21
#Grey
21 21 63
#Bright blue
21 63 21
#Bright green
21 63 63
#Bright cyan
63 21 21
#Bright red
63 21 63
#Bright magenta/pink
63 63 21
#Yellow
63 63 63
#White
#Set the palette stuff
%patch $6E46 $E8 $D3 $D5 $90 $90 %patch $441C $B8 $0D $00 $CD $10 $B8 $12 $10 $B9 $0008W $BB $00 $00 $8C $DA $8E $C2 $BA $04 $00 $CD $10 $BB $18 $00 $BA $1C $00 $CD $10 $C3
#Include this part if the "Change background tiles" patch is not used
%patch $4409 $B8 $14 $01 $26 $81 $3F $31 $01 $73 $03 $B8 $8F $00 $26 $89 $07 $E9 $5C $01

Patch: Change the default colors [Keen 2]
#This is the color palette: 16 entries of r, g, b (each 0–63)
%patch $17784 00 00 00
#Black
00 00 42
#Blue
00 42 00
#Green
00 42 42
#Cyan
42 00 00
#Red
42 00 42
#Magenta
42 21 00
#Brown
42 42 42
#Bright grey
21 21 21
#Grey
21 21 63
#Bright blue
21 63 21
#Bright green
21 63 63
#Bright cyan
63 21 21
#Bright red
63 21 63
#Bright magenta/pink
63 63 21
#Yellow
63 63 63
#White
#Set the palette stuff
%patch $3045 $E8 $35 $E5 $90 $90 %patch $157C $C3 $B8 $0D $00 $CD $10 $B8 $12 $10 $B9 $0008W $BB $00 $00 $8C $DA $8E $C2 $BA $04 $00 $CD $10 $BB $18 $00 $BA $1C $00 $CD $10 $C3

Patch: Change the default colors [Keen 3]
#This is the color palette: 16 entries of r, g, b (each 0–63)
%patch $19824 00 00 00
#Black
00 00 42
#Blue
00 42 00
#Green
00 42 42
#Cyan
42 00 00
#Red
42 00 42
#Magenta
42 21 00
#Brown
42 42 42
#Bright grey
21 21 21
#Grey
21 21 63
#Bright blue
21 63 21
#Bright green
21 63 63
#Bright cyan
63 21 21
#Bright red
63 21 63
#Bright magenta/pink
63 63 21
#Yellow
63 63 63
#White
#Set the palette stuff
%patch $2FE0 $E8 $58 $E5 $90 $90 %patch $153A $C3 $B8 $0D $00 $CD $10 $B8 $12 $10 $B9 $0008W $BB $00 $00 $8C $DA $8E $C2 $BA $04 $00 $CD $10 $BB $18 $00 $BA $1C $00 $CD $10 $C3


New color patch

The new palette patches allow a modifiable palette that also fades smoothly to and from black. This is unlike the default palette, which fades in stages involving the simple swapping around of colors. This makes it far more versatile. There are two palettes, one for normal gameplay, and the other, for when the lights are turned off.

These patches invalidate the screen-fading patches in the next section since they use an alternate means of changing the colors. Note that when the palette is fading in or out, sprites are frozen (when starting a level they do not appear) until the fade is completed.

Aside from the two palettes, there are four editable values, marked in red; the last two values are the delays before the palette swap when the lights are turned on or off. As above, the game freezes for this long when the switch is flipped.

The first two are the fade-in/fade-out intensities, and can be made smaller or larger to change the fade times. If made smaller, the fade will not go completely to black (if made half as large, it will fade half to black; that is, if made small enough, the screen will not fade, but merely dim before switching). If made larger, the screen will fade to black and stay black for a certain amount of time.

There are two patches to choose from, a "normal speed" and a "double speed" patch (for those who want a fade-in/out time closer to the original without having to settle for a partially dimmed screen). The code common to both patches is listed first, you will need it in addition to one of the following sections, labeled appropriately. Of course, highlighted values have the same function in both patches.

Patch: Keen 1, common code:
#New palette patch
#First palette; modified
%patch $21850 00 00 00
#black
00 00 42
#blue
00 42 00
#green
00 42 42
#cyan
42 00 00
#red
42 00 42
#magenta
42 21 00
#brown
42 42 42
#bright gray
21 21 21
#gray
21 21 63
#bright blue
21 63 21
#bright green
21 63 63
#bright cyan
63 21 21
#bright red
63 21 63
#pink
63 63 21
#yellow
63 63 63
#white
#Lights out palette
00 00 00
#black
00 00 42
#blue
00 21 00
#green
00 21 42
#cyan
21 00 00
#red
21 00 42
#magenta
21 10 00
#brown
21 21 42
#bright gray
10 10 21
#gray
10 10 63
#bright blue
10 42 21
#bright green
10 42 63
#bright cyan
42 10 21
#bright red
42 10 63
#pink
42 42 21
#yellow
63 63 63
#white
#----------------------------------------------------------------------------
#Set EGA color register values for VGA pass-through
%patch $1558B $00 $01 $02 $03 $04 $05 $06 $07 $08 $09 $0A $0B $0C $0D $0E $0F $03

Patch: Slow fade code
#Set the palette when we go into graphics mode
%patch $6E46 $E8 $60 $FE $90 $90
#Code to set graphics mode and set the palette
%patch $6CA9 $B8 $0D $00 $CD $10 $B8 $13 $10 $BB $00 $01 $CD $10 $B8 $02 $10 $1E $07 $BA $3B $25 $CD $10 $B8 $12 $10 $B9 $20 $00 $31 $DB $BA $00 $E8 $CD $10 $C3
#support functions
%patch $5B3D $BA $DA $03 $EC $A8 $08 $75 $FB $EC $A8 $08 $74 $FB $C3 $55 $89 $E5 $E8 $EC $FF $BA $DA $03 $EC $BA $C0 $03 $EC $50 $B0 $14 $EE $8B $46 $04 $EE $58 $EE $89 $EC $5D $C3 $55 $89 $E5 $83 $EC $08 $31 $C0 $31 $DB $89 $46 $F8 $8A $87 $00 $E8 $2A $46 $04 $73 $02 $31 $C0 $89 $46 $FA $43 $8A $87 $00 $E8 $2A $46 $04 $73 $02 $31 $C0 $89 $46 $FC $43 $8A $87 $00 $E8 $2A $46 $04 $73 $02 $31 $C0 $89 $46 $FE $43 $E8 $B7 $10 $FF $46 $F8 $83 $FB $60 $75 $C8 $89 $EC $5D $C3 %patch $6C5B $55 $89 $E5 $BA $C8 $03 $8B $46 $04 $EE $BA $C9 $03 $8B $46 $06 $EE $8B $46 $08 $EE $8B $46 $0A $EE $89 $EC $5D $C3
#VGA palette fading
#fade in
%patch $6C49 $B9 $40 $00 $E8 $EE $EE $89 $C8 $48 $50 $E8 $11 $EF $44 $44 $E2 $F2 $C3
#fade out
%patch $6C8D $B9 $40 $00 $E8 $AA $EE $B8 $40 $00 $29 $C8 $50 $E8 $CB $EE $44 $44 $E2 $F0 $31 $C0 $50 $E8 $A5 $EE $44 $44 $C3
#VGA lights on and off
%patch $3592 $C7 $06 $1E $82 $01 $00 $B8 $01 $00 $50 $E8 $43 $8B $44 $44 $31 $C0 $50 $E8 $A4 $25 $44 $44 $C3 %patch $35B2 $C7 $06 $1E $82 $00 $00 $B8 $01 $00 $50 $E8 $23 $8B $44 $44 $B8 $01 $00 $50 $E8 $83 $25 $44 $44 $C3

Patch: Fast fade code
#Set the palette when we go into graphics mode
%patch $6E46 $E8 $64 $FE $90 $90
#Code to set graphics mode and set the palette
%patch $6CAD $B8 $0D $00 $CD $10 $B8 $13 $10 $BB $00 $01 $CD $10 $B8 $02 $10 $1E $07 $BA $3B $25 $CD $10 $B8 $12 $10 $B9 $20 $00 $31 $DB $BA $00 $E8 $CD $10 $C3
#support functions
%patch $5B3D $BA $DA $03 $EC $A8 $08 $75 $FB $EC $A8 $08 $74 $FB $C3 $55 $89 $E5 $E8 $EC $FF $BA $DA $03 $EC $BA $C0 $03 $EC $50 $B0 $14 $EE $8B $46 $04 $EE $58 $EE $89 $EC $5D $C3 $55 $89 $E5 $83 $EC $08 $31 $C0 $31 $DB $89 $46 $F8 $8A $87 $00 $E8 $2A $46 $04 $73 $02 $31 $C0 $89 $46 $FA $43 $8A $87 $00 $E8 $2A $46 $04 $73 $02 $31 $C0 $89 $46 $FC $43 $8A $87 $00 $E8 $2A $46 $04 $73 $02 $31 $C0 $89 $46 $FE $43 $E8 $B9 $10 $FF $46 $F8 $83 $FB $60 $75 $C8 $89 $EC $5D $C3 %patch $6C5D $55 $89 $E5 $BA $C8 $03 $8B $46 $04 $EE $BA $C9 $03 $8B $46 $06 $EE $8B $46 $08 $EE $8B $46 $0A $EE $89 $EC $5D $C3
#VGA palette fading
#fade in
%patch $6C49 $B9 $20 $00 $E8 $EE $EE $89 $C8 $D1 $E0 $48 $50 $E8 $0F $EF $44 $44 $E2 $F0 $C3
#fade out
%patch $6C8D $B9 $20 $00 $E8 $AA $EE $B8 $40 $00 $D1 $E1 $29 $C8 $50 $E8 $C9 $EE $44 $44 $D1 $E9 $E2 $EC $31 $C0 $50 $E8 $A1 $EE $44 $44 $C3
#VGA lights
%patch $3592 $C7 $06 $1E $82 $01 $00 $B8 $01 $00 $50 $E8 $43 $8B $44 $44 $31 $C0 $50 $E8 $A4 $25 $44 $44 $C3 %patch $35B2 $C7 $06 $1E $82 $00 $00 $B8 $01 $00 $50 $E8 $23 $8B $44 $44 $B8 $01 $00 $50 $E8 $83 $25 $44 $44 $C3


Change palettes

This section deals with patches that change not the colors themselves, but how the colors are assigned to one of 16 "color values". The game reads graphics as EGA data of four planes, red, green, blue, and bright (Intensity) each plane has a value of 4, 2, 1 and 24), respectively. When this is done, the following values represent each color (in hex):

$1F, white       $1E, yellow       $1D, light purple  $1C, light red
$1B, light teal  $1A, light green  $19, light blue    $18, dark grey (light black)
$17, white       $16, yellow       $15, light purple  $14, light red
$13, light teal  $12, light green  $11, light blue    $10, dark grey (light black)
$0F, light grey  $0E, brown        $0D, dark purple   $0C, dark red
$0B, dark teal   $0A, dark green   $09, dark blue     $08, black
$07, light grey  $06, brown        $05, dark purple   $04, dark red
$03, dark teal   $02, dark green   $01, dark blue     $00, black

Notice that the colors between 08-17 are not used much in normal palettes, and have a different order than the remaining colors, for reasons not entirely clear. It is possible that these colors are only useful in certain conditions or display modes. (It is notable that they are used in Keen 4 for the 'terminator text' palettes.)

What is often considered to be the "normal" gameplay palette simply assigns the preset EGA colors logically to the values given by the color planes. Thus, color 0 is given value 0 (black) and color 6 is given value 6 (purple). But it is possible to assign the colors in many possible ways. As an example, the "lights out" palette in Keen Vorticons gives all the light color slots dark color values, and all the dark color slots the value 0 (black), making it look as if the game has become significantly darker.

Palettes here then consist of 17 values, 16 EGA values and one border color value (not often seen in modern systems due to different screen resolutions and the like). To see what color you are changing in a palette, just look at what number it is in the 'normal' palette.


Palettes

Patch: Keen 1
#Default palettes:
%patch $15558 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $03
#Black screen
%patch $15569 $00 $00 $00 $00 $00 $00 $00 $00 $00 $01 $02 $03 $04 $05 $06 $07 $03
#Fade 2 (Used by lights off too)
%patch $1557A $00 $00 $00 $00 $00 $00 $00 $00 $18 $19 $1A $1B $1C $1D $1E $1F $03
#Fade 1
%patch $1558B $00 $01 $02 $03 $04 $05 $06 $07 $18 $19 $1A $1B $1C $1D $1E $1F $03
#"Normal" colors
#Border colors:
%patch $4A62 $03
#Color after killing a vorticon
%patch $6F9D $03
#Color after killing vorticon commander
%patch $4A7D $0E
#Color 1 while Vorticon is dying
%patch $4A85 $03
#Color 2 while Vorticon is dying

Patch: Keen 2
#Default palettes:
%patch $19BE8 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $03
#Black screen
%patch $19BF9 $00 $00 $00 $00 $00 $00 $00 $00 $00 $01 $02 $03 $04 $05 $06 $07 $03
#Fade 2 (Used by lights off too)
%patch $19C0A $00 $00 $00 $00 $00 $00 $00 $00 $18 $19 $1A $1B $1C $1D $1E $1F $03
#Fade 1
%patch $19C1B $00 $01 $02 $03 $04 $05 $06 $07 $18 $19 $1A $1B $1C $1D $1E $1F $03
#"Normal" colors
#Border colors:
%patch $319C $03
#Color after killing a vorticon
%patch $77C6 $03
#Color after killing a Tantalus ray
%patch $77E1 $0E
#Color as Tantalus dies 1
%patch $77E9 $03
#Color as Tantalus dies 2

Patch: Keen 3
#Default palettes:
%patch $1BD84 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $03
#Black screen
%patch $1BD95 $00 $00 $00 $00 $00 $00 $00 $00 $00 $01 $02 $03 $04 $05 $06 $07 $03
#Fade 2 (Used by lights off too)
%patch $1BDA6 $00 $00 $00 $00 $00 $00 $00 $00 $18 $19 $1A $1B $1C $1D $1E $1F $03
#Fade 1
%patch $1BDB7 $00 $01 $02 $03 $04 $05 $06 $07 $18 $19 $1A $1B $1C $1D $1E $1F $03
#"Normal" colors
%patch $1C072 $18 $19 $1A $1B $1C $1D $1E $1F $18 $19 $1A $1B $1C $1D $1E $1F $03
#Vorticon press take pictures at end palette
#Border colors:
%patch $8080 $0E
#When a purple spark dies 1
%patch $808A $03
#When a purple spark dies 2
%patch $3131 $03
#After killing a Vorticon

Patch: Keen 4
#Default palettes
%patch $33D24 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
#Black
%patch $33D35 $00 $00 $00 $00 $00 $00 $00 $00 $00 $01 $02 $03 $04 $05 $06 $07 $00
#Fade 2
%patch $33D46 $00 $00 $00 $00 $00 $00 $00 $00 $18 $19 $1A $1B $1C $1D $1E $1F $00
#Fade 1
%patch $33D57 $00 $01 $02 $03 $04 $05 $06 $07 $18 $19 $1A $1B $1C $1D $1E $1F $00
#Normal gameplay
%patch $33D68 $00 $01 $02 $03 $04 $05 $06 $07 $1F $1F $1F $1F $1F $1F $1F $1F $1F
#Fading to white
%patch $33D79 $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $00
#White
%patch $33D8A $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
#Unknown (Black)
#Story background palette:
%patch $2F05E $00 $01 $02 $03 $04 $10 $06 $07
#Dark colors
$1F $1F $1F $1F $1F $1F $1F $1F $00
#Light colors (and border color)
#Terminator text palette:
%patch $2F078 $00 $18 $18 $07 $01 $01 $01 $01
#Dark colors
$11 $11 $11 $11 $13 $13 $13 $13 $00
#Light colors (and border color)
#Terminator text palette 2, screen moves out:
%patch $2F088 $00 $00 $18 $18 $07 $01 $01 $01
#Dark colors
$01 $11 $11 $11 $11 $13 $13 $13 $00
#Light colors (and border color)
#Where palettes are read from:
%patch $581B $01EEW
#Story palette


Patch: Keen 5
%patch $366F4  $00 $00 $00 $00 $00 $00 $00 $00  $00 $00 $00 $00 $00 $00 $00 $00  $00 
#Black
%patch $34705 $00 $00 $00 $00 $00 $00 $00 $00 $00 $01 $02 $03 $04 $05 $06 $07 $00
#Fade 2
%patch $34716 $00 $00 $00 $00 $00 $00 $00 $00 $18 $19 $1A $1B $1C $1D $1E $1F $00
#Fade 1
%patch $34727 $00 $01 $02 $03 $04 $05 $06 $07 $18 $19 $1A $1B $1C $1D $1E $1F $00
#Normal gameplay
%patch $34738 $00 $01 $02 $03 $04 $05 $06 $07 $1F $1F $1F $1F $1F $1F $1F $1F $00
#Fading to white
%patch $34749 $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F
#White
%patch $3475A $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
#Unknown (Black)
%patch $31BE2 $00 $01 $02 $03 $04 $05 $06 $07 $18 $19 $1A $1B $1C $1D $1E $1F $03
#Game over 1 (Normal-ish)
#Story background palette:
%patch $304DE $00 $01 $18 $1E $1F $1C $06 $07
#Dark colors
$13 $13 $13 $13 $13 $13 $13 $13 $00
#Light colors (and border color)
#Terminator text palette:
%patch $304F8 $00 $04 $04 $1C $01 $01 $01 $01
#Dark colors
$11 $11 $11 $11 $13 $13 $13 $13 $00
#Light colors (and border color)
#Terminator text palette 2, screen moves out:
%patch $30509 $00 $04 $04 $1C $01 $01 $01 $01
#Dark colors
$11 $11 $11 $11 $13 $13 $13 $04 $00
#Light colors (and border color)
#Where palettes are read from:
%patch $5815 $019EW
#Story palette


Patch: Keen 6
%patch $3571C  $00 $00 $00 $00 $00 $00 $00 $00  $00 $00 $00 $00 $00 $00 $00 $00  $00 
#Black
%patch $3572D $00 $00 $00 $00 $00 $00 $00 $00 $00 $01 $02 $03 $04 $05 $06 $07 $00
#Fade 2
%patch $3573E $00 $00 $00 $00 $00 $00 $00 $00 $18 $19 $1A $1B $1C $1D $1E $1F $00
#Fade 1
%patch $3574F $00 $01 $02 $03 $04 $05 $06 $07 $18 $19 $1A $1B $1C $1D $1E $1F $00
#Normal gameplay
%patch $35760 $00 $01 $02 $03 $04 $05 $06 $07 $1F $1F $1F $1F $1F $1F $1F $1F $00
#Fading to white
%patch $35771 $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F $1F
#White
%patch $35782 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00 $00
#Unknown (Black)
#Story background palette:
%patch $30E62 $00 $01 $18 $19 $04 $1C $06 $07
#Dark colors
$1F $1F $1F $1F $1F $1F $1F $1F $00
#Light colors (and border color)
#Terminator text palette:
%patch $30E7C $00 $05 $05 $15 $01 $01 $01 $01
#Dark colors
$11 $11 $11 $11 $13 $13 $13 $13 $00
#Light colors (and border color)
#Terminator text palette 2, screen moves out:
%patch $30E8D $00 $05 $05 $15 $01 $01 $01 $01
#Dark colors
$11 $11 $11 $11 $13 $13 $13 $05 $00
#Light colors (and border color)
#Where palettes are read from:
%patch $5624 $0132W
#Story palette


Custom lights off palette

By default, the lights off colors in Keen 1–3 use the second (darkest) fade-out palette. It is possible however to make a new palette for when the are lights off and use that instead. The palette is set up identically to the palettes above.

There are also locations where various palettes are used. These are pointers, as outlined in Patch:Text patches. Changing these allows you to create different fading effects, which can be quite striking, though hard to do well. (Experimentation is vital.) It is also possible to add even more custom palettes.

Like the screen fading palette patches, these patches are made invalid by the new palette patches in the first section. The method used here can also be used to make custom palettes for other uses.

Patch: Keen 1
#Make a new palette for lights off:
%patch $19824 $1F $1F $1F $1F $1F $1F $1F $1F $00 $00 $00 $00 $00 $00 $00 $00 $00 %patch $35C9 $34 $00
#Make Lights off use new palette

Patch: Keen 2
#Make a new palette for lights off:</font>
%patch $19824 $1F $1F $1F $1F $1F $1F $1F $1F $00 $00 $00 $00 $00 $00 $00 $00 $00 %patch $640B $44 $00
#Make Lights off use new palette

Patch: Keen 3
#Make a new palette for lights off:
%patch $19824 $1F $1F $1F $1F $1F $1F $1F $1F $00 $00 $00 $00 $00 $00 $00 $00 $00 %patch $6C6C $04 $00
#Make Lights off use new palette


Misc palette patches

These are odds-and-ends of patches. See also Patch:Terminator text. Mostly these are screen fades, which can be tweaked in interesting ways.

Patch: Keen 1
#Other things palettes are used for:
%patch $6C5A $2508W
#Fade palette used 1 (Black)
%patch $6C6F $2519W
#Fade palette used 2 (Dark)
%patch $6C9E $253BW
#Fade palette used 3 (Normal)
%patch $6CB3 $252AW
#Fade palette used 4 (Very dark)
%patch $6CC8 $2519W
#Fade palette used 5 (Dark)

Patch: Keen 2
#Other things palettes are used for:
%patch $2E92 $249BW
#Normal palette (Normal)
%patch $640B $2479W
#Lights off palette (Dark)
%patch $63EB $249BW
#Lights on palette (Normal)
%patch $2E68 $2468W
#Fade IN 1 (Black)
%patch $2E7D $2479W
#Fade IN 2 (Dark)
%patch $2EAC $249BW
#Fade OUT 1 (Normal)
%patch $2EC1 $248AW
#Fade OUT 2 (Light)
%patch $2ED6 $2479W
#Fade OUT 3 (Dark)
%patch $2EEB $2468W
#Fade OUT 4 (Black)

Patch: Keen 3
#Other things palettes are used for:
%patch $2E42 $2597W
#Lightest fade color (Appears normal)
%patch $2E56 $2586W
#Light fade (2nd palette in fadeout)
%patch $2E6A $2575W
#Dark fade (3rd color in fadeout)
%patch $2E15 $2564W
#Dark fade color (2nd color in fadeIN)
%patch $5A15 $2852W
#Flash as Vorterazi take pictures
%patch $5A44 $2597W
#Return to normal palette after
%patch $6C6C $2575W
#When lights are switched OFF
%patch $6C4D $2597W
#When lights are turned ON


Palette change speed

These patches control how fast palettes switch. When the screen is changing, all action freezes, this is obvious if the change speed is made long enough.

Patch: Keen 1
#How fast palettes change:
%patch $6C91 $0001W
#Pause BEFORE palettes change 1
%patch $6C4D $0001W
#Black screen between light->dark and dark->light
%patch $6C77 $0008W
#Speed palettes change 1
%patch $6CA6 $0008W
#Speed palettes change 2
%patch $6C62 $0008W
#Speed palettes change 3
%patch $6CBB $0008W
#Speed palettes change 4
%patch $6CD0 $0008W
#Speed palettes change 5

Patch: Keen 2
#How fast palettes change:
%patch $63DE $0001W
#Lights off
%patch $63FE $0001W
#Lights on
%patch $2E70 $0008W
#Fade IN 1
%patch $2E85 $0008W
#Fade IN 2
%patch $2E9F $0001W
#Fade OUT 0 (This is "extra" used during "flashes")
%patch $2EB4 $0008W
#Fade OUT 1
%patch $2EC9 $0008W
#Fade OUT 2
%patch $2EDE $0008W
#Fade OUT 3
%patch $2E5B $0001W
#Fade OUT 4

Patch: Keen 3
#How fast palettes change:
%patch $2E1D $0008W
#Fade *in* dark
%patch $2E4A $0008W
#'Normal'
%patch $2E5E $0008W
#Light fade
%patch $2E72 $0008W
#Dark fade
%patch $2E09 $0008W
#Black


V 2 palette addon

This is an advanced palette patch intended for use with the V 2 tileset patch. The features it allows include:

  • Each level can have its own palette
  • Color cycling
  • Smoother fades and custom colors when lights are turned out

The original patch (A link to which can be found in the 'external links' section of this page.) relies on a number of external files and is thus quite compact. As such the patch is not given here as it is too unwieldy and complicated. It should also be noted that it overwrites, and is thus incompatible with, the original V 2 patch.


External Links