Hey there. I just started to learn how to make addons for Gmod a couple of days ago. Right now, I’ve been working with importing external models into Blender 2.49 (yes, I’m outdated, but I want to cover all the basics first before making the move) to them import them to Source and afterward compile them as addons for Gmod. I’ve been doing good so far, but I ran across a problem when it comes to textures and materials. Models that requiere only one texture (and ergo, only one material) work just fine once I’m done with the compiling and when I put everything as an addon folder.
My problem here is when I’m working with models that requiere multiple models.
The models used here were retrieved from these links:
With this model I only requiered one texture, so all I do is add the material, link the texture to the image (which comes with the model and is also mapped to it). So after that all I do is compile the .smd files, put them on an addon folder (models, materials, info.txt, etc.) and then it works perfectly.
With the next models I use several textures, though, and that’s when things get really hectic to me.
Again, all textures, which come along with the model, are already mapped to the model (so when I click on the Draw Type:texture the textures are already perfectly visible). I try to assign the materials properly and whatnot and the exporting of both the .smd and the _phy.smd, along with the compilling afterward, work perfectly fine. I then put the files on the addon folder but when I spawn the model this is what I get:
So it’s apparent that at least it is getting the materials into the mode (if I delete the files in the materials/models folder not even that part of model is textured), but I just don’t know what did I do (or didn’t do) that the textures won’t show up properly. I also don’t know whether the mistake occurs before or after the compiling. These are the material files on materials folder of the addon:
I tried naming each of them after each material on the .blend file (which is what I’ve been doing with previous models) and making sure each .VTF file has the same texture as the materials on the .blend file. But either way, I haven’t found a solution yet and I don’t think I can move forward into more complicated stuff if I can’t get the textures right, so I was hoping maybe someone could lend me a hand with this. I’d appreciate it greatly!