TGEA 1.8.0 Bug - addMaterialMapping error
by Andy Hawkins · in Torque Game Engine Advanced · 01/30/2009 (7:48 pm) · 2 replies
I see this error when I run a vanilla install of TGEA 1.8.0. Anyone know what the issue is and how to fix it?
scriptsAndAssets/server/scripts/sgExamples.cs (8): ::addMaterialMapping - wrong number of arguments. scriptsAndAssets/server/scripts/sgExamples.cs (8): usage: (string matName) Set up a material to texture mapping.
#2
Now it maps textures to materials. Looking at the source code, it appears to be prototyped wrong:
Should be
03/03/2009 (6:45 am)
Wow, this function has morphed. It used to map sounds and puff colors to different materials, and is still in propertymap.cs this way.Now it maps textures to materials. Looking at the source code, it appears to be prototyped wrong:
ConsoleFunction( addMaterialMapping, void, 2, 2, "(string matName) Set up a material to texture mapping.")
Should be
ConsoleFunction( addMaterialMapping, void, 3, 3, "(string TextureName, string MaterialName) Set up a material to texture mapping.")
Torque 3D Owner Caylo Gypsyblood
I get the ::addMaterialMapping - wrong number of arguments. error Andy mention.