Game Development Community

CommandToClient Crash

by Howard Dortch · in Torque Game Engine · 09/16/2005 (9:40 am) · 2 replies

I get a crash sometimes when the game is running. Sometimes as in 5 min or 5 hours so can't pin it down but when it crashes it's always the same place. The EIP after the crash leads me to a net message that deals with commandToClient and invalid tag.
I was sending text using this method. Not tagged text but double quote kind of text. In the docs it says to tag, and detag strings like that but in the examples it shows strings as in commandToClient(%this, 'BottomPrint',"Starting a new game",5,1);
So I guess the question is sending untagged strings MAY cause the engine to crash ?
Engine crashes on sendRemoteCommand at this line if(U8(argv[0][0]) != StringTagPrefixByte)

#1
09/16/2005 (9:45 am)
I've seen this happen when you send the command to a invalid client ID before it has been removed.
#2
09/26/2005 (6:47 am)
This turns out not to be a problem, it just happens to be at this point in the code when another function fails. Problem solved thanks Stefan.