Game Development Community

startGame: End the game first!

by Robert Brower · in Torque Game Engine · 01/25/2003 (3:08 pm) · 5 replies

I have a problem where I exit the game I'm hosting, then start the same or even a different mission and I get this console error 'startGame: End the game first!' I didn't change anything in the script in regards to this stuff.

Has anyone gotten this error and figured out why? I could sure use a pointer. Thanks.

Robert

#1
01/25/2003 (11:43 pm)
Have you tried the latest HEAD version?
#2
01/26/2003 (8:04 am)
Yes, I'm using the HEAD. I have made very little changes to it also. I was hoping well not hoping that someone else had this problem but if someone did a light would go on and I would have my solution. I'll keep digging. Thanks.
#3
01/26/2003 (2:38 pm)
I get that too..

Doesnt have any bad effects, as far as I can tell.

Possibly, its just a little debug message for a bug thats fixed.
#4
01/26/2003 (4:03 pm)
If I recall correctly, this bug happens because endGame isn't called when the server is killed... it's only called when the mission is changed... basically calling endgame on server destruction should fix the bug...
The problem with this is that it considers that the game never ended so i guess time keeps going... not sure... haven't looked at the consequences.. I just fixed it some time ago
#5
01/26/2003 (8:40 pm)
I was calling my own init function in startGame() which seemed like the best place to put the call. It loops through objects in a particular sim group and applies a random impulse to them. it should happen at the beginning of every game. That's how I realized it was a problem. Thanks for the advice people!

Robert