Game stuck on Starting Mission
by Ashley Sidebottom · in Torque 3D Professional · 08/07/2011 (5:12 am) · 15 replies
Hi. I was working on the game project and decided to call it a night. When i came back this morning, the Game freezes on the loading screen under 'Starting Mission' and doesn't go any farther. I cant even use the world editor. I have checked around the scripts but all seems ok, Any ideas? Cheers
About the author
Student @ University of Huddersfield | Games Designer | sidearse@live.co.uk http://www.sid3bottom.co.uk http://www.bashgames.co.uk
#2
08/07/2011 (6:20 am)
Iv been comparing it to a different game, and all the commands like 'cancel' and 'isObject' etc, are not written in blue in torsion unlike the other project. Would this be anything to do with why the game is not working? I have reverted back to a older version of the game, and still no luck
#3
Dont forget to comment it out after you are done.
You can also turn trace on and off at the beginning and end of functions for finer control and less spam once youve narrowed down the problem.
08/07/2011 (6:55 am)
Your torsion output window shoud be pretty much telling you where its going wrong, if not if you add a trace (add trace(1); to the start of main.cs) to your debug builds you can get a ridiculous amount of console spam, however this does make it easier to find out where exactly things are going wrong, so long as you dont mind searching through lots of text.Dont forget to comment it out after you are done.
You can also turn trace on and off at the beginning and end of functions for finer control and less spam once youve narrowed down the problem.
#4
'Precompiling...
Precompile failed
'
then;
'Executable Launch Fail'
08/07/2011 (7:16 am)
Thanks, but i think its really screwed. Even adding trace(1); to the beginning of Main.cs still doesn't work. I get a pre compile error'Precompiling...
Precompile failed
'
then;
'Executable Launch Fail'
#5
08/07/2011 (9:10 am)
Any messages in the console?
#6
Howver in Torsion console i just get
'Precompiling...
Precompile failed
'
08/07/2011 (9:27 am)
None when the game runs because it doesn't get that far, unless i can bring it up on the loading screen? Howver in Torsion console i just get
'Precompiling...
Precompile failed
'
#7
Are you using the Full Template or Empty Template as the basis for your project?
If the game is not progressing to the point in which you can view the console, then your error likely lies in the initializing stage of your scripts because you should be able to toggle the console open as early as the splash screen.
Peruse the console.log file for any likely errors.
08/07/2011 (9:46 am)
I have no experience with Torsion, so can't help with it's warnings and errors.Are you using the Full Template or Empty Template as the basis for your project?
If the game is not progressing to the point in which you can view the console, then your error likely lies in the initializing stage of your scripts because you should be able to toggle the console open as early as the splash screen.
Peruse the console.log file for any likely errors.
#8
'Entering listHasElement(^640 480^720 480^720 576^800 600^1024 768^1152 648^1152 864^1280 720^1280 768^1280 800^1280 960^1280 1024^1360 768^1360 1024^1366 768^1400 1050^1440 900^1600 900^1680 1050^1776 1000, 1440 900)
Leaving listHasElement() - return 1'
repeating over and over around 300 times, with the exact same message and no changes in digits.
Im also getting weird things like this ' scripts/server/gameCore.cs (179): Unknown command onMissionEnded.'
I think im just going to have to give up and start from scratch.
08/07/2011 (10:14 am)
I used a template. I have foudn the console.log and looking through compared to the backups it looks really screwed up. Everything is 'Returning' and i have a 'Entering listHasElement(^640 480^720 480^720 576^800 600^1024 768^1152 648^1152 864^1280 720^1280 768^1280 800^1280 960^1280 1024^1360 768^1360 1024^1366 768^1400 1050^1440 900^1600 900^1680 1050^1776 1000, 1440 900)
Leaving listHasElement() - return 1'
repeating over and over around 300 times, with the exact same message and no changes in digits.
Im also getting weird things like this ' scripts/server/gameCore.cs (179): Unknown command onMissionEnded.'
I think im just going to have to give up and start from scratch.
#9
' scripts/server/gameCore.cs (179): Unknown command onMissionEnded.'
Lead me to believe that you have a syntax error in the file somwehere and the functions arent being loaded, tho torsion usually picks these up.
Dis you add a new exec() line in game.cs and miss out a semi colon? this really does look like a syntax error, its amazing how the simplest of errors often look like causing the biggest blowup.
Starting from scratch isnt always the best idea, it is things like this that create experience, and when it happens again, and it probably will, you will know how to fix it :)
An alternative that i used a lot in my early torque learning days was to start a parallel project then using diff/merge software to scope out the changes
08/07/2011 (12:14 pm)
the entering/leaving and return lines are all part of the trace() function.' scripts/server/gameCore.cs (179): Unknown command onMissionEnded.'
Lead me to believe that you have a syntax error in the file somwehere and the functions arent being loaded, tho torsion usually picks these up.
Dis you add a new exec() line in game.cs and miss out a semi colon? this really does look like a syntax error, its amazing how the simplest of errors often look like causing the biggest blowup.
Starting from scratch isnt always the best idea, it is things like this that create experience, and when it happens again, and it probably will, you will know how to fix it :)
An alternative that i used a lot in my early torque learning days was to start a parallel project then using diff/merge software to scope out the changes
#10
08/07/2011 (2:44 pm)
Thanks for you help & incouragement. Iv looked in all the Main.cs and even replaced them but still no look. The Server init.cs looks all clean too. Im guessing its something in my Gamecore.cs. However im still convinced that its something to do with my commands, like cancel and isObject don't show up blue like they do in my other projects.
#11
in function GameCore::onMissionLoaded there was this line of code
Somehow a F got in there. Its probs my fault but im gunna go ahead and blame it on my cat :)
Cheers for the help
08/07/2011 (3:02 pm)
Thanks for all your help iv solved it :Din function GameCore::onMissionLoaded there was this line of code
$Game::Duration = %game.duration;f
Somehow a F got in there. Its probs my fault but im gunna go ahead and blame it on my cat :)
Cheers for the help
#12
08/07/2011 (3:15 pm)
syntax errors are to programmers what peas are to princesses :)
#13
08/07/2011 (3:20 pm)
Slaps Mr.Sidebottom around with a large trout
#14
08/07/2011 (3:23 pm)
Yup, lots of days lots and time spend stressing over it. Cheers guys
#15
Funniest thing I've read on here in a while, lol...
Yes it's always a simple syntax thing like that, with me it's often a missed semicolon that will blow up everything. When I get major epic failures like this, first thing I do is go back to the last few files I edited and comb them for a missing semicolon. 9.9 times out of 10 that's the issue and it's a simple fix.
08/08/2011 (6:53 am)
"Its probs my fault but im gunna go ahead and blame it on my cat :)"Funniest thing I've read on here in a while, lol...
Yes it's always a simple syntax thing like that, with me it's often a missed semicolon that will blow up everything. When I get major epic failures like this, first thing I do is go back to the last few files I edited and comb them for a missing semicolon. 9.9 times out of 10 that's the issue and it's a simple fix.
Associate Steve Acaster
[YorkshireRifles.com]