A "changenextmap" command.

Moderator: GZDoom Developers

yum13241
Posts: 853
Joined: Mon May 10, 2021 8:08 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): EndeavorOS (basically Arch)
Graphics Processor: Intel with Vulkan/Metal Support

A "changenextmap" command.

Post by yum13241 »

We all know nextmap, right?

The problem is that it makes you lose your stuff, which ik is intentional, bc it calls map.

Why isn't there a changenextmap command, which acts like nextmap, but calls the changemap command, which doesn't make you lose your stuff.

My request is for the changenextmap command to become a reality and not just a little dream of mine.

TL;DR: changenextmap = nextmap, but calls changemap instead of map.
User avatar
m8f
 
 
Posts: 1446
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)

Re: A "changenextmap" command.

Post by m8f »

It's up to GZDoom devs to decide if to include this in the engine, just saying that this is possible mod-side.

Here is the mod. It adds changenextmap and changenextsecret commands.
You do not have the required permissions to view the files attached to this post.
User avatar
Rachael
Posts: 13780
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: A "changenextmap" command.

Post by Rachael »

This is already possible simply by typing special exit_normal 0 and special exit_secret 0 in the console.

If needed you can add this to your autoexec.cfg:

Code: Select all

alias changenextmap "special exit_normal %1 0"
alias changenextsecret "special exit_secret %1 0"
Note however m8f's solution does not require cheats enabled (nor do the map or changemap commands) - however, this solution does. So if you need to use it without cheats, then m8f's mod is better.
yum13241
Posts: 853
Joined: Mon May 10, 2021 8:08 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): EndeavorOS (basically Arch)
Graphics Processor: Intel with Vulkan/Metal Support

Re: A "changenextmap" command.

Post by yum13241 »

m8f wrote:It's up to GZDoom devs to decide if to include this in the engine, just saying that this is possible mod-side.

Here is the mod. It adds changenextmap and changenextsecret commands.

Thank you. Now I don't have to start with a Piss-You-Off-Tol lol.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3147
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain

Re: A "changenextmap" command.

Post by drfrag »

IMO this didn't make much sense but i've extended the changemap command instead.
PR here: https://github.com/coelckers/gzdoom/pull/1443
User avatar
Rachael
Posts: 13780
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: A "changenextmap" command.

Post by Rachael »

I'm gonna wait for Graf to sign off on this one - it isn't likely that a map might actually be named "next" but if there is - this could present a problem.

I'll move it to code submissions anyway.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49177
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A "changenextmap" command.

Post by Graf Zahl »

If there's a map named "next" this will take precedence. The added checks will only be entered if the given map name does not exist.
I see no reason not to add this, it's still better than having to maintain aliases.
User avatar
Rachael
Posts: 13780
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: A "changenextmap" command.

Post by Rachael »

Alright. Done and done, then.
yum13241
Posts: 853
Joined: Mon May 10, 2021 8:08 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): EndeavorOS (basically Arch)
Graphics Processor: Intel with Vulkan/Metal Support

Re: A "changenextmap" command.

Post by yum13241 »

Graf Zahl wrote:If there's a map named "next" this will take precedence. The added checks will only be entered if the given map name does not exist.
I see no reason not to add this, it's still better than having to maintain aliases.
Someone could make a map called "next" with a message saying for example:
"You cheater! Why would you skip my awesome levels! Shame, just shame on you!"

Which would effectively nullify this command.
User avatar
Rachael
Posts: 13780
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: A "changenextmap" command.

Post by Rachael »

yum13241 wrote:
Graf Zahl wrote:If there's a map named "next" this will take precedence. The added checks will only be entered if the given map name does not exist.
I see no reason not to add this, it's still better than having to maintain aliases.
Someone could make a map called "next" with a message saying for example:
"You cheater! Why would you skip my awesome levels! Shame, just shame on you!"

Which would effectively nullify this command.
There's an effective way to deal with said mapsets:
Spoiler:
User avatar
Enjay
 
 
Posts: 26558
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: A "changenextmap" command.

Post by Enjay »

Perfect response. I don't know why more people don't just take that line with mods that dick the player around.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3147
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain

Re: A "changenextmap" command.

Post by drfrag »

No big deal but i could change it. * warps to the current map so we could use ** for next and *+ for nextsecret or something like that.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49177
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A "changenextmap" command.

Post by Graf Zahl »

Or just delete the "next" map... :mrgreen:
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3147
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain

Re: A "changenextmap" command.

Post by drfrag »

Yeah but we start to see a lot of "next" maps from now on that wouldn't be nice.
So i've made another PR to use + for next and +$ for nextsecret, besides this way is more consistent and simpler.
https://github.com/coelckers/gzdoom/pull/1445

Return to “Closed Feature Suggestions [GZDoom]”