News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 25th Sep 2001, 12:26 PM   #1
TaoPaiPai
Commisaire Van Loc
 
TaoPaiPai's Avatar
 
Join Date: Jun. 13th, 2000
Location: Matnik
Posts: 1,623
Name of the map

Is there an easy way to get the filename of the map being played or do I have to manually parse the URL I got from level.getLocalUrl()
?
(this kind of operations often lead to unexpected bugs so I would prefer to avoid it )
TaoPaiPai is offline   Reply With Quote
Old 25th Sep 2001, 12:33 PM   #2
TaoPaiPai
Commisaire Van Loc
 
TaoPaiPai's Avatar
 
Join Date: Jun. 13th, 2000
Location: Matnik
Posts: 1,623
Disregard,I found it.
You could use the parseoption(String url,string keyToFind)
To find an option value in a game url,but It's not really necessary since the filename is just the first sequence of letters before a "?".

(for the record the option 'keys' are:
game,mutator,name,class,face,skin,voice )
TaoPaiPai is offline   Reply With Quote
Old 25th Sep 2001, 05:12 PM   #3
ca
CHiMERiC Grandmaster
 
Join Date: Oct. 11th, 1999
Posts: 84
GetMapURL() is what I've used, didn't have to parse it. Check out the UTMenu code for the practice window or something and see how mek got the name of the maps, or maybe in the scoreboard...
__________________
ca
ray@unrealscript.com
http://www.unrealscript.com/
ca is offline   Reply With Quote
Old 25th Sep 2001, 06:12 PM   #4
TaoPaiPai
Commisaire Van Loc
 
TaoPaiPai's Avatar
 
Join Date: Jun. 13th, 2000
Location: Matnik
Posts: 1,623
It must be getUrlMap()
Yes I'll give it a try,it is in actor and there are a bunch of interesting file-related functions there.
Thank you.
TaoPaiPai is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:42 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer