A "changenextmap" command.
Moderator: GZDoom Developers
-
- 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.
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.
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.
-
-
- 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.
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.
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.
-
- Posts: 13736
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: A "changenextmap" command.
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:
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.
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"
-
- 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.
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.
-
- Vintage GZDoom Developer
- Posts: 3147
- Joined: Fri Apr 23, 2004 3:51 am
- Location: Spain
Re: A "changenextmap" command.
IMO this didn't make much sense but i've extended the changemap command instead.
PR here: https://github.com/coelckers/gzdoom/pull/1443
PR here: https://github.com/coelckers/gzdoom/pull/1443
-
- Posts: 13736
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: A "changenextmap" command.
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.
I'll move it to code submissions anyway.
-
- Lead GZDoom+Raze Developer
- Posts: 49142
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: A "changenextmap" command.
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.
I see no reason not to add this, it's still better than having to maintain aliases.
-
- Posts: 13736
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: A "changenextmap" command.
Alright. Done and done, then.
-
- 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.
Someone could make a map called "next" with a message saying for example: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.
"You cheater! Why would you skip my awesome levels! Shame, just shame on you!"
Which would effectively nullify this command.
-
- Posts: 13736
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: A "changenextmap" command.
There's an effective way to deal with said mapsets:yum13241 wrote:Someone could make a map called "next" with a message saying for example: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.
"You cheater! Why would you skip my awesome levels! Shame, just shame on you!"
Which would effectively nullify this command.
Spoiler:
-
-
- Posts: 26540
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: A "changenextmap" command.
Perfect response. I don't know why more people don't just take that line with mods that dick the player around.
-
- Vintage GZDoom Developer
- Posts: 3147
- Joined: Fri Apr 23, 2004 3:51 am
- Location: Spain
Re: A "changenextmap" command.
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.
-
- Lead GZDoom+Raze Developer
- Posts: 49142
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: A "changenextmap" command.
Or just delete the "next" map...
-
- Vintage GZDoom Developer
- Posts: 3147
- Joined: Fri Apr 23, 2004 3:51 am
- Location: Spain
Re: A "changenextmap" command.
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
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