Game Development Community

Machine Specific Issues.. Any idea how to debug them?

by Harry Durnan · in Torque Game Builder · 10/14/2012 (9:17 am) · 2 replies

In testing my game, one of my testers is having an issue with the game freezing up. I can't reproduce it on my machine, and I'm not seeing any clear errors in the console.log. Any ideas on how to figure out what the issue might be? I'm guessing it may be something in the TGB engine side... some sort of graphics or sound compatibility issue... but, I have no real clue how to diagnose that :0

#1
10/14/2012 (9:33 am)
Can the tester reproduce the problem? I hate these kind of issues when they pop up.

If I were you I think one of the easiest things to do is to disable/comment out everything code-wise or everything you KNOW FOR SURE isn't the problem and slowly introduce things back into the game. When it hangs again you can be pretty sure it has something to do with your last enabled code. Then you have to dig deeper into individual functions and stuff.

Another method I have done is in EVERY loop that MIGHT accidentally become infinite no matter how improbable is to stick a counter in the loop and if it loops for a crazy high number when it really shouldn't have, it echos to the console what loop is looping. Then you can look into that one and see if there really is a problem there. This one IS helpful believe me.

Those two are the only methods I can think off right now.
#2
10/19/2012 (8:10 am)
Try to figure out what are the differences between your machine and the tester's, such as operating system, video and audio cards etc.

I had the same problem recently, I have done my game on Windows XP, it was working smoothly on my machine until they tested it on Vista and 7, some issues have arised, I searched on the forum and found the solution.

I hope this helps.