Game Development Community

Several things...errors in console.log

by Mike Rowley · in Torque Game Engine Advanced · 04/24/2008 (3:11 pm) · 2 replies

I'm seeing several errors that I have no clue why they exist.

C:/Torque/TGEA_1_7_0/GameExamples/Relto/game/Relto/scriptsAndAssets/data/shapes/relto/materials.cs (42): string always evaluates to 0.
That points to the first line of this block:
new Material(Floor-18)
{
   mapTo = "Floor-18";
   baseTex[0] = "~/data/shapes/relto/Floor-18";
   emissive[0] = true;
};
I have no idea what that means. There are a whole bunch of textures in that material.cs file that look exactly the same. (eccept for the name of the texture)

Loading light datablocks from: common/lighting/lights/
Con::unlinkNamespaces - trying to unlink 'sgLightObjectData' from itself, aborting.
Error: cannot change namespace parent linkage of sgLightObjectData from fxLightData to sgLightObjectData.
Con::unlinkNamespaces - trying to unlink 'sgLightObjectData' from itself, aborting.
Error: cannot change namespace parent linkage of sgLightObjectData from fxLightData to sgLightObjectData.
Con::unlinkNamespaces - trying to unlink 'sgLightObjectData' from itself, aborting.
Error: cannot change namespace parent linkage of sgLightObjectData from fxLightData to sgLightObjectData.

and

Namespace::unlinkClass - cannot unlink namespace parent linkage for firepit for TSStatic.
Error: cannot change namespace parent linkage of firepit from TSStatic to ParticleEmitterNode.
Namespace::unlinkClass - cannot unlink namespace parent linkage for tree1 for Material.
Error: cannot change namespace parent linkage of tree1 from Material to TSStatic.
Namespace::unlinkClass - cannot unlink namespace parent linkage for transperant for Material.
Error: cannot change namespace parent linkage of transperant from Material to TSStatic.

Can anyone explain these errors and possibly how I can fix them?

Edit to add: This is in TGEA 1.7.0 Release
Edit2: changed quotes to code blocks.

#1
04/24/2008 (5:49 pm)
One problem is the Material named Floor-18. Rename it or put it in quotes. The parser is trying to evaluate it as a subtraction.
#2
04/24/2008 (7:52 pm)
Ok, thanks. Hopefully that takes care of one. :-)