Pogo, Raygun and 4 items; patching what they do.

Completed patches for Keen1.
Post Reply
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Pogo, Raygun and 4 items; patching what they do.

Post by levellord »

This topic promises to become larger as I get more time to find more tiles. Here is what I have:

Code: Select all

Items:
#Battery
%patch $4452 $C7 $06 $9C $AA $01 $00
#Joystick
%patch $4446 $C7 $06 $94 $AA $01 $00
#Vacum
%patch $445E $C7 $06 $96 $AA $00 $00
#Whiskey
%patch $446A $C7 $06 $98 $AA $01 $00
Values:

$00 $00 at the end will make the item not give an item, but still give 1000 points and play the item sound, e.g:

#Vacum doesn't give vacum
%patch $445E $C7 $06 $96 $AA $00 $00


Changing the $9x after the $06 changes what value the item changes. To change what item, etc is got, change this, e.g:

#Vacum gives joystick
%patch $445E $C7 $06 $94 $AA $01 $00



#The pogo:

Code: Select all

#Pogo
%patch $44AB  $C7 $06 $9A $AA $01 $00
Unlike items, the pogo changes the value absolutely; i.e changing the value to $00 $00 will take Keens pogo. Also changing the $9A can make the pogo give [or take?] an item:

#Pogo gives joystick
%patch $44AB $C7 $06 $94 $AA $01 $00


Simalarly the items can give [but not take] a pogo.


Items and pogo give shots or lives:
Use these patches, but change the value its patched to and the shot number:

Code: Select all

#gives extra Keen!
%patch $44AB  $FF $06 $C6 $AA $90 $90
#is a raygun, xx shots:
%patch $44AB $83 $06 $C8 $AA $xx $83
i.e:

#Battery gives 4 shots
%patch $4452 $83 $06 $C8 $AA $04 $83



The raygun works differently, it cannot give either items or pogo it can however:

Code: Select all

#Raygun gives extra Keen!
%patch $44A0  $FF $06 $C6 $AA $90 $90

#Raygun tiles dissapear when touched, but otherwise don't affect Keen [no sound, etc]
%patch $44A0  $7E $06 $C8 $AA $00 $00
Patches specific to various items and the pogo are:

Code: Select all

#Joystick:
#Joystick gives battery [and 2, etc bullets]
%patch $4446  $7E $06 $C8 $AA $02 $00
#Gives whiskey, but plays exit sound.
%patch $4446  $C6 $06 $C8 $AA $02 $00
#Like above but plays raygun sound
%patch $4446  $83 $06 $C8 $AA $02 $00

#Pogo:
#Pogo kills Keen, but without the death sprite.
%patch $44AB  $5F $06 $C8 $AA $00 $00
#Pogo tiles dissapear when touched, but otherwise don't affect Keen
%patch $44AB  $7E $06 $C8 $AA $00 $00
#Pogo gives keen two keys, battery, whiskey, and acts like a raygun. Also kills keen, but gives him an extra life as compensation.
%patch $44AB  $9F $06 $C8 $AA $00 $00
#Like above, but inconpatible with godmode
%patch $44AB  $AF $06 $C8 $AA $00 $00
#Pogo plays exit sound, no points, and no pogo either!
%patch $44AB  $C6 $06 $C8 $AA $00 $00
Pogo kills Keen, he gets a key and the whiskey.
%patch $44AB  $CE $06 $C8 $AA $00 $00
#Pogo completes level, gives you battery and three keys
%patch $44AB  $C9 $06 $C8 $AA $00 $00
#The sound the pogo makes when got
%patch $44B2  $0A $00

#Vacum:
#Vacum gives 256 lives and 256'000 points for each second Keen touches it;
#Doesn't dissapear
%patch $445E $7E $06 $C8 $AA $02 $00
Enjoy!
Last edited by levellord on Sun Aug 14, 2005 12:05 am, edited 1 time in total.
KeenRush
Patch Maker
Posts: 1988
Joined: Sun Aug 31, 2003 2:52 pm
Location: Sand Yego
Contact:

