[All?] Bug? Teleport_NewMap doesn't work over 99
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.
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.
-
- Posts: 57
- Joined: Sun Apr 09, 2006 12:54 pm
- Contact:
[All?] Bug? Teleport_NewMap doesn't work over 99
I tried the action on a line and with a script, but Teleport_NewMap does nothing if the map number is more than 99.
Re: [All?] Bug? Teleport_NewMap doesn't work over 99
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].
Re: [All?] Bug? Teleport_NewMap doesn't work over 99
[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.
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.
-
- Posts: 57
- Joined: Sun Apr 09, 2006 12:54 pm
- Contact:
Re: [All?] Bug? Teleport_NewMap doesn't work over 99
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.
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.
Re: [All?] Bug? Teleport_NewMap doesn't work over 99
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.
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.
-
- Posts: 57
- Joined: Sun Apr 09, 2006 12:54 pm
- Contact:
Re: [All?] Bug? Teleport_NewMap doesn't work over 99
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".