Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2024, 12:38:07 AM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: TTT Stock icons, detective, body armor, traitor icon etc.
Pages: [1]
Author Topic: TTT Stock icons, detective, body armor, traitor icon etc.  (Read 6888 times)
Mr. Wepz.
Poster

Posts: 65


« on: March 12, 2011, 11:02:22 AM »

Hey guys,

So i made a few modded icons for my server, but to replace them i need to find where the orig icons are stored.

Do you guys know where those icons are stored? I mean the Detective, traitor, innocent, body armor, hitlist, DNA icon etc.

Thx :D
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #1 on: March 12, 2011, 01:43:23 PM »

materials/vgui/ttt

Good luck getting the clients to have them, They wont download materials they already have.

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

Posts: 53



« Reply #2 on: March 12, 2011, 01:44:27 PM »

materials/vgui/ttt

Good luck getting the clients to have them, They wont download materials they already have.


And for that...

http://ttt.badking.net/custom-weapon-guide

If it sounds too good to be true, it probably isn't. Wait, what?
Mr. Wepz.
Poster

Posts: 65


« Reply #3 on: March 12, 2011, 02:45:20 PM »

I know how to add it. But i mean is there a file what shows eg. Icon = "VGUI/ttt/detective" ?
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #4 on: March 12, 2011, 03:27:07 PM »

In cl_search.lua, line 82 is:
   local base = "VGUI/ttt/icon_"

Change that to eg.
   local base = "VGUI/ttt/icon_mrwepz_"


Now name your new icon files to match the change: icon_detective.vtf -> icon_mrwepz_detective.vtf and so on. Every icon that's not from a weapon will need to have that kind of name, so you'll also need a icon_mrwepz_armor.vtf etcetera.

Players won't have the icon_mrwepz* files so they'll get downloaded, and the modified code will use them.
Mr. Wepz.
Poster

Posts: 65


« Reply #5 on: March 12, 2011, 06:23:44 PM »

I know that :D, Thanks ill look into it :D

Edit: Will it automaticly downloaded or do i have to put it into a diff lua file with "resource.Addfile" ?
« Last Edit: March 12, 2011, 06:44:11 PM by Mr. Wepz. »
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #6 on: March 12, 2011, 07:13:17 PM »

You will have to add all the new icons with resource.AddFile.
Mr. Wepz.
Poster

Posts: 65


« Reply #7 on: March 12, 2011, 07:16:09 PM »

Yeah i did that and the icons dont work, on the line 82 i have:

icon_bw_

and then i have put a few icons into VGUI/ttt/icon_bw_innocent, VGUI/ttt/icon_bw_lastwords etc. but it still shows purple/black icons?
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #8 on: March 12, 2011, 07:33:40 PM »

Sorry, not going to troubleshoot your specific issues. I've described the way you can make TTT use different icon paths, the rest is up to you.
Mr. Wepz.
Poster

Posts: 65


« Reply #9 on: March 12, 2011, 07:53:21 PM »

But i did it correct right? How it should be?
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #10 on: March 12, 2011, 11:04:01 PM »

lua/autorun/server/download.lua

resource.AddFile("materials/vgui/ttt/yournamehere.vtf");
resource.AddFile("materials/vgui/ttt/yournamehere.vmt");


etc.

materials/vgui/ttt

Good luck getting the clients to have them, They wont download materials they already have.

sv_pure?

« Last Edit: March 12, 2011, 11:05:19 PM by Mr. Gash »
Mr. Wepz.
Poster

Posts: 65


« Reply #11 on: March 12, 2011, 11:06:38 PM »

Yes i have the icons downloaded but still some icons dont work while they are downloaded.

What do you mean with sv_pure?
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #12 on: March 12, 2011, 11:08:40 PM »

Yes i have the icons downloaded but still some icons dont work while they are downloaded.

What do you mean with sv_pure?

If some work and some don't, then they weren't installed correctly or they weren't downloaded correctly. Or you edited the file wrong.

Quote from:  Garry's Mod
] sv_pure
--------------------------------------------------------
sv_pure:

If set to 1, the server will force all client files except the whitelisted ones (in pure_server_whitelist.txt) to match the server's files.

If set to 2, the server will force all client files to come from Steam (and it will not load pure_server_whitelist.txt).

Current sv_pure value is 0.
--------------------------------------------------------
[/quote]
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #13 on: March 12, 2011, 11:22:05 PM »

If some work and some don't, then they weren't installed correctly or they weren't downloaded correctly. Or you edited the file wrong.



I didn't think sv_pure was functional in gmod... Does it work for you?

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

Posts: 382


www.nonerdsjustgeeks.com


« Reply #14 on: March 12, 2011, 11:37:17 PM »

I didn't think sv_pure was functional in gmod... Does it work for you?

I don't use it, but I've been on TTT servers that have it enabled. It works.
Mr. Wepz.
Poster

Posts: 65


« Reply #15 on: March 13, 2011, 11:18:48 AM »

Ah nevermind, I founded the problem, the innocent icon wasent working. First i had : "icon_bw_innocent" but it had to be "icon_bw_inno"

So yeah, problem sloved.

And thanks for all your advices :D
Mr. Wepz.
Poster

Posts: 65


« Reply #16 on: March 13, 2011, 12:49:26 PM »

Oh wait, only 1 more thing, where do I change the icon of radar, armor, disguiser etc. for the equip menu?
Same goes for binoculars, etc.
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #17 on: March 13, 2011, 12:54:11 PM »

equip_items_shd.lua

and weapons/weapon_ttt_name/shared.lua

Enjoy editing all those...

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

Posts: 65


« Reply #18 on: March 13, 2011, 01:14:20 PM »

Ill edit them :D But hey, i keep the modded file so when patch comes out ill overwrite it so np :D
Mr. Wepz.
Poster

Posts: 65


« Reply #19 on: March 13, 2011, 01:20:20 PM »

BKU only 1 question, Whats the name for DNA on corpse? I got all my icons so far working except for the dna, icon_bw_wtester or bw_dna dont work?

Never mind got it already--
« Last Edit: March 13, 2011, 01:27:50 PM by Mr. Wepz. »
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: TTT Stock icons, detective, body armor, traitor icon etc. « 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.01 seconds with 18 queries.