Page 1 of 1
[All?] Bug? Teleport_NewMap doesn't work over 99
Posted: Tue Jul 24, 2012 9:06 pm
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.
Re: [All?] Bug? Teleport_NewMap doesn't work over 99
Posted: Wed Jul 25, 2012 3:38 am
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].
Re: [All?] Bug? Teleport_NewMap doesn't work over 99
Posted: Wed Jul 25, 2012 3:43 am
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.
Re: [All?] Bug? Teleport_NewMap doesn't work over 99
Posted: Wed Jul 25, 2012 9:47 am
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.
Re: [All?] Bug? Teleport_NewMap doesn't work over 99
Posted: Wed Jul 25, 2012 10:14 am
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.
Re: [All?] Bug? Teleport_NewMap doesn't work over 99
Posted: Wed Jul 25, 2012 10:40 am
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".