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

Moderator: Raze Developers

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

Postby Kinsie » Wed Feb 05, 2020 4:44 am

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
Kinsie
Dog Days
 
Joined: 22 Oct 2004
Location: MAP33
Discord: Find Me...
Twitch ID: thekinsie

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

Postby Graf Zahl » Wed Feb 05, 2020 4:52 am

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
 
Joined: 19 Jul 2003
Location: Germany

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

Postby Graf Zahl » Wed Feb 05, 2020 11:55 am

fixed.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby Rachael » Wed Feb 05, 2020 12:10 pm

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
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby Graf Zahl » Wed Feb 05, 2020 12:13 pm

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests