Multiple clients, single computer for debugging
by W. Wood Harter · in Torque Game Builder · 01/10/2007 (12:34 pm) · 6 replies
I went through the forum TGB forum and did not find a direct answer.
Is there a way to run two TGB clients while debugging something as simple as the Checkers Tutorial, or do I have to have two computers. I've tried a couple of things, like running TGB.exe directly and trying to change the main.cs file, but no luck. The second instance just won't start.
Thanks,
Wood
Is there a way to run two TGB clients while debugging something as simple as the Checkers Tutorial, or do I have to have two computers. I've tried a couple of things, like running TGB.exe directly and trying to change the main.cs file, but no luck. The second instance just won't start.
Thanks,
Wood
#2
Thanks,
Wood
01/10/2007 (2:50 pm)
No, just the INDIE/EDU license. I'm teaching a class and planning on using TGE next semester. I was looking at TGB as a possible intro to Torque script and the networking aspects of Torque. If everyone has to use two computers it really isn't going to work in the lab. With the TGE (what I'm mostly focused on) I know I can get around this.Thanks,
Wood
#3
It seems that this is possible if you have the source and can do a debug compile. It would make sense for GG to have two versions of TGB.exe. The first being the same one that ships now, the second being a TGB-debug.exe that is built with a debug compile. It doesn't seem to be a lot of extra work to add a second exe to the distribution and adds a lot more flexibility to the TGB.
If I found someone with the source (pro license) is it against the license to get them to build me a debug compile version that I could use with my class?
01/11/2007 (4:15 pm)
So, since no one has responded I'll assume that this is not doable and I'll leave an idea for future releases of TGB.It seems that this is possible if you have the source and can do a debug compile. It would make sense for GG to have two versions of TGB.exe. The first being the same one that ships now, the second being a TGB-debug.exe that is built with a debug compile. It doesn't seem to be a lot of extra work to add a second exe to the distribution and adds a lot more flexibility to the TGB.
If I found someone with the source (pro license) is it against the license to get them to build me a debug compile version that I could use with my class?
#4
01/11/2007 (9:52 pm)
You probably could do that but I would email GG's directly.
#5
You can certainly have someone with the source code provide you a debug build, and in fact can also ask them to just remove the 3 or so lines that force one instance only if you like.
01/12/2007 (12:05 am)
It's been noted internally, but there is no way to currently allow multiple instances of the executable without a debug mode/source code change.You can certainly have someone with the source code provide you a debug build, and in fact can also ask them to just remove the 3 or so lines that force one instance only if you like.
#6
The function to change is onClientConnected(%client) in file ./gameScripts/server/serverCheckers.cs. I believe you end up with $serverConnection and $playerConnection having the same value.
Good luck with the tutorial!
02/07/2007 (9:40 pm)
In working through the Checkers Tutorial, I found that I could modify the code so that the locally connected client would play both red and blue teams. At that point, I could do practically all my debugging on a single host.The function to change is onClientConnected(%client) in file ./gameScripts/server/serverCheckers.cs. I believe you end up with $serverConnection and $playerConnection having the same value.
Good luck with the tutorial!
Associate David Montgomery-Blake
David MontgomeryBlake