How to remove Return to demo

Anything related to Keen Modding.
Post Reply
User avatar
Bubzrulz
Posts: 208
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

How to remove Return to demo

Post by Bubzrulz »

how do i remove the Return to demo on my main menu ??
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Re: How to remove Return to demo

Post by Nisaba »

the automatic demos causing a crash because the default demo list points to levels, which were just deleted by you. there are several ways to get around this problem.
  1. adding more levels (over time)
  2. recording new demos which are pointing to your modified levels
    shikadi.net/keenwiki/Demo_Playback
  3. shrink the list of demos (for eg. play only the demo for level 1)

    Code: Select all

    #Disable single demos
    %patch $3C32 $90 $90 $90 $90 $90 #Demo 1
    %patch $3C47 $90 $90 $90 $90 $90 #Demo 2
    %patch $3C5C $90 $90 $90 $90 $90 #Demo 3
    %patch $3C6C $90 $90 $90 $90 $90 #Demo 4
  4. disable demos from being played at all. (the starting terminator text and the star wars story screen appear, but no level demos are shown)

    Code: Select all

    #Disable all demos
    %patch $5901 $CB
  5. for a bit more in depth modifications, you can also mess around with this patch over here. by simply swapping various pointers around it is possible to change the order of the main menu demo list.

    Code: Select all

    #List length
    %patch $3C0B $06
    
    #Main menu actions list
    %patch $3CB9 $0448W #3C18: Terminator sequence and title screen
    %patch $3CBB $045FW #3C2F: Demo 1
    %patch $3CBD $046CW #3C3C: Star wars story
    %patch $3CBF $0473W #3C43: Demo 2
    %patch $3CC1 $0481W #3C51: High score demo
    %patch $3CC3 $0488W #3C58: Demo 3
    %patch $3CC5 $0496W #3C66: Demo 4
User avatar
Bubzrulz
Posts: 208
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

Re: How to remove Return to demo

Post by Bubzrulz »

Code: Select all

#Disable all demos
%patch $5901 $CB

Cheers worked a treat 1st one i found earlier didn't work maybe i copyed it wrong too
User avatar
Bubzrulz
Posts: 208
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

Re: How to remove Return to demo

Post by Bubzrulz »

OK now i got a high score done how do i just patch it in to plat after the game even if u dont get a high score don what any other demos
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Re: How to remove Return to demo

Post by Nisaba »

I'm sorry, but I didn't get what you want me to patch...
Could you please elaborate what you meant by that, one more time?!
User avatar
Bubzrulz
Posts: 208
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

Re: How to remove Return to demo

Post by Bubzrulz »

Nisaba wrote:I'm sorry, but I didn't get what you want me to patch...
Could you please elaborate what you meant by that, one more time?!

ok sorry i built a high score level ( moded one) now i would like a patch so after every game it comes up atm it only comes up if u get a high score my guess is cos all demos are dissabled
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: How to remove Return to demo

Post by levellass »

Code: Select all

#All demos are High score
%patch $3CBB $0481W #3C2F: Demo 1
%patch $3CBF $0481W #3C43: Demo 2
%patch $3CC3 $0481W #3C58: Demo 3
%patch $3CC5 $0481W #3C66: Demo 4
Try that instead of your ;disable all demos' patch.
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Re: How to remove Return to demo

Post by Nisaba »

Note: if you compare LL's version of the patch and the patch e) mentioned by me beforehand, you will notice that they have some kind of similarity. the only difference between both is the second value $0481W. this is the pointer to a certain text location, in this case to the high scores. by changing all those second values in patch e) to $0481W, you'll receive the version you've just asked for.
If you want to get to know more about patching things, check out this brilliant tutorial written by Levellass:
shikadi.net/keenwiki/Patching_Tutorial_(by_Levellass)
Post Reply