Game Development Community

Demo games won't start: openGL issue?

by Minty Hunter · in Torque Game Builder · 02/25/2007 (11:08 pm) · 3 replies

TGB's been working fine for a couple of months on my system, but when I make a build of the example games (eg: WhackAMole/TankBuster), the exe refuses to launch.

I've de-installed and re-installed TGB, restarted, updated my 6600GT drivers to the latest from NVidia- no joy. The games will play fine when run from within TGB, but not when built as .exes.

It looks from the console log that OpenGL isn't being accessed properly.

Any suggestions as to how to fix this?

Cheers
Minty

Initializing chunk mappings...
   o 'TEXT' maps to TextChunk
   o 'SCHK' maps to UnknownChunk
   o 'SCHK' maps to SimChunk
Could not load this GL function: glGenTextures
Could not load this GL function: glBindTexture
Could not load this GL function: glTexImage2D
Could not load this GL function: glTexParameteri
Could not load this GL function: glTexParameteri
Could not load this GL function: glTexParameteri
Could not load this GL function: glTexParameteri
Loading compiled script common/main.cs.
--------- Parsing Arguments ---------

--------- Initializing Common ---------
Loading compiled script common/preferences/defaultPrefs.cs.
Reading Display Device information...
   Primary Display Device Found:
      Vendor Id: VEN_0000
      Device Id: DEV_0000

Using OpenGL rendering. Fullscreen: 0

Compiling common/preferences/prefs.cs...
Loading compiled script common/preferences/prefs.cs.
Loading compiled script common/gameScripts/common.cs.
Loading compiled script common/gameScripts/audio.cs.
Loading compiled script common/gameScripts/canvas.cs.
Loading compiled script common/gameScripts/cursor.cs.
Binding server port to default IP
UDP initialized on port 0
Canvas creation failed. Shutting down.

#1
02/26/2007 (6:08 pm)
@Minty, if you set 'fullscreen = 1' does it make a difference? Whats the resolution of the display, and the resolution that game is trying to initialize ... ?

Also, Tank Buster is TorqueX, not TGB --
#2
02/26/2007 (9:22 pm)
@David: Weirdness. Everything is working again, just before I read your post. I was careful about stepping through possible issues and rebooting to make sure it wasn't just system flakiness, but I can't pin down a reproducible step. Maybe it's something intermittent, like a peculiar graphics card choke at a certain temperature.

I can't get it to _fail_ now. So for the moment, I'll keep going and if it arises again, try and find the common denominator. Thanks for the support though!

Quote:Also, Tank Buster is TorqueX, not TGB

I was trying the simple TankBuster demo that uses the plane that can be seen in the TGB banner image (I've had it running before, and it's also working again). Perhaps there are two games with similar names; the one I have is from:
http://demos.garagegames.com/t2d/TankBusterGame_1_1_1.zip
#3
02/26/2007 (10:00 pm)
@Minty, ahh, I've not seen Tank Buster for TGB ... I've only seen it included with TorqueX -- my apologies, and thanks for pointing it out.