Haxx!

Post by KeenRush »

Phew, after several tries I finally managed to write a version that fits into the space.. One gotta make patches as small as possible.. Dunno if this is yet the smallest version possible. I'm very pleased since this is the first patch of mine that does a bit more advanced assembler (jumps and logic).

Anyways;

Code: Select all

# This patch makes raygun tiles take Keen's pogo if Keen has pogo,
# and give Keen pogo if he hasn't got one.
# This patch overwrites pogo tile code, so if you use pogo tiles
# they do nothing but disapper the same way for example the
# collectiables do. You can hear the sound, but you won't get any
# points or ammo or whatever..

%patch $449A $83 $7E $F6 $0F $75 $11 $83 $3E $9A $AA $00
             $B8 $01 $00 $74 $03 $B8 $00 $00 $A3 $9A $AA $90
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

Now with teleporter and lightswitch properties!

Code: Select all

#This code will make an item or pogo a teleporter, teleporting
#with the item sound and 1000 points.
%patch $4452 $C7 $06 $60 $6C $02 $00

#This code will make an item, pogo or teleporter into a lightswitch
%patch $4452  $C7 $06 $58 $82 $02 $00

e.g:

#Whiskey is a teleporter
%patch $446A $C7 $06 $60 $6C $02 $00


Also however, the $02 can be changed:

#Teleporter
$00 Nothing, just gives 1000 points and item sound
$01 Exit level
$02 Teleport to secret level teleporter

#Lightswitch:
$00 and $01: Disable
$02 and higher Act like a lightswitch

e.g:

#Vacum exits level
%patch $445E $C7 $06 $60 $6C $01 $00


This can be applied to the teleporter as well, and there is also a special teleporter patch useful for easy\med\hard mods where you want to use the same level but not all of the teleporters:

#Teleporter exits level:
%patch $4572 $C7 $06 $60 $6C $01 $00

#Telepoerter tile acts like nothing
%patch $4572 $C7 $06 $98 $AA $01 $00


Enjoy!
User avatar
XkyRauh
Posts: 1114
Joined: Sun Aug 31, 2003 9:14 pm
Location: San Diego, California

hmm

Post by XkyRauh »

Just to clarify, LevelLord, when the Vacuum patch "exits the level," does it mark the level as completed on the map screen? Or does it simply remove Keen from the level, leaving it open to be accessed again?
User avatar
grelphy
Posts: 219
Joined: Fri Sep 05, 2003 12:41 am
Location: the Armageddon Machine

Post by grelphy »

As another question, what happens when you use the teleporter patch with the "item-to-tport" patch, what happens? Does it work like a regular (single-use) teleporter, or does it just lock up?
Stealthy71088
Posts: 583
Joined: Thu Mar 17, 2005 11:54 pm
Location: NY

Post by Stealthy71088 »

Patches that affect tiles! Its a dream come true.

Ok here are my comments/ requests

1. could something take the joystick or battery, or one of those fun filled objects?

2. Could the light switch be adjusted so that a certain tile that is black, turn white, or something visible in the dark, while other tiles act normal? A glow in the dark tile thingy? You could make secret passages, and hidden messages, and all sorts of fun things with it :)
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

Clarifications:

Tile properties 'reference' to code. Changing the teleporter to say, a lightswitch won't delete the teleporter code. If say, the whiskey is made into a teleporter, it will work just like... well, a teleporter.

The 'exit level' property marks the level as done.

I'm not sure about something taking an item, it may be possible, but would need some code rewriting.

As for special lightswitch tiles, this will involve altering the lightswitch code, and most likely the palettes as well, sorry.
User avatar
Freeyorp101
Posts: 159
Joined: Thu Nov 24, 2005 2:12 am
Location: New Zealand

er

Post by Freeyorp101 »

Is there a way to make the parts exit the level and still give the parts?

sorry, it's getting old but...
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

No, not with the current patch format, although I do believe Spleen may be able to help you there.

[I really should look into these again sometime, I bet I could do a lot more]
Post Reply