Game Development Community

Bug: Crash with duplicate "mapto" material

by Henry Todd · in Torque 3D Professional · 05/19/2009 (10:13 am) · 2 replies

Crash based on accidental creation of two distinct materials with the same mapto value. Occurs during mission load. Obviously this shouldn't work, but there should probably be some handling for this scenario aside from just crashing. Possibly just pick the first or last to get exec'ed, whichever makes more sense, and that gets linked to the texture in question?

#1
05/19/2009 (10:57 am)
i had a full set of materials pointing to the same mapto, while it didnt crash it did ruin my working methods, now all my materials have silly names, and i cant just use trunk and branch and leaf for all my trees anymore.

i didnt try putting them all in separate folders to see what that changed, wasnt an acceptable layout imo
#2
05/20/2009 (2:49 pm)
I ran a debug build to trace the error.. and was distracted by several broken fxShapeReplicator objects (minRotation < maxRotation) which were causing a break. After I fixed that, I traced the (now extremely hard to duplicate, of course) actual crash to an obscure 1-line change I'd made years ago to ShapeBaseImage.