[All?] Bug? Teleport_NewMap doesn't work over 99

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom 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.
Post Reply
TimeOfDeath
Posts: 57
Joined: Sun Apr 09, 2006 12:54 pm
Contact:

[All?] Bug? Teleport_NewMap doesn't work over 99

Post by TimeOfDeath »

I tried the action on a line and with a script, but Teleport_NewMap does nothing if the map number is more than 99.
Gez
 
 
Posts: 17943
Joined: Fri Jul 06, 2007 3:22 pm

Re: [All?] Bug? Teleport_NewMap doesn't work over 99

Post by Gez »

Is the map number explicitly set in MAPINFO? I think the automatic numbering is only done for map names of the form MAPxx, and with two digits you can only go from 00 to 99. If you have MAP100, you need to tell it that its levelnum is 100 in the [wiki]map definition[/wiki].
User avatar
Enjay
 
 
Posts: 26993
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: [All?] Bug? Teleport_NewMap doesn't work over 99

Post by Enjay »

[edit] beaten to it [/edit]

Not quite sure what is going wrong for you but it does work. My Burghead mod (all the map numbers are above 99) uses Teleport_NewMap for most, if not all, of the map changes and it still works with the current ZDoom release.

I don't know if this is where the problem lies or not but all my maps above 99 have a levelnum defined in MAPINFO. If yours do not have this, then try adding it and see if it makes any difference.
TimeOfDeath
Posts: 57
Joined: Sun Apr 09, 2006 12:54 pm
Contact:

Re: [All?] Bug? Teleport_NewMap doesn't work over 99

Post by TimeOfDeath »

example wad: telnewmap150.wad

I do have a mapinfo lump in mine. The maps above 99 work fine with the normal exit action and console command, it's just teleport_newmap that I can't get to work (you start on map01 and can pick which map to go to). I did just notice in xwe that all maps above 99 are listed as "markers" instead of "maps" for some reason, is that a problem? I'm using doom builder 1.68.
User avatar
Enjay
 
 
Posts: 26993
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: [All?] Bug? Teleport_NewMap doesn't work over 99

Post by Enjay »

As has been stated already, you need to used the levelnum map property. If you add that, it works.

map map150 "map150"
levelnum 150
next map150
nocrouch

instead of

map map150 "map150"
next map150
nocrouch

Also, you are using the old [wiki]MAPINFO[/wiki] format. You should use the newer format.
TimeOfDeath
Posts: 57
Joined: Sun Apr 09, 2006 12:54 pm
Contact:

Re: [All?] Bug? Teleport_NewMap doesn't work over 99

Post by TimeOfDeath »

Ok great, thanks it works now. My bad, a lot of programming stuff is over my head. I thought the levelnum meant map map150 "map150".
Post Reply

Return to “Closed Bugs [GZDoom]”