Game Development Community

Problem with adding field to GameConnection

by Joshua Jewell · in General Discussion · 03/14/2006 (10:50 pm) · 2 replies

I have scoured the forums and cannot quite find the answer I am looking for. Basically I added my own class and then added a field to GameConnection so that it could hold a pointer to that object. I wrote the proper code to allow this method to be used in the script but I am having a problem. When I try to access this field in a GUI element it always returns NULL. I did not write any code to communicate to the client that that field changed so I am guessing my problem lays there. My question is how would I achieve this. I see that the player class does it with write and read packet data. However GameConnection does not seem to have this method, my best guess is the similar readPacket and writePacket. Anyway if anyone can let me know if that is my problem, and/or point me in the direction of how to solve my problem I would greatly appreciate it.

#1
03/15/2006 (6:58 am)
Greetings!

I'd recommend that you move this discussion to the private Torque SDK forums. We can't talk about Torque C++ code here.

- LightWave Dave
#2
03/15/2006 (8:01 am)
Sorry about that, to be honest I could never find the private forums, turns out the scroll bar is not working correctly on this site with my version of firefox and the forums were all the way at the bottom.