[No] MAPINFO: Add a "maplump" parameter

Moderator: GZDoom Developers

MAPINFO: Add a "maplump" parameter

Postby Ebenezer Drizzlekick » Wed Nov 13, 2019 8:50 am

I am making a mapset where I want the same map to appear multiple times (a difficulty selection map at the start of each episode), and I don't know of any way to do this easily without duplicating the map.

I was thinking it might be a good idea to have a "maplump" property in MAPINFO, which would allow us to define the same entry multiple times, and instead of using the map lump from the name in the MAPINFO file, it will instead use the map lump pointed by maplump. This way our mapinfo entry can have all the correct details we need for the duplicated version, and it will point to the actual map lump we need.

An example of this would be:

map MYMAP lookup "HUSTR_E1M1"
{
next = "E1M2"
secretnext = "E1M9"
sky1 = "D1SKY1"
cluster = 1
par = 30
music = "$MUSIC_E1M1"
exitpic = "$IN_E1"
enterpic = "$IN_E1"
InterMusic = "D_INTER"
BorderTexture = "FLOOR7_2"
maplump = "E1M1"
}

This would effectively clone E1M1 to a new map slot. using "changemap MYMAP" would take us here, and for all intents and purposes MYMAP exists as a valid map, but it has the layout of E1M1
Ebenezer Drizzlekick
 

Re: MAPINFO: Add a "maplump" parameter

Postby Gez » Wed Nov 13, 2019 10:25 am

You could extend your skill selection map to also be an episode selection map.
Gez
 
 
 
Joined: 06 Jul 2007

Re: MAPINFO: Add a "maplump" parameter

Postby Tartlman » Wed Nov 13, 2019 10:53 am

I would say that this is unnecessary as this sort of situation doesn't crop up much, and when this sort of thing does come up there's another way to do it that arguably looks better, as gez said.
User avatar
Tartlman
shitposting with zscript
 
Joined: 11 Oct 2018
Location: meme hell
Discord: bogus#2947
Github ID: boogiebogus

Re: MAPINFO: Add a "maplump" parameter

Postby Graf Zahl » Wed Nov 13, 2019 11:10 am

I know precisely one mod ever needing that and that was Daedalus with its travel tube.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests