Custom colors

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

Custom colors

Post by levellass » Tue Nov 14, 2017 9:04 pm

So I've been poking around the games a lot lately, trying to make patches since I don't have time to mod. While doing so for Bubzrulz I found some Galaxy code that was very similar to Vorticons code. Specifically in how it handled graphics.Even more specifically it would allow me to easily change the EGA colors, which I hadn't bothered to even attempt since earlier questions on this topic had resulted in someone linking a program that manually changed colors before the game even loaded. So I had assumed it was very difficult.

In fact it is not.

https://www.youtube.com/watch?v=umFZJ12VyX4

As such this patch allows you to change the 16 default colors used in Keen 4:

Code: Select all

#This is the color palette: 16 entries of r, g, b (each 0–63)
%patch $2EE74 
       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 $3CE5  $90 $90
%patch $1D130 $9A $037D0526RL
%patch $3CF6  $B8 $000DW  $10CDW  $B8 $1012W  $B9 $0008W  $BB $0000W  $8C $DA
              $8E $C2 $BA $0004W  $10CDW  $BB $0018W  $BA $001CW  $10CDW  $CB
The patch for Keen 5 can be found here: http://www.shikadi.net/keenwiki/Patch:P ... olor_patch and Keen 6 and Dreams too can be altered in such a way, I'm just too lazy to do so right now.

User avatar
Nisaba
Posts: 212
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Re: Custom colors

Post by Nisaba » Tue Nov 14, 2017 10:32 pm

that's neat! haven't got the time to test thing ATM, so I need to ask: is it possible to change colours in game. let's say level one uses this colour pallet, level two another nuance, and so forth.

levellass
Posts: 2782
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Custom colors

Post by levellass » Wed Nov 15, 2017 9:22 pm

Not as far as I'm aware, I think that requires setting up VGA mode. I'd actually need to investigate a little more to be sure though.

Post Reply