KDRPATCH

CKPatch is a set of patching tools for all Keen episodes.
Post Reply
User avatar
MultiMania
Patch Master
Posts: 153
Joined: Mon Nov 24, 2003 3:09 am
Location: Deep in the heart of keen.
Contact:

KDRPATCH

Post by MultiMania »

Here is ckpatch for keen dreams with source.

It supports version 1.13 level.name, egahead, egadict, maphead, patch & patchfile.

Version 1.10: patch & patchfile.


Run KDRPATCH.EXE PATHFILE.PAT /detour to run keen dreams.

Download:
http://www.spatang.com/multimania/kdrpatch.zip
Last edited by MultiMania on Wed Jul 13, 2005 4:26 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 »

*Whoooo!*

Not bad, not bad at all. I'm almost tempted to start work on something, but...nah.
KeenRush
Patch Maker
Posts: 1988
Joined: Sun Aug 31, 2003 2:52 pm
Location: Sand Yego
Contact:

Post by KeenRush »

Woooh, sounds good! :)
User avatar
adurdin
Site Founder
Posts: 549
Joined: Fri Aug 29, 2003 11:27 pm
Location: Edinburgh, Scotland
Contact:

Post by adurdin »

Excellent work, Multimania! Now I suppose you want me to update ModKeen2 to work with Dreams? ;-)

I've uploaded kdrpatch to keen:modding also: http://files.keenmodding.org/kdrpatch.zip
User avatar
MultiMania
Patch Master
Posts: 153
Joined: Mon Nov 24, 2003 3:09 am
Location: Deep in the heart of keen.
Contact:

Life, the Universe and Everything Else

Post by MultiMania »

*Argggg this is the second time i've had to type this*
Well, no-one would want to mod Keen Dreams so... :D

So, does anyone know the offset for mapdict?
User avatar
adurdin
Site Founder
Posts: 549
Joined: Fri Aug 29, 2003 11:27 pm
Location: Edinburgh, Scotland
Contact:

Post by adurdin »

Mapdict??
KeenRush
Patch Maker
Posts: 1988
Joined: Sun Aug 31, 2003 2:52 pm
Location: Sand Yego
Contact:

Post by KeenRush »

Now I suppose you want me to update ModKeen2 to work with Dreams? ;-)
Yes please.
User avatar
MultiMania
Patch Master
Posts: 153
Joined: Mon Nov 24, 2003 3:09 am
Location: Deep in the heart of keen.
Contact:

Mapdict

Post by MultiMania »

Mapdict is the huffman compression dictionary for the keen dreams maps. Unlike the Keen4-6 maps, which are carmack compressed, Keen dreams Maps are compressed with Huffman encoding but as Keen dreams has three different Huffman dictionaries it is hard to tell what one is what.
User avatar
adurdin
Site Founder
Posts: 549
Joined: Fri Aug 29, 2003 11:27 pm
Location: Edinburgh, Scotland
Contact:

Post by adurdin »

Mapdict is the huffman compression dictionary for the keen dreams maps. Unlike the Keen4-6 maps, which are carmack compressed, Keen dreams Maps are compressed with Huffman encoding but as Keen dreams has three different Huffman dictionaries it is hard to tell what one is what.
Well, you learn something new every day -- I'd never paid a great deal of attention to Dreams, and hadn't noticed that.

Are the three dicts all next to each other? You can always do what I did with Keen 4-6 to work out which (of the two in those cases) is which: try decompressing with each and see whether the output is sane.
Admiral_Bob
Posts: 7
Joined: Thu Mar 25, 2004 5:58 pm
Location: Melbourne, Australia

Post by Admiral_Bob »

Well done, MultiMania, for going to the effort of implementing Keen Dreams support in CKPatch! :)

I'll probably merge your contribution into CKPatch, if I release another version (I don't have any immediate plans right now, but I will, if I get time to add some more features that I think are useful).

Apart from KDRPATCH.PAS (which you added), I noticed you made some changes to CKXPATCH.INC as well (adding some debug Writeln statements). Are you OK if I remove these extra Writeln statements?
Admiral_Bob
Posts: 7
Joined: Thu Mar 25, 2004 5:58 pm
Location: Melbourne, Australia

Post by Admiral_Bob »

MultiMania:

Another tip I might add:

If you modify and redistribute Open Source software, it's usually a good idea to add a display notice to the program & documentation that lets the end user know you've modified the source code.

Also list your own contact email address, so users will email you for bugs/questions/etc instead of the original author (myself, in the case of CKPatch); they usually don't have anything to do with your modifications (and don't like being expected to support something they didn't write).
User avatar
Grandy02
Posts: 107
Joined: Tue Apr 19, 2005 2:26 pm
Location: Germany
Contact:

Post by Grandy02 »

It doesn't work. After my first try it said, that Ishould start START.EXE. So I hex edited the KDRPATCH:EXE a little bit. Next try. Then it said:
Image Size: 35360
Error: Unrecognised version of START.EXEImageSize: 35360

What now? :-( I used UNLZEXE.EXE for both START.EXE and KDREAMS.EXE!
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

Ah, first we must make START.EXE unnedded [deletable] so we use this command in our Batfile:

KDRPATCH MYPATCH.PAT /detour /comp

You can now delete START.EXE, tidying up that folder nicely. [MM, can you add this not to your download or maybe your first post so people realize this?]
User avatar
Grandy02
Posts: 107
Joined: Tue Apr 19, 2005 2:26 pm
Location: Germany
Contact:

Post by Grandy02 »

Thanks, levellord! *now trying out this carrot patch*
Post Reply