Customizble colors

Completed patches for Keen Dreams.
Post Reply
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Customizble colors

Post by levellass »

Found while looking for a solution to a pesky blue screen. This patch allows you to create a custom palette for Keen Dreams:

Code: Select all

#Clear screen before title loads
%patch $4395 $9A $0CA500FFRL     $9A $0CA5014DRL     $E9 $0107W

#This is the color palette: 16 entries of r, g, b (each 0–63)
%patch $23A74 
       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
%patch $CB09 $9A $0CA5019BRL
%patch $CBEB $B8 $000DW  $10CDW  $B8 $1012W  $B9 $0008W  $BB $0000W  $8C $DA
             $8E $C2 $BA $0004W  $10CDW  $BB $0018W  $BA $001CW  $10CDW  $CB
Last edited by levellass on Fri Nov 15, 2019 1:57 am, edited 1 time in total.
User avatar
szemigi
Posts: 716
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Customizble colors

Post by szemigi »

Could you modify the palette patch for me to have CGA colors?
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Customizble colors

Post by levellass »

Yes, but I found an interesting problem with the patch in Keen Dreams. It seems the game starts in EGA mode and doesn't 'pick up' all the colors correctly unless the start screen also uses CGA colors (It uses stuff like red and yellow.)

EDIT: Fixed the patch to reflect colors properly.

If you want a proper CGA Keen you'll probably want to edit the graphics since more than just altering colors differs between the EGA and CGA Keen Dreams versions. Special CGA graphics were made to look good with the palette.

Code: Select all

#Clear screen before title loads
%patch $4395 $9A $0CA500FFRL     $9A $0CA5014DRL     $E9 $0107W

#CGA-style graphics
#This is the color palette: 16 entries of r, g, b (each 0–63)
%patch $23A74 
       00 00 00  #Black
       00 00 00  #Blue
       00 00 00  #Green
       21 63 63  #Cyan
       00 00 00  #Red
       63 21 63  #Magenta
       63 21 63  #Brown
       63 63 63  #Bright grey
       00 00 00  #Grey
       21 63 63  #Bright blue
       21 63 63  #Bright green
       21 63 63  #Bright cyan
       63 63 63  #Bright red
       63 21 63  #Bright magenta/pink
       63 63 63  #Yellow
       63 63 63  #White

#Set the palette
%patch $CB09 $9A $0CA5019BRL
%patch $CBEB $B8 $000DW  $10CDW  $B8 $1012W  $B9 $0008W  $BB $0000W  $8C $DA
             $8E $C2 $BA $0004W  $10CDW  $BB $0018W  $BA $001CW  $10CDW  $CB
Post Reply