Welcome, Guest. Please login or register.
Did you miss your activation email?
September 19, 2024, 09:20:54 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: icon wont work (at all)
Pages: [1]
Author Topic: icon wont work (at all)  (Read 8269 times)
bpgilly
Poster

Posts: 12


« on: August 04, 2010, 05:42:55 PM »

i tried everyting, change name, chane location, make the map location longer (from VGUI up to the map garrysmod), i even reinstalled the ak47 and chanceg my icon's name to the one you used in your tut but that even did not work, and i still get to see that pink checkboard, can you please help me out with this?
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #1 on: August 04, 2010, 11:39:55 PM »

resource.AddFile("materials/vgui/ttt/icon_name.vmt")

did you add the material for download?

Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
bpgilly
Poster

Posts: 12


« Reply #2 on: August 05, 2010, 05:58:54 PM »

yes i did. and i'll ad the line in the lua file of the weapons hope its works ^^ i'll let you know ^^

----EDIT----

if SERVER then
  resource.AddFile("VGUI\ttt\icon_moar_ak47.vmt")
end

and wont work ... :/
or should it be without the if server?
« Last Edit: August 05, 2010, 06:09:14 PM by bpgilly »
Kologer0s
Poster

Posts: 48


« Reply #3 on: August 05, 2010, 11:41:28 PM »

Hmm I don't use

if SERVER then
  resource.AddFile("VGUI\ttt\icon_moar_ak47.vmt")
end

just go to garrysmod/gamemodes/terrortown/gamemode/resources.lua and add up that VMT. Make sure the vmt actually exist in that path and when you open it up in VTFedit its the same as like the m16 only it says the correct name...

http://bit.ly/Mogzcom MOGZ Gmod TTT + Killing Floor Servers
Charles445
Build Tester
*
Posts: 2338


I LOVE THIS AVATAR


« Reply #4 on: August 06, 2010, 12:24:36 AM »

Don't you need the .vtf as well?

del>Ok, so Bad King, you are just going to wait for Garry to fix?
What an idiotic thing to ask. Dammit weed.

Bookcases, Bookcases Everywhere
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #5 on: August 06, 2010, 03:06:03 AM »

Create a file in lua/autorun/server name "Download.lua" or something.

resource.AddFile("materials/VGUI/ttt/icon_moar_ak47.vmt");
resource.AddFile("materials/VGUI/ttt/icon_moar_ak47.vtf");


I recommend making a new folder for your icons, on my server I use materials/VGUI/nnjg/<icon name>

If you run a clan or group server just make the folder the name of that, that way you won't get any others' icons from different servers since non-lua files don't re-download if they're different.
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #6 on: August 06, 2010, 06:19:36 AM »

Don't you need the .vtf as well?

resource.AddFile automatically adds the .vtf if you call it on the .vmt. Similarly when you add a .mdl it will add all those other .vtx files and such.
Charles445
Build Tester
*
Posts: 2338


I LOVE THIS AVATAR


« Reply #7 on: August 06, 2010, 12:42:22 PM »

esource.AddFile automatically adds the .vtf if you call it on the .vmt. Similarly when you add a .mdl it will add all those other .vtx files and such.


That's actually really awesome.

del>Ok, so Bad King, you are just going to wait for Garry to fix?
What an idiotic thing to ask. Dammit weed.

Bookcases, Bookcases Everywhere
Kologer0s
Poster

Posts: 48


« Reply #8 on: August 06, 2010, 02:12:49 PM »

Yeah the .vmt has the filepath of the vtf inside it to load it up. Also it's Resource.lua not download, but it can just be any resource file for the server, just to make them download it

http://bit.ly/Mogzcom MOGZ Gmod TTT + Killing Floor Servers
bpgilly
Poster

Posts: 12


« Reply #9 on: August 06, 2010, 06:09:10 PM »

so what i did now is go to recources.lua and added the lines for my 2 costum weapons, but the icon will still not work. i still get to see that pink checkboard. i really don't know how to fix this ass i'm new to servers in gmod and adding icons... plz help me out here :D

but tnx anyways for all the reply's for now :D

-----EDIT-----

so the icons download now, but you always have to download them, and you still see the pink checkbox..
« Last Edit: August 06, 2010, 06:50:30 PM by bpgilly »
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #10 on: August 06, 2010, 08:05:49 PM »

That happens if you don't have the "materials" before VGUI. Also, try using a slash (/) instead of a backslash (\)?
bpgilly
Poster

Posts: 12


« Reply #11 on: August 06, 2010, 09:42:11 PM »

resource.AddFile("materials/VGUI/ttt/icon_moar_ak47.vmt")

i would not tell you it downloads if it would be wrong no ? ... :/
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #12 on: August 06, 2010, 09:44:39 PM »

Could you paste the contents of your .vmt?
bpgilly
Poster

Posts: 12


« Reply #13 on: August 06, 2010, 09:51:42 PM »

"UnlitGeneric"
{
"$basetexture" "VGUI/ttt/icon_myserver_ak47"
"$vertexcolor" 1
"$vertexalpha" 1
"$translucent" 1
}
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #14 on: August 07, 2010, 07:29:53 AM »

It should be:
"UnlitGeneric"
{
"$basetexture" "VGUI/ttt/icon_moar_ak47"
"$vertexcolor" 1
"$vertexalpha" 1
"$translucent" 1
}

Note the different path after $basetexture. This is how the .vmt tells the game which .vtf to use.
bpgilly
Poster

Posts: 12


« Reply #15 on: August 07, 2010, 05:27:19 PM »

i did it but it will still not work ... i still see that checkbox :/
bpgilly
Poster

Posts: 12


« Reply #16 on: August 08, 2010, 09:39:17 AM »

any more help plz it still wont work ... :/
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: icon wont work (at all) « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.009 seconds with 19 queries.