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

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: FastDL / Icon issue
Pages: [1]
Author Topic: FastDL / Icon issue  (Read 4181 times)
Willdy
Poster

Posts: 57


« on: July 29, 2011, 11:06:57 AM »

Hey guys, in March, we created some custom weapons for our server, and since then we have been under the impression they have been working the way they should. About a week ago, someone reported an issue with the icons not appearing and upon checking this, we found the icons do infact, not work.

I have the icons locally, and can see them, so the issue has to be on the fastdl.

Quote
sv_minupdaterate 30
net_maxfilesize 64
sv_pure                     0
sv_allowupload               0
sv_allowdownload 1
sv_downloadurl "http://www.xxxxxx.xxxx"


Path on the fastdl: /garrysmod/materials/vgui/ttt/icon name

Quote
if SERVER then
  AddCSLuaFile( "shared.lua" )
  resource.AddFile("materials/vgui/ttt/icon_ninjah_ak47.vmt")
end


A snippet from the top of our code

Anyone has any ideas why they don't work? :O
BipolarDiZ
Poster

Posts: 101


|:NxS:| Staff! :D


« Reply #1 on: July 29, 2011, 02:24:35 PM »

You have to make sure the client is dling them. In your lua/autorun/server make a lua files called something like clientdownloads.lua and use this wiki for help on making the add resource files http://wiki.garrysmod.com/?title=Resource.AddFile.

Overall, your issue is that clients don't have the icons.

BipolarDiZ is bipolar.
|:NxS:| Custom TTT Server: source.nxs-gaming.com:27015
|:NxS:| Vanilla TTT Server: source.nxs-gaming.com:27016
|:NxS:| Fretta: currently offline
bigbadboo
Poster

Posts: 287


« Reply #2 on: July 29, 2011, 06:07:11 PM »

You need to also add the VTF file to the resource downloads.
resource.AddFile("materials/vgui/ttt/icon_ninjah_ak47.vtf") ??
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #3 on: July 29, 2011, 07:38:46 PM »

No.

Adding the vmt automatically adds the vtf. Same for mdl and its dependencies.

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

Posts: 28


« Reply #4 on: July 30, 2011, 08:38:55 AM »

I assume FastDL is working fine if there is no issue with the cache/maps.

Check for any issues with the file itself, also look for any capitalizations in the name of the vtf/vmt and check if clients who join have any of them downloaded in the garrysmod folders.
dark_st3alth
Poster

Posts: 32



« Reply #5 on: August 06, 2011, 06:00:31 AM »

Solved your problem.

The slashes in the lua code are the wrong way around.

Lua requires the "Unix/Linux" style slash, the backwards slash "\".

So a simple change will fix that no dl problem.

Have a nice day. :)

I do various mapping and coding for most gamemodes and games, and I'm sure I can give you a hand with any problems.

My Steam Profile: http://steamcommunity.com/id/DarK_St3alth
My Server: 64.31.40.16:27015
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: FastDL / Icon issue « 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 18 queries.