Change NERVE.WAD level names from LEVEL## to MAP33 onwards

Moderator: GZDoom Developers

sacarias
Posts: 50
Joined: Wed Oct 02, 2019 9:39 am

Change NERVE.WAD level names from LEVEL## to MAP33 onwards

Post by sacarias »

I just learned that GZDoom changes NERVE.WAD's level names from MAP01-09 to LEVEL01-09 for compatibility with Doom 2 BFG.

I was proposing to use instead MAP33-41, so that idclev and other console/command line commands also work like in Doom 2, while still retaining compatibility with BFG edition.

Think it's possible? Thanks.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49183
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Change NERVE.WAD level names from LEVEL## to MAP33 onwards

Post by Graf Zahl »

Nobody here uses idclev anymore. We use the "map" console command.
User avatar
MartinHowe
Posts: 2047
Joined: Mon Aug 11, 2003 1:50 pm
Location: Waveney, United Kingdom

Re: Change NERVE.WAD level names from LEVEL## to MAP33 onwards

Post by MartinHowe »

Graf Zahl wrote: Tue Mar 26, 2024 11:34 am Nobody here uses idclev anymore. We use the "map" console command.
Speak for yourself :lol: (Many years' force of habit :D )
Gez
 
 
Posts: 17934
Joined: Fri Jul 06, 2007 3:22 pm

Re: Change NERVE.WAD level names from LEVEL## to MAP33 onwards

Post by Gez »

Technically can be done with LevelNum property I think. Look at how the map slots in Hexen are completely disconnected from their visit## number, e.g. MAP28 is visit14, not visit28.
sacarias
Posts: 50
Joined: Wed Oct 02, 2019 9:39 am

Re: Change NERVE.WAD level names from LEVEL## to MAP33 onwards

Post by sacarias »

Ok, "nobody uses idclev anymore".

I just had thought that, however hard-coded the name changes from "MAP##" to "LEVEL##" were, it was probably very simple to just change the strings again...
Professor Hastig
Posts: 255
Joined: Mon Jan 09, 2023 2:02 am
Graphics Processor: nVidia (Modern GZDoom)

Re: Change NERVE.WAD level names from LEVEL## to MAP33 onwards

Post by Professor Hastig »

By now there's so many mods that use non-standard map names that I completely stopped using idclev. Most of the time I even use 'changemap' instead of 'map' because it doesn't strip the inventory.
sacarias
Posts: 50
Joined: Wed Oct 02, 2019 9:39 am

Re: Change NERVE.WAD level names from LEVEL## to MAP33 onwards

Post by sacarias »

I did testings.

Edited NERVE.WAD using SLADE just like GZDoom does at the end of the function:
https://github.com/ZDoom/gzdoom/blob/ma ... .cpp#L2384
but using the nomenclature I proposed in OP: instead of "LEVEL##" use "MAP33" onwards.

Then created a mapinfo.txt lump, being just an excerpt of the doom2.txt core lump with only the relevant parts for NERVE.WAD, and also changing all LEVEL## references for MAP33 onwards, and changing *only* these.

Packed the txt lump into a PK3, and ran GZDoom with -iwad DOOM2.WAD, and both custom NERVE.WAD and custom.pk3.

Results:
**Everything worked as wanted**.
idclev works, console map command works, music works correctly, playing through in general as well.
Also, levelnum directive in mapinfo.txt was not needed neither.
So both current school and old school users could remain happy.

This makes me thing that, if making proposed changes just to the aforementioned function, it would work just as good, *without* doing any complicated stuff of the like.

Probably a similar reasoning could have been done for Master Levels, but given the way they were originally released back in time, more like *individual* WADS, probably indeed leave it like that in this case.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49183
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Change NERVE.WAD level names from LEVEL## to MAP33 onwards

Post by Graf Zahl »

We won't break established naming some external tools may depend on just because one user is too attached to the idclev cheat. Everything will remain as it is.

Return to “Closed Feature Suggestions [GZDoom]”