Missing file
by Charmaine Webb · in Torque Game Builder · 03/03/2007 (2:56 pm) · 3 replies
After scripting and set up my game in Torque Game Builder Version 1.1.3 all I am getting is a black screen when trying to play it. When I look at the console I am getting Missing file: Monkey Mountain/gameScripts/game.cs! When I look in my folder for the game I see a game.cs and game.cs.dso and when I look in Torsion it is there. Now I have tried to close both and just open Torque Game Builder by itself and still I receive the same message. I also tried deleting all of the script files and rebuilding them and still the same problem. I also tried taking out all the script files except the game.cs and still the same problem. The last thing I tried was to delete all the script files except the game.cs and also deleted the game.cs.dso and tried just changing the game.cs and then saving it to get a new game.cs.dso and then put the other scripts back same result with the console saying the game.cs file was missing.
Is there anything else I can do?
Is there anything else I can do?
About the author
#2
03/09/2007 (1:53 pm)
Thanks for your response. A couple of hours after posting this I relized I did something stupid. I had deleted all the .cs or script files and then started a new project and instead of keeping the game.cs that is made when you start a new project I deleted it and then added my old one back. Torque does not like you to do this. So after deleting the project again and seeing that the game.cs is automaticly there I was able to get it to work okay.
#3
03/09/2007 (8:53 pm)
@Charmaine: Glad you got it all working!
Torque Owner Arthur Ogawa
You might exhibiting the code that is trying to read that file; in the usual case, it is your main.cs.
Are you running under the Level Editor, or have you packaged you game up?
Here, for reference, is the log for my TGB 1.1.3 as it opens a game in the Level Editor:You can see where the game.cs file is read in. Here is the relevant portion of main.cs:
function initializeProject() { // Load up the in game gui. exec("~/gui/mainScreen.gui"); // Exec game scripts. exec("./gameScripts/game.cs"); ... }In the above, the "~/" and the "./" are a bit of black magic (I don't feel I really understand them well). What does yours look like?Can the space character in "Monkey Mountain" be a factor? Just a vague thought.