I was thinking about the textures' detection. I think it depends on the order in the mesh.ascii. For example: There's a meshpart with a diffuse, a specular, a bump and with a lightmap. It will start like this in the mesh.ascii:
Code:
25_meshname
1 # uv layers
4 # textures
diffuse_map.extension
0 # uv layer index
lightmap.extension
0 # uv layer index
bump_map.extension
0 # uv layer index
specular_map.extension
0 # uv layer index
There's a different order for every rendergroup though...
http://www.tombraiderforums.com/show...postcount=1735