Wining a level makes you go to the next level

Request patches for Keens 4-6.
Post Reply
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Wining a level makes you go to the next level

Post by levellass »

This patch alters the 'complete level' code so that Keen will not return to the map but instead moves to the next level A side effect of this is that Keen can complete level 0 and go to level 1. (No map.) Levels are not marked as done, but this has no effect in the default game.

In short, Biomenace type rules.

Keen WILL go to the map however if he rescues a Council Member.

Code: Select all

#Winning level goes to next level
%patch $6B1E $FF $06 $7A20W  $90 $90 $90
%patch $6B31 $A1 $7A20W  $A3 $7A68W
%patch $6B3D $EB $0A
User avatar
szemigi
Posts: 716
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Post by szemigi »

Could you do this patch for Keen 6, too?
Benvolio
Posts: 228
Joined: Sun Aug 29, 2004 4:44 pm
Location: Ireland
Contact:

Post by Benvolio »

Has this been done for Vorticons?? Rofl :P
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Yes, this is the rough patch for it, you will win the game if you have the Joystick:

Code: Select all

#When exiting go up a level instead of to the map, win if Joy>1
%patch $7FDF $90 $90 $90
%patch $7FFA $83 $3E $6C60W  $01 $75 $D2 $FF $06 $6EC0W  $81 $3E $AA94W  $0001W
                 $7C $C6 $EB $2D

This is the equivalent patch for Keen 6:

Code: Select all

#Winning level goes to next level
%patch $68D4 $FF $06 $7558W  $90 $90 $90
%patch $68E7 $A1 $7558W  $A3 $75A4W
%patch $68F3 $EB $0A

Keen 5 is also easy enough.
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

is it possible to enable this patch only once, so Keen will not return to the map but instead moves to the next defined level? meaning that all levels can be entered by the map but one only via a other level. like a hidden level which can only be entered through another one.
User avatar
Fleexy
Site Admin
Posts: 490
Joined: Fri Dec 12, 2008 1:33 am
Location: Bloogton Tower

Post by Fleexy »

There is an interesting patch that accomplishes that for Keen 5. (I'm not sure which episode you're interested in, but that at least shows it's possible.)
Last edited by Fleexy on Sun Jul 03, 2016 5:51 pm, edited 1 time in total.
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

hey there,
thanx for the reply.
that is exactly what I am looking for. but I forgot to mention that I do need a solution for Keen 4. K5 has obviously this connecting thing...
is there a solution for the other two galaxy games?
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Your link seems broken, there's a '(' after 'Galaxy' that should be a ')'

I shall look into this, it's almost definitely possible.
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

where to look to find such things like this?
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

I was looking in the level state code, specifically the 'complete level' code. ( http://www.shikadi.net/keenwiki/Patch:L ... lete_level )

If we eliminate the 'demo mode' option we can set things up so a single level or several levels (Say between 1-5) always end with Keen being sent to the next level. This patch works for level 2 only:

Code: Select all

#Level 2 leads to level 3 instead of map
%patch $6B25 $83 $3E $A7EDW  $02 $74 $06 $C7 $06 $7A68W  $FFFFW  $FF $06
          $7A68W $B8 $000DW  $50 $9A $187409F1RL     $83 $C4 $02   $A1 $A7EDW
             $A3 $A7C2W  $8B $1E $A7EDW  $D1 $E3 $C7 $87 $7A1EW  $0001W  $EB $46

When Keen wins level 2 in any way, be it going of screen or meeting the elder, he will move into level 3 instead of the map.
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

I see! overwriting the demo mode code is a clever step. but it has to be level two? does the demo mode allow to change the triggering level? (... just for being more flexible...)
Last edited by Nisaba on Mon Jul 04, 2016 5:39 pm, edited 1 time in total.
User avatar
Fleexy
Site Admin
Posts: 490
Joined: Fri Dec 12, 2008 1:33 am
Location: Bloogton Tower

Post by Fleexy »

Where it says "$02 $74", you can change the $02 to set the level that will cause Keen to move to the next one. For example, $05 is level 5 and $0A is level 10. The $74 is a jump condition.
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

thanx fleex for the advice! I was assuming something like this too, but haven't got the chance to test things yet.

EDIT: ok playtested it. works with different levels as long as you are leaving offscreen. BUT ending a level via an oracle member won't take effect and brings you directly back to the map. that's ok with me, but I just wanted to mention it.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Oh silly me! Forgot the tiny bit that made it apply to the Members also. Ok THIS patch also works with the Oracle guys:

Code: Select all

#Level 2 leads to level 3 instead of map
%patch $6B25 $83 $3E $A7EDW  $03 $74 $06 $C7 $06 $7A68W  $FFFFW  $FF $06
          $7A68W $B8 $000DW  $50 $9A $187409F1RL     $83 $C4 $02   $A1 $A7EDW
             $A3 $A7C2W  $8B $1E $A7EDW  $D1 $E3 $C7 $87 $7A1EW  $0001W  $EB $46
%patch $6AF0 $33
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

nice!
Post Reply