Jetboy patch

Request patches for Keens 1-3.
User avatar
Flyingmouse
Posts: 104
Joined: Wed Aug 05, 2009 8:33 pm
Location: Procrastination

Jetboy patch

Post by Flyingmouse »

I need Generic Mod 2's jetpack patch for Keen 3... has this already been posted?
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

This is the standard patch, it's not quite as good though.

Code: Select all

#Pogo jetpacks 
%patch $7627 $90 
User avatar
Flyingmouse
Posts: 104
Joined: Wed Aug 05, 2009 8:33 pm
Location: Procrastination

Post by Flyingmouse »

I don't get something...
What does this actually edit? A3 is the normal pogo code, but all other values I've tried have the same effect as 90.
lemm
Posts: 554
Joined: Sun Jul 05, 2009 12:32 pm

Post by lemm »

A3 starts a mov instruction. The instruction following the mov instruction is CALL to the gravity procedure.

The next byte after $A3 is $38, so patching with $90 effecitvely converts the mov into a CMP instruction. The new cmp instruction overlaps with the existing call, cancelling the call to gravity.

A better patch would be $762A $90 $90 $90.
User avatar
Flyingmouse
Posts: 104
Joined: Wed Aug 05, 2009 8:33 pm
Location: Procrastination

Post by Flyingmouse »

Thanks!

Come to think about it, I wonder what else could be done with the pogo...

EDIT:
In http://www.keenmodding.org/viewtopic.php?t=1272, what disassembler is used in lemm's post? That looks more readable than what I get from using Recstudio.
lemm
Posts: 554
Joined: Sun Jul 05, 2009 12:32 pm

Post by lemm »

IDA

There's a free version there, as well as a pro version.

I also have a comprehensive ida disassembly file for keen1 and partials for other vorticons episodes if you want them (but I believe they'll only work for pro version).
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Oh so only people who love Ida can get the disassembly huh?

Thanks for updating the patch Lemm, LL's patches tend to be rather random.
lemm
Posts: 554
Joined: Sun Jul 05, 2009 12:32 pm

Post by lemm »

A text file of the disassembly can be produced if anyone wants it, but I find it more convenient to browse using IDA.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

I should think that would be very likely, many people out there just don't have your flair for these things. Me for instance.
lemm
Posts: 554
Joined: Sun Jul 05, 2009 12:32 pm

Post by lemm »

If you want it, the disassembly (k1disasm.tar.bz2) is in the PCKF IRC Dropbox in my folder.
User avatar
Flyingmouse
Posts: 104
Joined: Wed Aug 05, 2009 8:33 pm
Location: Procrastination

Post by Flyingmouse »

Another question...

I need to add another byte after 051D (or 051E, doesn't make much of a difference) in Keen 3- I need three, but the function has only two. What do I do here?
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

...


WHY?
User avatar
Flyingmouse
Posts: 104
Joined: Wed Aug 05, 2009 8:33 pm
Location: Procrastination

Post by Flyingmouse »

Just an idea I had... may use it in a mod. (provided I even finish one)

Or, perhaps, I'm just insane.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Yes, but what for? If we know what it's for then possibly there are other ways of doing it.
User avatar
Flyingmouse
Posts: 104
Joined: Wed Aug 05, 2009 8:33 pm
Location: Procrastination

Post by Flyingmouse »

To be exact, getting an extra life would do the opposite- killing you. I would need 3 bytes to use the Vorticon interaction.
Post Reply