Change the palettes [not colors!]

Completed patches for Keen3.
Post Reply
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Change the palettes [not colors!]

Post by levellord »

A keen 3 version of the Keen 2 'change the palettes for fading in/out In fact, I did all 3 [Note the Keen 1 patch is compatible with the colorchanging patch avalible]

To see what colors turn into what, just look at the last palette, then move upwards. For example $03 in the bottom patch [dark teal] turns straight to black]

Note that as well as a custom palette for 'lights off' it is also possible to make the fade in and fade out palettes different. If anyone wants this kind of patch, just ask.

Code: Select all

#Keen 1:

#Change the palette colours; there are 4 default palettes, you can create and use
#a new pallette for the lights off, or four new palettes for fading in/out
#[fade in/out and lights defualt use the same palettes] the last value is the
#Border color used with the palette
#Colors as follows: $1F, white; $1E, yellow; $19, light purple; $1C, light red; 
#                   $1B, light teal; $1A, light green; $19, light blue; $19, light green
#                   $07, light grey; $06, brown; $05, dark purple; $04, dark red
#                   $03, dark teal; $02 dark green; $01, dark grey  $00, black

#Four border colors not found in the palette:
%patch $4A62 $03 #Color after killing a vorticon
%patch $6F9D $03 #Color after killing vorticon commander
# The two colors that the border flashes when a Vorticon dies 
%patch $4A7D $0E 
%patch $4A85 $03

#Default palettes:
%patch $15558  $00 $00 $00 $00 $00 $00 $00 $00  $00 $00 $00 $00 $00 $00 $00 $00 $03 #Black
%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]
%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' colours

#Make a new palette for lights off:
%patch $13054  $1F $1F $1F $1F $1F $1F $1F $1F  $00 $00 $00 $00 $00 $00 $00 $00 $00
# Make Lights off use the new palette 
%patch $35C9  $04 $00 


#Keen 2:

#Four border colors not found in the palette:
%patch $319C $03 #Color after killing a vorticon
%patch $77C6 $03 #Color after killing a tantalus ray
# The two colors that the border flashes when tantalus dies
%patch $77E1 $0E 
%patch $77E9 $03

#Default palettes:
%patch $19BE8  $00 $00 $00 $00 $00 $00 $00 $00  $00 $00 $00 $00 $00 $00 $00 $00 $03 #Black
%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]
%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' colours

#Make a new palette for lights off:
%patch $17784  $1F $1F $1F $1F $1F $1F $1F $1F  $00 $00 $00 $00 $00 $00 $00 $00 $00
# Make Lights off use the new palette 
%patch $640B  $04 $00 


#Keen 3:

#Three border colors not found in the palette:
# The two colors that the border flashes when Keen shotts a purple spark
%patch $8080 $0E #Brown
%patch $808A $03 #dark teal
%patch $3131 $03 #Color after killing a vorticon

#Default palettes:
%patch $1BD84  $00 $00 $00 $00 $00 $00 $00 $00  $00 $00 $00 $00 $00 $00 $00  $00 $03 #Black
%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]
%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' colours

#Make a new palette for lights off:
%patch $19854  $1F $1F $1F $1F $1F $1F $1F $1F  $00 $00 $00 $00 $00 $00 $00 $00  $00
# Make Lights off use the new palette 
%patch $6C6C  $34 $00 
Enjoy!
Last edited by levellord on Tue Aug 08, 2006 6:39 am, edited 2 times in total.
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

*slap!*

Silly me! Forgot the palette the vortico reporters use when snapshotting Keen!

Code: Select all

%patch $1C072  $18 $19 $1A $1B $1C $1D $1E $1F  $18 $19 $1A $1B $1C $1D $1E  $1F $03 #Vort paprazi take pics

#This is what palette the Vorticon press uses; $04 $00 uses new palette
%patch $5A15  $52 $28 
Last edited by levellord on Tue Aug 08, 2006 9:20 am, edited 1 time in total.
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

EDIT: Made 2 mistakes, one with a palettes location, another about where the palette is read from.

However, due to a request by stealthy I have looked up where all the palettes are read from. Firstly, what values used for each palette:

Code: Select all

#Palette values:
# $52 $28 Vorticon press taking pictures [Lighter]
# $97 $25 Normal
# $86 $25 Light fade
# $75 $25 Dark fade [lightswitch off]
# $64 $25 Pitch black
# $04 $00 Custom palette [If you have one]
Now where the palettes are read from. You can use the above values in these locations to do a number of interesting things, such as get rid of those pesky fadein/outs or make the lightswitch make things *brighter*

Code: Select all

#Normal palette, [used for menu, levels, etc]
%patch $2E29 $97 $25

#Fadeout/in When fading out the palettes used are 'normal' 'light' 'dark' and black
#When fading in *from* black,olny one is used 'dark'
#Lightest fade color [Same as 'normal' used at start of fadeOUT]
%patch $2E42 $97 $25
#Light fade [2nd palette in fadeout]
%patch $2E56 $86 $25
#Dark fade [3rd color in fadeout]
%patch $2E6A $52 $28

#Dark fade color [2nd color in fadeIN]
%patch $2E15 $64 $25

#Vorticon press taking pictures [Bright flash]
%patch $5A15  $52 $28 
#After vorticon press take picutres.
%patch $5A44 $97 $25

#When lights are switched OFF
%patch $6C6C $75 $25
#When lights are turned ON
%patch $6C4D $97 $25
Finally, how long that fadein/out lasts:

Code: Select all

#How long each palette lasts in fade in/out:
%patch $2E1D $08 $00 #Fade *in* dark

%patch $2E4A $08 $00 #'Normal'
%patch $2E5E $08 $00 #Light fade
%patch $2E72 $08 $00 #Dark fade
%patch $2E09 $08 $00 #Black
Enjoy!
Post Reply