General > Developers Corner
Pointshop - Adding Trails
Neku:
Did you put the textures in the correct place?
MyAddonName/materials/UniqueFolderName/
If you don't want the unique folder then go ahead and put it in /materials.
Do note that if you do that, you may have conflicting textures if you get textures of the same name from another server since the texture names are generic.
Zmaster:
Sorry for the wait. I've been busy for the past few days. :)
"You might start by making sure that the texture is being sent to the clients and that your code points to the right location for the texture."
The clients definitely download the file.
And I'm sure the code is pointing to the right location.
"MyAddonName/materials/UniqueFolderName/"
Yea, that's where the files are
JamminR:
--- Quote from: Zmaster on May 25, 2014, 06:29:59 PM ---And I'm sure the code is pointing to the right location.
"MyAddonName/materials/UniqueFolderName/"
Yea, that's where the files are
--- End quote ---
If you're code is pointing to that path, then that is likely your problem.
See my response to someone regarding downloading files.
http://forums.ulyssesmod.net/index.php/topic,7260.msg36572.html#msg36572
Though the question was different, the answer is the same.
Don't include the addon folder name in the path of your code.
Use the 'real' virtual path,
Neku:
If you place things into an addon folder, you must use its contents like they were installed directly into the root, instead of the addons folder and from there.
Zmaster:
Alright, since having my own addon for the textures is more complicated, I decided to just move the files to the materials folder and name it something that's probably not going to be used by anyone else. (ZmaSaw.vmt and ZmaSaw.vtf)
I changed the paths in the files to the new path of the files. (materials/ZmaSaw)
JamminR, the paths are the right way, now, according to what you said in that thread.
Neku, you basically said the same thing as JamminR, but more condensed. Same thing with you. It's the right location now.
Still shows the missing texture when I equip the trail igname.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version