Locations of stuff in the code

Request patches for Keens 1-3.
Post Reply
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Locations of stuff in the code

Post by levellord »

This is just an amateur little fiddle around; but I have been compiling a list of where things are within the Keen 1-3 code. This is not a decompiling, but if anyone wants to make a patch for say, the menu, this will tell you where the menu code is located. Of course this is far from listing *every* bit of the Keen 1-3 code, but as an aid for amateur patchers I thought it might be nice. When I get more time to work on things, I will attempt to fill in the big gaps present [and upload the Keen 2 file] These files will be updated automatically, like the patch index, to which they're related.

Keen 1: http://levellord.toxicsheep.com/Locations/Keen1.txt
Keen 2: Not uploaded!
Keen 3: http://levellord.toxicsheep.com/Locations/Keen3.txt

Currently the only real useful one is Keen 3, but soon I shall add more to the Keen 1 file. Currently some of this stuff may not make sense, as its in levellordian; now you can see what I use to aid me in patching [scary]

Enjoy!
User avatar
MultiMania
Patch Master
Posts: 153
Joined: Mon Nov 24, 2003 3:09 am
Location: Deep in the heart of keen.
Contact:

Post by MultiMania »

Scary. I uploaded something like this for keen5 about 15 minutes ago.
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

Been filling in some stuff, but *gasp!* can't upload anything for soe reason! I now know what a lot of the Keen 1 and 3 code does [mostly the sprite parts of it]

Either way, here are some patches that naturally appeard for the Keen 3 code [Keen 1 & 2 patches will follow most assuredly]

Code: Select all

#Sprites show shot animation when shot, still kill, stun, etc [Don't 'die']
%patch $7EC0 $C3

#H enemy bullet also spawns v enemy bullet [timing is off]
%patch $4117 $90 

#Keen is unstunnable
%patch $7CB8 $C3

#Amount of time Keen spends stunned
%patch $7CA2 $90 $01

#Keen can't shoot [no bullet appears]
%patch $7CD8 $C3
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

Small problem solved! I can upload things!

Big problem not! I lost track of my files!

Anyway, updated the Keen 1 and Keen 3 files, the Keen 1 needs more work, but I found these interesting and possibly useful patches while looking through Keen 1

Code: Select all

%patch $18E2 $90 #Yorp also spawns chain

%patch $191F $90 #Chain also spawns [nonmoving!] icecube

Yorp is still unless jumped on, then it gets stunned, looks around and feezes again
%patch $194F $C3 $90

#Yorp frezes when stood on [doesn't unstun]
%patch $1A2C $C3 $90

#Don't spawn falling block when chain shot
%patch $2369 $C3 $90

#When chain is shot, block falls xx tiles and the Yorp message appears
%patch $24F3 $90
%patch $24E8 $01
%patch $24DD $xx

#Yorp statues do nothing [They stop shining when Keen passes]
%patch $24F4 $C3 $90
Stealthy71088
Posts: 583
Joined: Thu Mar 17, 2005 11:54 pm
Location: NY

Post by Stealthy71088 »

A lot of these patches are very useful, but are a waste of a sprite in the long one. For the yorp, you could have sentries that keep falling asleep that you wake up by jumping. Or if you mix it with a behavior patch, after waking up the yorp, it could start walking around. But in the end it's a fun creative little thing that uses one sprite, but isn't cost effective in the long run if you have 16 levels to do.
User avatar
Freeyorp101
Posts: 159
Joined: Thu Nov 24, 2005 2:12 am
Location: New Zealand

Post by Freeyorp101 »

So? in episode smile there weren't any vortikids at all, and in keenwarp1 the yorps were never placed in the level, and I didn't use the Ice cannon or chain.
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

Well, the main point of this topic is so that if you want to patch something you know where to look.

Besides, I ike the chain\yorp message patch; nobody really uses the chain sprite, and it could be useful to have both statues t run into and chains to shoot to get messages. [It is possible to not spawn a block at all]
User avatar
Freeyorp101
Posts: 159
Joined: Thu Nov 24, 2005 2:12 am
Location: New Zealand

Post by Freeyorp101 »

[It is possible to not spawn a block at all]
OOH! how? :D
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

Code: Select all

#Chain simply shows Yorp message when shot:
%patch $24F3 $90
%patch $24E8 $01
#Stop chain tiles appearing
%patch $23AA $C3 #left black 
%patch $2413 $C3 #middle black
%patch $2493 $C3 #right black
%patch $23CC $C3 #top left
%patch $23EE $C3 #Bottom left
%patch $2435 $C3 #top middle
%patch $2457 $C3 #bottom middle
%patch $24B5 $C3 #top right
%patch $24D7 $C3 #bottom left
[I like this patch; its all c3, 90 and 01's!]

The chain sound still plays, but this can be silenced too if you wish:

Code: Select all

#Chain dying sound [init same as vort]
%patch $2344 $27 $00
#Don't play it:
%patch $2343 $90 $90 $90 $90 $90 $90 $90 $90 $90
Post Reply