Keen 4 - patched enemy, the Dort

Request patches for Keens 4-6.
Post Reply
User avatar
szemigi
Posts: 716
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Keen 4 - patched enemy, the Dort

Post by szemigi »

By a patch I want a Keen 4 new enemy, the DORT, by using

the following sprites:

1 * 4SPR0225.BMP (yellow 1UP sign)
2 * 4SPR0241.BMP (unused Keen Dreams door)
3 * 4SPR0163.BMP (Keen's death, which I don't want to use)
4 * 4SPR0314.BMP (Keen's scuba death, which I don't wanna

use)

4SPR0225.BMP -> Dort facing+running left sprite 1
4SPR0241.BMP -> Dort facing+running left sprite 2
4SPR0163.BMP -> Dort facing+running right sprite 1
4SPR0314.BMP -> Dort facing+running right sprite 2


Dort's description for the patching:

- harmless, doesn't kill you
- you can ride it (just like the Geek Keen 6)
EDIT: - runs back and forth (its speed is similar to the Geek's speed
from Keen 6)
- immortal (so when you shoot, nothing happens, just like
at the Mad Mushroom)
EDIT: - it can push you and it can walk through ANY hazards and enemies

And not least now listen and read carefully!

I want you Levellass to code the Dort in/for the TOM Keen level editor under the Mad Mushroom. Under the mushroom there is a black space/cube or what, which is not used. I want the Dort to be coded there.


NOTE: These Dort requests affects either my Keen 4 Falling off death patch or my Keen 4 Drop and flask patch. Why? Read that topic carefully, too along with this.
User avatar
szemigi
Posts: 716
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Keen 4 - patched enemy, the Dort

Post by szemigi »

I hope you can do this Dort requests, Levellass. :) (And in the meantime I edited some stuff in my Dort request post.)
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Keen 4 - patched enemy, the Dort

Post by levellass »

It will take a day or so, but should be possible when I have spare time.
User avatar
szemigi
Posts: 716
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Keen 4 - patched enemy, the Dort

Post by szemigi »

Okay, but don't forget about this request. This is important. (Really!) And take your time.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Keen 4 - patched enemy, the Dort

Post by levellass »

This patch assumes the Dort is as big as the Poison Slug, if it is a different size then it will need to be tweaked. The currentspeed is the two $0040W values, changing those will make it faster or slower.

Code: Select all

#Change pointersfor compaction
%patch $EE87 $0069W #Left Facing Keen (At $E959)
%patch $EE89 $0081W #Map Keen (At $E971)
%patch $EED1 $00A9W #Dort (At $E999)

#Disable Add VBLs (Free $76DB-$7760)
%patch $76D8 $E9 $0086W

#Compact Keen spawns
%patch $E954 $B8 $0001W  $EB $03 $B8 $FFFFW  $50 $FF $76 $FC $57 $9A $0B80000ERL
                     $83 $C4 $06 $C7 $06 $CB3DW  $0001W  $EB $12
%patch $E971 $FF $76 $FC $57 $9A $0D8F050ARL     $83 $C4 $04 $C7 $06 $CB4FW
             $0001W  $9A $0D8F0003RL     $B8 $2A3ARW $8A $16 $EC $7A $8E $C0
             $26 $08 $16 $00FDW  $E9 $0464W

#Dort's spawn
%patch $E999 $FF $76 $FC $57 $9A $06BD0B0BRL     $83 $C4 $04 $E9 $0455W

#Dort's spawn
%patch $76DB $55 $8B $EC $33 $C0 $50 $9A $06BD1E11RL     $83 $C4 $02 $8B $1E
             $D8 $A7 $C7 $07 $000FW  $C7 $47 $02 $0002W  $C7 $47 $20 $0002W
             $8B $46 $06 $B1 $08 $D3 $E0 $89 $47 $0A $8B $46 $08 $D3 $E0 $05
             $FF8FW  $89 $47 $0C $8B $1E $D8 $A7 $C7 $47 $0E $0001W  
             $8B $1E $D8 $A7 $C7 $47 $10 $0001W  $B8 $0CD4W  $50
             $53 $9A $09DC118CRL     $83 $C4 $04 $5D $CB

#Dort collision
%patch $7731  $55 $8B $EC $56 $57 $8B $7E $06 $8B $76 $08 $83 $C7 $4C $83 $3C
              $03 $75 $09 $56 $9A $0D8F0D43RL     $83 $C4 $02 $5F $5E $5D $CB

#Dort actions: 2 frames walking back and forth
%patch $2FB44 $00E1W $00A3W $0000W $0000W $0001W $0008W $0040W $0000W
              $00000000L    $06BD0B61RL   $09DC1847RL   $0D10W
%patch $2FB80 $0F11W $013AW $0000W $0000W $0001W $0008W $0040W $0000W
              $00000000L    $06BD0B61RL   $09DC1847RL   $0CD4W
Making it run through ALL hazards is not possible, it will not walk over 'deadly and can't land on in godmode' type floors or past poles going through the ground. For the first one you can just make the hazard regular deadly type with a normal floor top.
User avatar
szemigi
Posts: 716
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Keen 4 - patched enemy, the Dort

Post by szemigi »

Thanks a lot!

And now can you help me in this extra music thing? (Because I followed the KeenWave tutorial, but all I have is 'no music' instead of the extra song.)


EDIT: 'Uncached sprite: 314' error. (Sprite 314 is a death sprite for Scuba Keen, which I didn't use.) What to do? Because the animation should be used in non-water levels or what. (Sorry, it just confused me.)

EDIT 2: My Dort sprites are all 80 x 24 sized. Need to be tweaked? If so, how?
EDIT 3: Sprite is now 80 x 23, BUT: it spins in the air (so the Dort doesn't move anywhere)
User avatar
szemigi
Posts: 716
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Keen 4 - patched enemy, the Dort

Post by szemigi »

So? What do you say for these? Because the uncached error should be fixed.
Post Reply