Game Development Community

Unknown command OnClientEnterGame?

by Dennis Lamers · in Torque 3D Beginner · 06/12/2013 (5:20 am) · 3 replies

Hey,

Today I was editing the game GUI and I had tested it a couple of times. Everything worked till I saw this error in the console when "STARTING MISSION" was frozed. When I start a server I see this error in the console, I google'd but it seems that I am the only one with this error? I haven't edited anything in the gameDM.cs, so it's really strange it worked five minutes ago still.

scripts/server/gameDM.cs (103): Unknown command OnClientEnterGame

When I go to rule 103, I see this:
function DeathMatchGame::onClientEnterGame(%game, %client)
{
//echo (%game @"\c4 -> "@ %game.class @" -> DeathMatchGame::onClientEnterGame");

parent::onClientEnterGame(%game, %client);
}

Nothing wrong..?

#1
06/12/2013 (6:39 am)
Uncomment the echo.
function DeathMatchGame::onClientEnterGame(%game, %client)
{
echo (%game @"\c4 -> "@ %game.class @" -> DeathMatchGame::onClientEnterGame");

parent::onClientEnterGame(%game, %client);
}

And check your console log for other errors. My guess is that your error is in GameCore.cs and that it's crying about parent::onClientEnterGame() - letting that echo fire should help narrow this down.
#2
06/13/2013 (3:27 am)
I still get the same error.. I don't know anymore what to do about it. The file was last modified on 8 may when I installed the new game project, after it all the .cs files were never edited.

It's really strange.
#3
06/13/2013 (2:52 pm)
Of course you get the same error - but does it echo out what you expect? What is the output?

Debugging 101 - follow the code man....

Watch the console - in game/console.log - read every line, look for errors and echo output. Use your Batman Detective skills.