(03-21-2017, 06:45 AM)HONOUR AMONGST THIEVES Wrote: I didn't change any textures. I merely changed the material_config to direct the textures to a different texture. I figure that it is because of that. Is it possible to override object files? If yes, I could just change the object files for the various cokebag props to direct them to a different material_config and keep those that use the default textures unchanged.
Depending on if the texture exists already in the game files or not, there are few different things you can do:
- 1. If you want to add a texture to the game, you need a add.xml at the root of your mod folder to add the file to the game with this inside: <table> <texture path="path/to/your/texture" force="false"/></table>
If you don't do that, the game won't see your texture and will think you're trying to apply nothing to the object, leaving it like this (or was it Yellow/Blue texture?
2. If you're trying to apply an existing texture in the game files to the object, then either your .material_config has something wrong in it or the texture isn't adapted.
To be honest, I don't know in details what you're trying to do so I try to help with only the little details your giving me. You can also modify the .object
file but I don't see why you would do that since you can only change the UV Map through it. You can't make them to redirect to few more .material_config
, only 1 material_config per object file.
If you want to randomize the texture, adding the textures to the game and using a LUA mod for this seems to be more appropriate.
Again, I'm trying to help with the only details you gave me. Try to see if anything above worked or not.
(I was trying to make a good format but MyBB won't let me do that so I hope it's not too confusing)