Key gem holder patch
Key gem holder patch
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.
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.
This is the patch, dug out of my old files for the animation Keen uses when placing a door gem:
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:
Keen can use any other sprite that is cached for the level.
Code: Select all
#Keen places door gem
%patch $2FC8E $00C4W $00C4W
%patch $2FC98 $0006W
Code: Select all
#Keen places door gem
%patch $2FC8E $008BW $0083W
Keen can use any other sprite that is cached for the level.
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.
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
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.
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.
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.
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.
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
Anyway, hope we can sort this problem out.
Thanks Lass.
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:
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