I'm almost ashamed to ask...

You can discuss anything about fan-made Commander Keen games here.
Post Reply
User avatar
thehackercat
Yorp Doctor
Posts: 669
Joined: Fri Aug 14, 2009 0:05
Location: Slug Village

I'm almost ashamed to ask...

Post by thehackercat »

But can someone guide me through making a patch file for a Keen-1 mod?
:o
Image
Genius314
Vorticon Elite
Posts: 843
Joined: Thu Nov 01, 2007 0:13

Post by Genius314 »

It's pretty simple. You don't need to know what any of the codes mean (usually), just how to copy and paste them.

First make sure you have a copy of ck1patch.exe in your mod's folder,

1. Make a plain text file:

Code: Select all

ck1patch [patchfile].pat
You can replace the "[patchfile]" with anything you want. Something like "patch.pat" or "yourmodname.pat"
And save it as "run.bat" or something similar. Just make sure the extension is ".bat".

2. Make another plain text file:

Code: Select all

%ext ck1

%end
And save it as [patchfile].pat (make sure the name matches the one in the .bat file.

3. Add patches. They go in the space in-between the two lines in the patch file.
Find a patch on Keen:Modding or at http://levellord.rewound.net/Index/
So say you want this patch:

Code: Select all

#Set ammo to 0 after exiting each level
%patch $4F43 $31 $C0 $A3 $9E $AA $A3 $A0 $AA $A3 $A2 $AA 
             $A3 $A4 $AA $A3 $9A $AA $A3 $C8 $AA $90 $90 
             $90 $90 $90 $90 $90
This patch, as it says, will make Keen's ammo go to 0 after each level.
You would copy the patch into the patchfile.
So your resulting patchfile would look something like this:

Code: Select all

%ext ck1

#Set ammo to 0 after exiting each level
%patch $4F43 $31 $C0 $A3 $9E $AA $A3 $A0 $AA $A3 $A2 $AA 
             $A3 $A4 $AA $A3 $9A $AA $A3 $C8 $AA $90 $90 
             $90 $90 $90 $90 $90

%end
Now you can save the file, run your .bat file, and the game should run with the patch.

Hope I explained that well. :)
User avatar
tulip
Flower Pot
Posts: 2520
Joined: Thu Aug 21, 2008 12:50
Location: Hamburg, Germany
Contact:

Post by tulip »

To add, for some of the easier patches, I'd recommend you download theneuralstunner by Mink (here: http://keenmodding.org/viewtopic.php?t=1134&start=0), and use that for making your patchfile.
Image You crack me up little buddy!
User avatar
Fleexy
Tool Smith
Posts: 1434
Joined: Fri Dec 12, 2008 1:21
Location: Abiathar C&C

Post by Fleexy »

If you want wacky patches, add a command like this:

%patch $[randomnumber] $[random 2digit] $[random 2digit]
User avatar
Levellass
S-Triazine
Posts: 5266
Joined: Tue Sep 23, 2008 6:40

Post by Levellass »

Indeed, after the firs 500 tries, you may come across something that doesn't crash the game!
What you really need, not what you think you ought to want.
Post Reply