I had someone code me some PointShop things and when I went to set a material or an icon for all of these it stayed a pink and black checkered pattern. Here is what I did:
ITEM.Material = 'materials/vgui/ttt/doublejump.vmt'
The VMT has this line for BaseTexture: "$basetexture" "materials/vgui/ttt/doublejump.vtf"
I also initiated a web sync, multiple restarts and all these files downloaded just fine, but they don't appear in the PointShop as the item's icon, it is still pink and black checkers, please assist!
To check if it's a FastDL issue, on your client, go to download/materials/vgui/ttt. Are both the .vtf and .vmt for the doublejump in there?
On top of that: Does anyone know what files/lines to edit in the basic TTT scoreboard to change/replace the logo on the top left of the scoreboard?
[editline]2nd April 2014[/editline]
[QUOTE=code_gs;44426834]To check if it's a FastDL issue, on your client, go to download/materials/vgui/ttt. Are both the .vtf and .vmt for the doublejump in there?[/QUOTE]
They are not... I wonder why they are not there...
1. [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/vgui/sb_main.lua[/url]
Line 25
2. Ask your host.
local logo = surface.GetTextureID("VGUI/ttt/score_logo")
What file extension and folder would I place my replacement in?
[QUOTE=Frubbs;44426921]local logo = surface.GetTextureID("VGUI/ttt/score_logo")
What file extension and folder would I place my replacement in?[/QUOTE]
You need a VTF and VMT file. Place them in any directory and change that line to point towards it.
For example:
[code]
local logo = surface.GetTextureID("VGUI/hs/scoreboard_image")
[/code]
My VMT and VTF would be called scoreboard_image and they would be in:
garrysmod/materials/vgui/hs/
[QUOTE=smithy285;44427062]You need a VTF and VMT file. Place them in any directory and change that line to point towards it.
For example:
[code]
local logo = surface.GetTextureID("VGUI/hs/scoreboard_image")
[/code]
My VMT and VTF would be called scoreboard_image and they would be in:
garrysmod/materials/vgui/hs/[/QUOTE]
I understand what you are saying, did exactly as stated have both files all that jazz, but it won't work and for some reason won't download the VMT or VTF off my FastDL.
Look into resource.addfile, possibly
[QUOTE=Frubbs;44427244]I understand what you are saying, did exactly as stated have both files all that jazz, but it won't work and for some reason won't download the VMT or VTF off my FastDL.[/QUOTE]
Can we see your code and fastdl structure?
Also look into what Niandra said with using [URL="http://wiki.garrysmod.com/page/resource/AddFile"]resource.addfile[/URL]
Sorry, you need to Log In to post a reply to this thread.