Need help with texture replacemnt.

Have you seen this post? It seems to indicate that the missing step might be finding the texture stage associated with the texture specified in the model-file. (The same post includes some illustrative code, I believe.)