Game Development Community

Failed to load main.cs

by gamer · in General Discussion · 03/10/2006 (5:23 pm) · 5 replies

Hi, I am new to Torque. I loaded the project files into visual studio v7, built the Torque Demo successfuly. But when it runs it generates this error:failed to open main.cs. Why? I have already executed the file VC7 .cc compiling to add it to registery.
any idea?
thanks

#1
03/10/2006 (5:26 pm)
You probably need to set the working directory for the executable.

that'll be in project settings | debug

set the directory to be the root torque folder.
#2
03/10/2006 (5:42 pm)
Orion,
thanks you are right.
Another problem I encountered is loading the cs file by exec(testScript/test.cs) gives me
missing File: -1.IND!
this is my settings:
1.first line of main.cs:
$defaultGame = "GameOne";
2.GameOne/testScript/test.cs exists
what's wrong?
#3
03/10/2006 (5:49 pm)
Heh,
try quotes ?

it's probably trying to divide testScript by test.cs..
#4
03/10/2006 (5:52 pm)
Errr, your right. my stupid mistake. I am getting my feet wet and ready to dive into the world of torque.
thanks
#5
03/10/2006 (5:56 pm)
Errr, your right. my stupid mistake. I am getting my feet wet and ready to dive into the world of torque.
thanks