Game Development Community

Compiling with #define TORQUE_LIB in TGE 1.4

by Ron Hasson · in Torque Game Engine · 01/22/2006 (7:06 pm) · 1 replies

Was trying to import a DTS model with >192 bones and failed with an Assertion with the stock 1.4 code.
After debugging, found the problem and came across this definition in tsIntegerSet.h

#if defined(TORQUE_LIB)
#define MAX_TS_SET_DWORDS 32
#else
#define MAX_TS_SET_DWORDS 6
#endif


Recompiling with TORQUE_LIB defined solves the problem.

Anyone knows what is the implication (e.g. added functionality, loopholes) with TORQUE_LIB enabled?
Thanks.

#1
02/10/2006 (9:22 pm)
You probably dont want to have TORQUE_LIB defined when building the .exe. I dont know exactly what the knock on effects would be, but I doubt they'd be good. The define is used to cut some stuff out when building the torque.lib for the tools. You're probably better off either removing the #ifdef and leaving MAX_TS_SET_DWORDS to 32 or increasing the non-lib one from 6 to whatever works.