Game Development Community

Mission won't load

by Snaggz · in Torque Game Engine · 05/30/2006 (9:38 pm) · 4 replies

I have an on collision function that loads a new mission...

function clientCmdLoadFight()
{
schedule(0,0,loadMission,"~/data/missions/fight.mis");
}

it goes through the client but when it goes to load i get a "Cant find ~/data/missions/fight.mis file" error.

the file path is right. the only thing i can think of is that the path is being called from the common folder that the missionLoad.cs is in. but i thought it was supposed to work the way i had it. Does anyone know what i did wrong? thanks

#1
05/30/2006 (10:51 pm)
Try doing



"projectfolder/data/missions/fight.mis"

Can't say that will work, but i just noticed that's how my stuff is laid out.
#2
05/31/2006 (2:17 am)
Hmm still says cant find mission =/
#3
05/31/2006 (2:30 am)
I was right about the common folder thing. I copied the missionLoad.cs into my server folder of my game and now it works. It would be nice to know how to navigate from the common to my game though. Maybe setModPath()?
#4
06/01/2006 (1:10 am)
Ok your right ramen that works now... thanks a lot :)