The Lightning class, required for TGE to connect to a server??
by Stefan Lundmark · in Torque Game Engine · 11/17/2004 (9:03 am) · 6 replies
I'm trying to remove the fx/lightning.cc and .h files, but they always make TGE refuse to connect to a server and asserts with a memory failure.
Debugging it goes to the packet handler in GameConnection, if I remember correctly. The compile shows no errors, whatsoever.
I think this is rather harsch :) My guess is that upon connecting GameConnection tries to send a packet that relies upon the lightning..
Anyone fiddled around with this before?
Debugging it goes to the packet handler in GameConnection, if I remember correctly. The compile shows no errors, whatsoever.
I think this is rather harsch :) My guess is that upon connecting GameConnection tries to send a packet that relies upon the lightning..
Anyone fiddled around with this before?
About the author
#2
I'm going from memory here, though. Just wanted to see if someone else had this "problem" too.
11/17/2004 (9:12 am)
Nope, the scripts are clean. I even tried deleting the server scripts, still the same error.. fails somewhere in GameConnection calling Tvertex.h I think.I'm going from memory here, though. Just wanted to see if someone else had this "problem" too.
#3
Sorry I cant be of more help, but at this point I'm stumped.
11/17/2004 (9:44 am)
I ran a search of every key word in the lightning files and see no reason at all that if you removed the files from your project, and then clean and rebuild your project that it shouldn't work just fine. Lightning as best I can tell is completely contained in the .h and .cc files and have no dependants.Sorry I cant be of more help, but at this point I'm stumped.
#5
If you delete the lightning.cc and lightning.h files, it will crash the game.
It doesn't happen when you create a server, only when you join.
I traced it with the debugger to this template inside tvector.h:
It points at mArray, where it fails. I have no clue whatsoever to do now but I thought I'd throw this out and see if someone else understands :)
Cheers
03/03/2005 (8:45 pm)
I've been fiddling around with this again. Quite interesting.If you delete the lightning.cc and lightning.h files, it will crash the game.
It doesn't happen when you create a server, only when you join.
I traced it with the debugger to this template inside tvector.h:
template<class T> inline void Vector<T>::push_front(const T& x)
{
insert(0);
mArray[0] = x;
}It points at mArray, where it fails. I have no clue whatsoever to do now but I thought I'd throw this out and see if someone else understands :)
Cheers
#6
03/04/2005 (9:08 am)
@ Stefan - Did you remove the references to lightning in objectBuilderGUI.gui and editorgui.cs (common/editor/)?
Torque Owner Gonzo T. Clown