Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Wed May 22, 2013 12:04 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: pucilarity with gameLocal.mapFileName
PostPosted: Wed Jun 24, 2009 1:56 am 
Offline
picked up 75 health
User avatar

Joined: Fri Oct 06, 2006 3:04 pm
Posts: 77
Location: BASH Shell
when I try something like this within a gameLocal function (after a map has been loaded):

idStr thisMapName = mapFileName;

the string will copy just fine, presumably using the overloaded = operator for idStr, but the game will crash when I close doom3.

however, if I do this in it's stead:

idStr thisMapName = mapFileName.Left( mapFileName.Length() );

it works and doesnt crash the game.


any ideas why this might be happening?

_________________
Programmer,
Hexen: Edge of Chaos | Forum
Doom 3: Phobos | Forum


Top
 Profile  
 
 Post subject: Re: pucilarity with gameLocal.mapFileName
PostPosted: Fri Jun 26, 2009 5:25 am 
Offline
fired 300 rounds

Joined: Thu Jun 16, 2005 4:01 pm
Posts: 311
not sure, but I've been messing around with the parser, and they use 'filename' as the name of the currently loaded file, not 'mapFileName', for the scripts. so, maybe try using that instead?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group