Keen 6 'help'

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

Keen 6 'help'

Post by szemigi » Sat Oct 05, 2019 10:47 pm

Levellass, remember that when you helped me in Keen 10: Mirror Menace, you created a patch that let's me have "help menu" in Keen 6 (by pressing F1).

Question: Could you post this patch for me? Also, what about the text (in case of KeenGraph!) if I want 'help menu'? Tell me, please.



(As a reminder, don't forget about the patches below either.)

levellass
Posts: 2932
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Keen 6 'help'

Post by levellass » Thu Oct 10, 2019 1:24 pm

Ok, the Keen 10 patch was a little outdated, this is a better one, it even lets you have help music. (The music here is $000DW.) This first patch just shows it works; it plays the ending sequence text when you press F1:

Code: Select all

#NOMEM chunk changed to simple 'thanks for playing' chunk
%patch $3B2D $15AFW
%patch $6D47 $15AFW

#Disable sprite test cheat (Free 390 bytes at $6B08)
%patch $7499 $EB $12

#Display ending code (Chunk is $15AEW)
%patch $6D0C $55 $8B $EC $83 $EC $02 $56 $B8 $0004W  $50 $9A $1CF70317RL   
             $83 $C4 $02 $9A $1608012ARL     $9A $125A14BERL     $9A $125A1610RL
                     $B8 $001CW  $50 $9A $125A1108RL     $83 $C4 $02 $B8
         $001BW  $50 $9A $125A1108RL     $83 $C4 $02 $B8 $15AEW  $50 $9A
         $125A1108RL     $83 $C4 $02 $A1 $A185W  $89 $46 $FE $A3 $CCB1W  $C7
             $06 $CCAFW  $0000W  $9A $0DBE0631RL     $B8 $000DW  $50 $9A $069A20DBRL
                 $83 $C4 $02 $E9 $0036W  $33 $C0 $50 $9A $0DBE048ARL     $83
             $C4 $02 $9A $141308A9RL     $33 $C0 $50 $FF $36 $A942W  $9A
         $1DFB07E4RL     $83 $C4 $04
%patch $6D94 $9A $14130F44RL     $0B $C0 $75 $0E $B8 $0001W  $50 $9A $1DFB0ADDRL   
                     $83 $C4 $02 $EB $E9 $A1 $FD $CC $3B $06 $FB $CC $7D $03
             $E9 $FFBEW  $B8 $A185W  $50 $9A $15110988RL     $83 $C4 $02 $B8
             $765FW  $50 $9A $15110988RL     $83 $C4 $02 $B8 $7661W  $50 $9A
             $15110988RL     $83 $C4 $02 $9A $125A14DERL     $9A $141308A9RL
                 $B8 $0004W  $50 $9A $1CF70317RL     $83 $C4 $02 $9A $1608012ARL
                     $9A $125A1553RL      $FF $36 $A4 $75 $9A $069A20DBRL
             $83 $C4 $02 $5E $8B $E5 $5D $CB

#Call help when F1 pressed -8D\AE
%patch $8EBD $80 $3E $D3 $A6 $3B $75 $0C $9A $069A036CRL     $9A $16080E88RL     $90 $90

Now, to use a different text we want this patch:

Code: Select all

#NOMEM chunk changed to simple 'thanks for playing' chunk
%patch $3B2D $15AFW
%patch $6D47 $15AFW

#Disable sprite test cheat (Free 390 bytes at $6B08)
%patch $7499 $EB $12

#Display help section code (Chunk is $15B2W) =$069A036CRL 
%patch $6D0C $55 $8B $EC $83 $EC $02 $56 $B8 $0004W  $50 $9A $1CF70317RL   
             $83 $C4 $02 $9A $1608012ARL     $9A $125A14BERL     $9A $125A1610RL
                     $B8 $001CW  $50 $9A $125A1108RL     $83 $C4 $02 $B8
         $001BW  $50 $9A $125A1108RL     $83 $C4 $02 $B8 $15B2W  $50 $9A
         $125A1108RL     $83 $C4 $02 $A1 $A18DW  $89 $46 $FE $A3 $CCB1W  $C7
             $06 $CCAFW  $0000W  $9A $0DBE0631RL     $B8 $000DW  $50 $9A $069A20DBRL
                 $83 $C4 $02 $E9 $0036W  $33 $C0 $50 $9A $0DBE048ARL     $83
             $C4 $02 $9A $141308A9RL     $33 $C0 $50 $FF $36 $A942W  $9A
         $1DFB07E4RL     $83 $C4 $04
%patch $6D94 $9A $14130F44RL     $0B $C0 $75 $0E $B8 $0001W  $50 $9A $1DFB0ADDRL   
                     $83 $C4 $02 $EB $E9 $A1 $FD $CC $3B $06 $FB $CC $7D $03
             $E9 $FFBEW  $B8 $A18DW  $50 $9A $15110988RL     $83 $C4 $02 $B8
             $765FW  $50 $9A $15110988RL     $83 $C4 $02 $B8 $7661W  $50 $9A
             $15110988RL     $83 $C4 $02 $9A $125A14DERL     $9A $141308A9RL
                 $B8 $0004W  $50 $9A $1CF70317RL     $83 $C4 $02 $9A $1608012ARL
                     $9A $125A1553RL      $FF $36 $A4 $75 $9A $069A20DBRL
             $83 $C4 $02 $5E $8B $E5 $5D $CB

#Call help when F1 pressed
%patch $8EBD $80 $3E $D3 $A6 $3B $75 $0C $9A $069A036CRL     $9A $16080E88RL     $90 $90
To get this to work you need to replace chunk 5554 with a text document. In Keengraph this would involve changing the line '5554: DOS-SCREEN1.BIN' to something like '5554: HELP.TXT' (In Modkeen this is more tricky.) The text document must have all the ^P and ^E stuff you find in the ending sequence. I hope this works for you.

User avatar
szemigi
Posts: 618
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Keen 6 'help'

Post by szemigi » Fri Oct 11, 2019 1:42 am

Perfectly works. :)

Post Reply