Sub Commander update 06-15
There’s a bug in Sub Commander that gives me headaches like no other, but first another screenshot! The ship you see here is the anti-submarine cruiser, firing a load of anti-sub shells. When they hit the water, they sink down vertically until they hit either the bottom or the player.

But now about the bug. Here’s what happens: when I click the “Start game” button in the main menu, the game crashes nine times out of ten. No error message, it just closes with the notification “Torque Game Builder doesn’t work anymore”. I don’t get the slightest feedback about what’s going wrong. The weirdest thing is, from time to time it works again even if I don’t change anything in the source code! However, if I disable the title screen and go straight to the game (with the exact same code as in the title screen), everything works fine.
So what is the problem? I suspect it has something to do with the way I created the menu buttons. I didn’t use the gui builder because with sprites it’s easier to adjust everything to the screen resolution and aspect ratio. Perhaps there’s some weird bug in the mouse event handling that causes the game to crash, but since I don’t get any feedback this is just a wild guess. I’m gonna try to create the title screen with the gui builder and then make sure it adjust to the screen size and see what happens then.

June 15th, 2008 at 11:08 pm
I use sprites/t2d files for almost all my menus/guis as it’s far more practical than the GUI builder system. I use a behavior for the buttons and never had any problems, so I hope you can work it out. Sounds like quite a headache. Maybe post on the GG forums and link back here to see if anyone can help?