Game Development Community

TGB Crashes with latest drivers on NVIDIA [FIX included]

by Fyodor -bank- Osokin · in Torque Game Builder · 11/18/2009 (10:21 am) · 0 replies

If you experience a crash on NVIDIA (mid/hi-end cards like GF GTX 285) + Vista/W7 using latest drivers, here is a way to solve it.

The problem is, that drivers reports a lot of supported extensions (like GL_ARB_depth_texture, GL_SGIS_generate_mipmap, GL_SUN_slice_accum, GL_WIN_swap_hint, etc), so the whole list does not fit the default buffer for Con::_printf().

Open console.cc
scroll down to this part (line 492 in stock TGB174):
static void _printf(ConsoleLogEntry::Level level, ConsoleLogEntry::Type type, const char* fmt, va_list argptr)
{
   Con::active = false; 

   char buffer[4096];
   U32 offset = 0;
   if(gEvalState.traceOn && gEvalState.stack.size())
   ...
and change the buffer from 4096 to 8192, so we can handle large strings.
Rebuild.