Hyper.nl Unreal Services Forum Index Hyper.nl Unreal Services
The forum of Hyper.nl Unreal Services and the semi-offical resource for Winged Unicorn's Unreal mods
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

get current map filename? how

 
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk
View previous topic :: View next topic  
Author Message
SoulReaver



Joined: 15 May 2004
Posts: 162

PostPosted: Wed Jul 12, 2006 5:50 pm    Post subject: get current map filename? how Reply with quote

Hi, i want to know how to get the current filename of the map you are playing.

i looked into the actor's script and i found

GetMapName and
GetURLmap

but the syntax wasnt clear to me. a search didnt helped me.

plz tell me how.

thanks in advance

-SR
_________________
Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site.
Back to top
View user's profile Send private message
SoulReaver



Joined: 15 May 2004
Posts: 162

PostPosted: Wed Jul 12, 2006 6:33 pm    Post subject: Reply with quote

nvm this one either...

after a even harder search i found my answer in:

Engine.Maplist class


lock plz
_________________
Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site.
Back to top
View user's profile Send private message
SoulReaver



Joined: 15 May 2004
Posts: 162

PostPosted: Wed Jul 12, 2006 9:13 pm    Post subject: Reply with quote

arg crap i cant seem to slove it.

string s1 = getURLmap();
string s2 = "nyleve";

getURLmap returns:

"c:\unreal\maps\nyleve.unr"

while ( InStr(s1,"\\") > 0 )
s1=Right(CurrentMap,InStr(s1,"\\"));

if (s1 ~= s2)
{
broadcastmessage("it worked");
}

but it wont broadcast for some reason. does anybody see what im doing wrong

(this is an example script, my real on does other things, not broadcast etc)
_________________
Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site.
Back to top
View user's profile Send private message
SoulReaver



Joined: 15 May 2004
Posts: 162

PostPosted: Thu Jul 13, 2006 4:50 pm    Post subject: Reply with quote

nvm it wasnt a bug in my code, the map was requested to soon, so ir returned the standars: Unreal.exe... lol

well its fixed.

so lock this one plz
_________________
Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group