Game Development Community

MaterialPropertyMap issues

by Jeremiah Fulbright · in Torque Game Engine Advanced · 11/21/2006 (11:49 pm) · 1 replies

I am working on getting sounds and all back and working for footsteps, etc (on Atlas and such).. I have been getting a crash related back to the index being looked up in the MPM is way way over the valid size.


index: 92707876
mapindex: 62

MapIndex being the actual number of materials in the property map, and the index being what is queried by the player class (for footstep sound).. Is there issues with MPM in TGEA currently or something I should look at specifically.

I was going to look at just replacing the lookups like that with something that grabbed the Material itself, etc.. but wanted to run this direction first

#1
11/22/2006 (12:23 am)
Well, I fixed one of my issues, as it seems the code that sets the MPM Index/CastRay information for Interiors was removed and nothing put in its place. I grabbed the needed code from TGE and it started working as it should, although I'm still getting index out of bounds issues, but im working on those