Key gem holder patch

Request patches for Keens 4-6.
Post Reply
User avatar
bubbatom
Posts: 59
Joined: Sat Oct 30, 2010 7:55 am

Key gem holder patch

Post by bubbatom »

G'day everyone, I havent been on the Keen: Modding forums a lot lately but I've come to request a patch for keen 5.

My latest mod (Suburb Shenanigans) is based on Earth in the suburbs and to replace the key gems and doors I am using regular keys and doors found on Earth. But one problem I've realized is that keen uses the same sprite for "placing" a key gem in a holder and also the same sprite for the first frame for walking through a door. Basically, I was wondering whether or not I could use one of keens "running" sprites for the key doors instead of the walking through a regular door.

Thanks, in advance, Tom.
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

This is the patch, dug out of my old files for the animation Keen uses when placing a door gem:

Code: Select all

#Keen places door gem
%patch $2FC8E $00C4W $00C4W
%patch $2FC98 $0006W
The second line is how long it takes him to place the gem. To make this use the first of Keen's walking frames we change it to:

Code: Select all

#Keen places door gem
%patch $2FC8E $008BW $0083W

Keen can use any other sprite that is cached for the level.
User avatar
bubbatom
Posts: 59
Joined: Sat Oct 30, 2010 7:55 am

Post by bubbatom »

Hi. Thanks for the patch, but I can't get it to work at all. I don't see any difference in game when changing any of the values.

I can't work out what I'm getting wrong, any help would be appreciated.
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

*Slaps self*


It seems I'm a bit rusty here. I changed only one frame of the sequence.All you'll notice is a slight twitch in Keen when using this patch.

On second look the 'flick switch' 'go into door' and 'place gem' code seems to mix. Changing one is only possible by changing all three. Pity.
User avatar
bubbatom
Posts: 59
Joined: Sat Oct 30, 2010 7:55 am

Post by bubbatom »

It's ok. I should be able to work around this issue. Thanks for your help any way.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Righto, just got linked here.

What we want to do is to create some new actions specific to Keen gem dooring only, then make him use them. The following patch does this. The only thing you'll probablly want to edit is the animations used, the first two values ( $008BW $0083W) in each of the new actions.

Code: Select all

#Change Keen's gem door animation
#New actions:
%patch $2EF90 $008BW $0083W $0000W $0000W $0001W $0008W $0000W $0000W
              $00000000L    $00000000L    $0B801AA2RL   $098CW
%patch $2EFBE $008BW $0083W $0002W $0000W $0000W $0000W $0000W $0000W
              $0B8007D8RL   $00000000L    $09DC176ERL   $0000W
%patch $2FC8E $008BW $0083W $0000W $0000W $0001W $0006W $0000W $0000W
              $0B800A34RL   $00000000L    $0B801AA2RL   $0120W

#Use new actions
%patch $D1D3  $014EW
User avatar
bubbatom
Posts: 59
Joined: Sat Oct 30, 2010 7:55 am

Post by bubbatom »

Thanks for the patch lass, but I am having difficulties:

1. The main problem is that keen starts in the top left corner of the map, out of view and he can't get back on screen (even with the no clipping cheat).

2. I am new to changing the values in patches (just not sure which parts of the two lines you suggested to change) and can't get any visual differences happening.

I'm just new to patching and don't understand a lot of it.
Thanks.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

I have no idea about the top left thing; there's no way that should be happening due to my patch. Is this after Keen has opened a gem door? Are we talking the map or the level itself? Screenshots would be nice.

As for the second part, there SHOULD be changes, this makes me think that you have not set up your patch correctly. What does your patch file look like may I ask? (Can you copy\paste it here?) Indeed, it may be nice to see the folder setup, if you haven't made any level\graphics changes that you wouldn't want shared.
User avatar
bubbatom
Posts: 59
Joined: Sat Oct 30, 2010 7:55 am

Post by bubbatom »

Image
Here's where I begin on the world map (without opening any gem doors). This only occurs with that patch in the patch file. You can see some of the edited graphics in the screenshot too.

As for my patch file, I haven't got much in it yet. But, here it is with your patch inside:

Code: Select all

%ext ck5
%version 1.4

%egahead EGAHEAD.CK5             # Load the modified graphics

%maphead maphead.ck5             # Load gamemaps

%patchfile $25B22 keen5.tli      # Load modified tiles

#Change Keen's gem door animation 
#New actions: 
%patch $2EF90 $008BW $0083W $0000W $0000W $0001W $0008W $0000W $0000W 
              $00000000L    $00000000L    $0B801AA2RL   $098CW 
%patch $2EFBE $008BW $0083W $0002W $0000W $0000W $0000W $0000W $0000W 
              $0B8007D8RL   $00000000L    $09DC176ERL   $0000W 
%patch $2FC8E $008BW $0083W $0000W $0000W $0001W $0006W $0000W $0000W 
              $0B800A34RL   $00000000L    $0B801AA2RL   $0120W 

#Use new actions 
%patch $D1D3  $014EW

%end
As for folder setup I based my modding folders on the ones used in Ceilick's galaxy modding tutorial (with some file names changed (only the patch, batch and folder titles, nothing that shouldn't be changed)).

Anyway, hope we can sort this problem out.
Thanks Lass.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Ah. Now this is why this topic should have been called 'Keen 5 key gem holder patch'

You'll notice when a patch is requested, unless it's something that only occurs in one game (Like the Q.E.D or Meeps.) the requester will say what episode they want the patch for. (Celick's 'Keen 1: Pogo fuel' topic for example.) In this case I assumed you were using Keen 4, but you were not.

THIS is the patch for Keen 5:

Code: Select all

#Change Keen's gem door animation
#New actions:
%patch $30432 $0075W $006DW $0000W $0000W $0001W $0008W $0000W $0000W
              $00000000L    $00000000L    $0AAF1AC6RL   $0888W
%patch $30450 $0075W $006DW $0002W $0000W $0000W $0000W $0000W $0000W
              $0AAF08ADRL   $00000000L    $090B17B5RL   $0000W
%patch $30FE2 $0075W $006DW $0000W $0000W $0001W $0006W $0000W $0000W
              $0AAF0B62RL   $00000000L    $0AAF1AC6RL   $00F2W

#Use new actions
%patch $C4E6  $0110W
User avatar
bubbatom
Posts: 59
Joined: Sat Oct 30, 2010 7:55 am

Post by bubbatom »

Thankyou!
This patch works great and I now understand how to change the values that effect the sprite used for certain actions.

And I'll make sure that I include the episode number in the subject topic.
Thanks again, Tom.
Post Reply