Patch:Files and filenames

From KeenWiki
Jump to: navigation, search

This page deals with patches that affect the files Keen uses and their names. It does not cover any patches for specific files, such as the status window patch or utilities used to edit files such as ModKeen, Keengraph or Fin2bmp. It also does not deal with file formats, which are covered in the modding wiki.


Changing filenames

These patches allow a modder to change what files the game looks for, in effect renaming the files. Be sure that you rename your files when using these patches, otherwise the game may think a file is missing. These are text patches so you may want to see Patch:Text patches for details.


Vorticons

The system of filenames in Keen Vorticons is complicated. Each filename consists of two parts, the call and the text. (See details at Patch:Text patches.) Furthermre the following notes apply to various filenames:

Basic filenames These filenames consist of the entire filename, plus extension, e.g. FINALE.CK1. The last four characters are the point and extension. (So filenames like FINALE.CK don't work.) Changing the filename will not affect any other filenames.

Extensionless filenames These filenames behave like basic filenames except that they lack the file extension. They may or may not include a point ('.'; a difference that should be carefully noted.) The full filename will have the file extension added to it. (Thus SCORES. means the filename SCORES.xxx.)

File extension This three letter string controls the extension of all filenames that don't have an extension. (That is, most of those used by the game.) For Keen Vorticons this is CKx. Changing this will affect all of the filenames of extensionless files except EGAHEAD, EGASPRIT and EGALATCH. (For unknown reasons.)

Series filenames These filenames control more than one filename. They are all extensionless. An example is the level filenames, which consist of two series. The first, for levels below 10 is LEVEL0, the second LEVEL. Here the ful name is the filename, plus a nonzero number plus the extension.

Patch: Keen 1
#File extension
%patch $12DB $1EC9W %patch $14F19 "CK1" $00
#Filenames
%patch $14D9C "LEVEL0" $00
#LEVEL0x.CK1
%patch $14DA3 "LEVEL" $00
#LEVELxx.CK1
%patch $14DD4 "KEENSCRN.PIC" $00
#Screenshot file
%patch $1506B "SOUNDS" $00
#Sounds
%patch $1590B "ENDTEXT." $00
#End text
%patch $158FE "HELPTEXT." $00
#Help text
%patch $16138 "SAVED" $00
#Load game
%patch $16145 "SAVED" $00
#Saved game
#Settings name
%patch $6662 $27C4W
#Text called from (Load)
%patch $67AE $27CEW
#Text called from (Save)
%patch $15814 "CTLPANEL." $00
#Load settings as
%patch $1581E "CTLPANEL." $00
#Save settings as
#Sounds name
%patch $1558 $201EW %patch $1506E "SOUNDS." $00
#Graphics header name
%patch $6CFF $2871W %patch $158C1 "EGAHEAD." $00
#Unmasked graphics name
%patch $6E00 $287AW %patch $158CA "EGALATCH." $00
#Sprites graphics name
%patch $6FC1 $2884W %patch $158D4 "EGASPRIT." $00
#Finale graphics name
%patch $853D $2C62W %patch $15CB2 "FINALE.CK1" $00
#Story text
%patch $795B $28C8W %patch $15918 "STORYTXT." $00
#Previews text
%patch $7977 $28D5W %patch $15925 "PREVIEWS." $00
#First Previews image
%patch $96E6 $3116W %patch $16166 "PREVIEW2.CK1" $00
#Second Previews image
%patch $96FE $3123W %patch $16173 "PREVIEW3.CK1" $00
#Load scores from
%patch $7921 $28E2W %patch $15932 "SCORES." $00
#Save scores to
%patch $8AEE $2AB6W %patch $15B06 "SCORES." $00


Patch: Keen 2
#File extension
%patch $1295 $2287W %patch $19A07 "CK2" $00
#Filenames
%patch $19874 "LEVEL0" $00
#LEVEL0x.CK2
%patch $1987B "LEVEL" $00
#LEVELxx.CK2
%patch $198AC "KEENSCRN.PIC" $00
#Screenshot file
%patch $1A90C "SAVED" $00
#load game
%patch $1A919 "SAVED" $00
#save game
%patch $1A2EC "finale.ck2" $00
#End game image
#Settings name
%patch $2C35 $2724W
#Text called from (Load)
%patch $2D81 $272EW
#Text called from (Save)
%patch $19EA4 "CTLPANEL." $00
#Load settings as
%patch $19EAE "CTLPANEL." $00
#Save settings as
#Graphics header name
%patch $2F0D $2738W %patch $19EB8 "EGAHEAD." $00
#Unmasked graphics name
%patch $300E $2741W %patch $19EC1 "EGALATCH." $00
#Sprites graphics name
%patch $31C0 $274BW %patch $19ECB "EGASPRIT." $00
#Story text (Not used)
%patch $7D77 $2D30W %patch $1A4B0 "STORYTXT." $00
#Previews text (Not used)
%patch $7D93 $2D3DW %patch $1A4BD "PREVIEWS." $00
#Load scores from
%patch $7D3D $2D4AW %patch $1A4CA "SCORES." $00
#Save scores to
%patch $85A5 $2D95W %patch $1A515 "SCORES." $00


Patch: Keen 3
#File extension
%patch $1236 $2383W %patch $1BBA3 "CK3" $00
#Filenames
%patch $1BA4C "LEVEL0" $00
#LEVEL0x.CK3
%patch $1BA53 "LEVEL" $00
#LEVELxx.CK3
%patch $1C4FC "finale.ck3" $00
#End game image
#Settings name
%patch $2BD5 $2820W
#Text called from (Load)
%patch $2D1E $282AW
#Text called from (Save)
%patch $1C040 "CTLPANEL." $00
#Load settings as
%patch $1C04A "CTLPANEL." $00
#Save settings as
#Graphics header name
%patch $2F0D $2738W %patch $19EB8 "EGAHEAD." $00
#Unmasked graphics name
%patch $2FAC $283DW %patch $1C05D "EGALATCH." $00
#Sprites graphics name
%patch $31C0 $274BW %patch $19ECB "EGASPRIT." $00
#Story text (Not used)
%patch $868A $2D6AW %patch $1C58A "STORYTXT." $00
#Previews text (Not used)
%patch $86A4 $2D77W %patch $1C597 "PREVIEWS." $00
#Screenshot file
%patch $0CA9 $2264W %patch $1BA84 "KEENSCRN.PIC" $00
#Record demo as
%patch $20E3 $27DDW %patch $1BFFD "DEMO" $00 "."
#Load demo as
%patch $2154 $27E4W %patch $1C004 "DEMO" $00 "."
#Save game to
%patch $A2BD $3208W %patch $1CA28 "SAVED?." $00
#Load game from
%patch $A44D $3215W %patch $1CA35 "SAVED?." $00
#Load scores from
%patch $8652 $2D84W %patch $1C5A4 "SCORES." $00
#Save scores to
%patch $9478 $2E37W %patch $1C657 "SCORES." $00


Dreams

Patch: Keen Dreams
#Filenames:
%patch $23C1B "LAST.SHL" $00
#Slib library
%patch $23C2F "LOADSCN.EXE" $00
#Slib loader
%patch $23C24 "ENDSCN.SCN" $00
#Ending DOS screen file in slib
%patch $28BD9 "SAVEGM" $00
#Save game files
%patch $28BE0 ".KDR" $00
#File extension
%patch $23DFD "KDREAMS.CMP" $00
#Title screen archive
%patch $23E23 "TITLESCR.LBM" $00
#Title screen archive
#Filename text:
%patch $23C3B "Couldn't find executable LOADSCN.EXE." $00 %patch $23B9E "For technical assistance with running this software, type HELP at" $00 %patch $23BE1 " the DOS prompt or call Gamer's Edge at 1-318-221-8311" $00 %patch $23A9F "Null pointer assignment" $00 %patch $23E09 "Couldn't find KDREAMS.CMP" $00 %patch $23E30 "Can't load TITLE SCREEN" $00


Galaxy

See also Patch:EGAGRAPH (especially when patching new graphics) and Patch:B800 text screens.

Patch: Keen 4
#Look for GAMEMAPS
%patch $1334F $3AE2W %patch $32952 "GAMEMAPS.CK4" $00
#Look for AUDIO
%patch $13393 $3B08W %patch $32978 "AUDIO.CK4" $00
#Look for EGAGRAPH
%patch $131C3 $3ABBW %patch $3292B "EGAGRAPH.CK4" $00
#Look for CONFIG
%patch $1949D $468CW %patch $334FC "CONFIG.CK4" $00
#Create CONFIG
%patch $1966D $469BW %patch $3350B "CONFIG.CK4" $00
#Saved games and configuration:
%patch $33434 "SAVEGAMx.CK4" $00 %patch $33507 "CK4" $00 %patch $33516 "CK4" $00 "CK4" $00 "CK4" $00 %patch $33522 "Empty" $00 %patch $3354F "Loading... " $00 %patch $3355D " Ready Press a Key " $00 " Ready Press a Key " $00

Patch: Keen 5
#Look for EGAGRAPH
%patch $14160 $3211W %patch $33551 "EGAGRAPH.CK5" $00
#Look for CONFIG
%patch $1A43B $3CDEW %patch $3401E "CONFIG.CK5" $00

Patch: Keen 6
#Look for EGAGRAPH
%patch $12CF4 $34BBW %patch $341EB "EGAGRAPH.CK6" $00
#Look for CONFIG
%patch $1910D $408CW %patch $34DBC "CONFIG.CK6" $00
#Create CONFIG
%patch $192DD $409BW %patch $34DCB "CONFIG.CK6" $00