25 levels in Keen 4-6

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

25 levels in Keen 4-6

Post by szemigi » Mon Oct 21, 2019 10:57 pm

I've read on KeenWiki that: "The second limit is a 'hard' limit of 25 levels determined by how the game's memory is set up.

Question: Could you do this hard limit of 25 levels for Keen 4,5 and 6, Levellass? I would like to see this option here.

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

Re: 25 levels in Keen 4-6

Post by levellass » Tue Oct 22, 2019 1:15 am

The wiki will need updating there I think. I already had a mod with 86 technical levels and have another with 40 or so. The main problem is that all your level names start eating up space, and some levels (Like level 31) just don't work because of memory bugs.

So how many levels would you want?

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

Re: 25 levels in Keen 4-6

Post by szemigi » Tue Oct 22, 2019 3:11 am

Well, I want 35 levels (33 + 1 high score + 1 secret), but keep in mind that "LOCATION" on the status screen won't be shown, so it'll be removed. So as an advantage I can say I'll have more space for the level entry texts (since those won't be too long) as the location's name won't be shown. So it won't eat up the memory.

Don't know if you get it.


(Also, you posted at 3:15!)

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

Re: 25 levels in Keen 4-6

Post by levellass » Wed Oct 23, 2019 3:01 am

And this is for Keen 4 AND 5 AND 6?

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

Re: 25 levels in Keen 4-6

Post by szemigi » Wed Oct 23, 2019 3:08 am

I want it for Keen 6.

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

Re: 25 levels in Keen 4-6

Post by levellass » Mon Oct 28, 2019 10:57 am

This patch will allow a total of 36 levels in Keen 6. It probably won't crash the game. (Though the level name offsets given here WILL when you try to warp to some levels since the level names will be all different.)

I think there are programs or something that let you make custom level name list patch things, just make sure your level list is always put at the location it is in this patch. (Also the same for any song list, since I had to move that, too.)

Level 31 will always do something weird when you try to enter it because of a weird memory bug. You can put swearwords on that map and nobody will ever see them.

Code: Select all

#Allow 36 levels in Keen 6 v1.4:
#First increase the number of levels we can access from the map to maximum (+6)
%patch $D221 $24 #Number of levels enterable ($18 = 24)
%patch $8A88 $24 #Number of level song entries (24, see below)

#Where level entry text list is located (Use name space)
%patch $6044 $1782W
%patch $6040 $1784W

#Move the song list for more space
%patch $8AA7 $1816W
%patch $8A88 $24     #Total number of level entries

#Move the item cache list to the old SONG LIST for space
%patch $E74B $029CW
%patch $3103E $0009W #Red gem
              $0009W #Yellow gem
              $0009W #Blue gem
              $0009W #Green gem
              $0002W #100
              $0003W #200
              $0004W #500
              $0005W #1000
              $0006W #2000
              $0007W #5000
              $0008W #Viva Queen
              $000AW #Raygun
              $000AW #IF Raygun

#Level entrance pointers -take over name space too
%patch $324B2 $1EF40000RL #Level 0
              $1EF5000BRL #Level 1
              $1EF7000DRL #Level 2
              $1EF9000BRL #Level 3
              $1EFC0007RL #Level 4
              $1EFF0005RL #Level 5
              $1F010001RL #Level 6
              $1F040003RL #Level 7
              $1F060007RL #Level 8
              $1F08000FRL #Level 9
              $1F0B0000RL #Level 10
              $1F0F0001RL #Level 11
              $1F100006RL #Level 12
              $1F11000BRL #Level 13
              $1F130000RL #Level 14
              $1F140005RL #Level 15
              $1F15000ARL #Level 16
              $20100000RL #High scores
              $00000000L  #Extra level (18)
              $00000000L  #Extra level (19)
              $00000000L  #Extra level (20)
              $00000000L  #Extra level (21)
              $00000000L  #Extra level (22)
              $00000000L  #Extra level (23)
              $00000000L  #Extra level (24)
              $00000000L  #Extra level (25)
              $00000000L  #Extra level (26)
              $00000000L  #Extra level (27)
              $00000000L  #Extra level (28)
              $00000000L  #Extra level (29)
              $00000000L  #Extra level (30)
              $00000000L  #Extra level (31)
              $1F15000ARL #Extra level (32)
              $FFFFFFFFL  #Extra level (33 INVALID!)
              $1F15000ARL #Extra level (34)
              $1F15000ARL #Extra level (35)
              $1F15000ARL #Extra level (36)

#This is the music played in each level:
#             VALUE   LEVEL                      MUSIC PLAYED            LEVEL No
%patch $32546 $0005W  #Map                            (Aliens Ate My Babysitter)  0
              $0003W  #Bloogwaters Crossing           (Faster)                    1
              $0001W  #Guard Post One                 (Brer Tar)                  2
              $0008W  #First Dome of Darkness         (Mamba Snake)               3
              $0008W  #Second Dome of Darkness        (Mamba Snake)               4
              $0008W  #Bloogdome                      (Mamba Snake)               5
              $0007W  #Bloogton Manufacturing         (Metal)                     6
              $0002W  #Bloogton Tower                 (To the Future)             7
              $0007W  #Bloogfoods, Inc.               (Metal)                     8
              $0001W  #Guard Post 2                   (Brer Tar)                  9
              $0003W  #Bloogville                     (Faster)                    10
              $0002W  #BASA                           (To the Future)             11
              $0001W  #Guard Post 3                   (Brer Tar)                  12
              $0004W  #Bloogbase Recreational District(Space Funk)                13
              $0004W  #Bloogbase Management District  (Space Funk)                14
              $0006W  #Bloog Control Center           (Ominous)                   15
              $0002W  #Blooglab Space Station         (To the Future)             16
              $0000W  #Bean-with-Bacon Megarocket     (A World of Wonderment)     17
              $0000W  #High Scores                    (A World of Wonderment)     18
              $0002W  #Extra level 1                  (High Scores)               19
              $0002W  #Extra level 2                  (High Scores)               20
              $0002W  #Extra level 3                  (High Scores)               21
              $0002W  #Extra level 4                  (High Scores)               22
              $0002W  #Extra level 5                  (High Scores)               23
              $0002W  #Extra level 6                  (High Scores)               24
              $0002W  #Extra level 7                  (High Scores)               25
              $0002W  #Extra level 8                  (High Scores)               26
              $0002W  #Extra level 9                  (High Scores)               27
              $0002W  #Extra level 10                 (High Scores)               28
              $0002W  #Extra level 11                 (High Scores)               29
              $0002W  #Extra level 12                 (High Scores)               30
              $0002W  #Extra level 13                 (High Scores)               31
              $0002W  #Extra level 14                 (High Scores)               32
              $0002W  #Extra level 15                 (High Scores)               33
              $0002W  #Extra level 16                 (High Scores)               34
              $0002W  #Extra level 17                 (High Scores)               35

This was surprisingly hard to do, I had to discover something entirely new about the game. I am left remarkably drained after doing it.

Post Reply