[0.4.0] [SW] "map" console command acts weird

Moderator: Raze Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
Kinsie
Posts: 7402
Joined: Fri Oct 22, 2004 9:22 am
Graphics Processor: nVidia with Vulkan support
Location: MAP33

[0.4.0] [SW] "map" console command acts weird

Post by Kinsie »

Using the "map" console command to go to one of the campaign missions will actually take you to the level after that.

Easy enough to reproduce. Start a new game and type "map $bullet" into the console. It'll print "Entering 2..." and load $dozer.map instead.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49189
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.4.0] [SW] "map" console command acts weird

Post by Graf Zahl »

Probably some stupid miscounting somewhere. I think it comes from copy/pasting the code and forgetting to change that this is 0-based while the other games are 1-based.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49189
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.4.0] [SW] "map" console command acts weird

Post by Graf Zahl »

fixed.
User avatar
Rachael
Posts: 13836
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [0.4.0] [SW] "map" console command acts weird

Post by Rachael »

Graf Zahl wrote:Probably some stupid miscounting somewhere. I think it comes from copy/pasting the code and forgetting to change that this is 0-based while the other games are 1-based.
EDuke32 is 0-based, I found that out the hard way when implementing levelwarp and wondering why I kept going to the wrong map.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49189
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.4.0] [SW] "map" console command acts weird

Post by Graf Zahl »

I know that EDuke is 0-based. My own map list is also 0 based. The mistake I made was assuming that the "swtrek" cheat was 1-based.

Return to “Closed Bugs [Raze]”