My server is not finding HUD icons in materials folder.

Hi, I have put the following files into the correct folder but the server is not finding them. I have found this error message in my console:

HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/health.png.bz2
HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/health.png
HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/armor.png.bz2
HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/armor.png
HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/stamina.png.bz2
HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/stamina.png
HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/hunger.png.bz2
HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/hunger.png
HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/money.png.bz2
HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/money.png
HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/salary.png.bz2
HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/salary.png

I will be grateful for any help!

Use resource.addfile https://wiki.garrysmod.com/page/resource/AddFile

I have added in them to the garrysmod/lua/autorun/server/resources.lua file but i am getting the same errors in the in-game console.

Post your code from that file. Are you using the resource.Addfile() function?

This is the resources.lua file contents:


resource.AddFile("materials/rusthud/health.png")
resource.AddFile("materials/rusthud/armor.png")
resource.AddFile("materials/rusthud/stamina.png")
resource.AddFile("materials/rusthud/hunger.png")
resource.AddFile("materials/rusthud/money.png")
resource.AddFile("materials/rusthud/salary.png")

show us where those materials are exactly

The file are here:
ftp ip/serverip/garrysmod/materials/rusthud/armor.png

It is the same for health, hunger, money, salary and stamina

You don’t need materials/ in resource.AddFile.

Nevermind, thinking of something else. Yes you do.

[editline]19th April 2017[/editline]

What are the .bz2 file extensions from your original post?

To be honest I am not sure what the .bz2 files are. I know they are like a ZIP file in some way but they are no-where in the server files.

i put my materials inside an addon and it works

I’m afraid this did not work either. I am probably going to just use the default hud until I can find another suitable one.

My problem now is somewhere along the lines the same thing happened with the scoreboard(http://i.imgur.com/xe0IRWr.png)
Console:


HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_header.vtf.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_header.vtf
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_header.vmt.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_header.vmt
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_middle.vtf.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_middle.vtf
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_middle.vmt.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_middle.vmt
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_bottom.vtf.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_bottom.vtf
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_bottom.vmt.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_bottom.vmt
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_ping.vtf.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_ping.vtf
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_ping.vmt.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_ping.vmt
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_frags.vtf.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_frags.vtf
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_frags.vmt.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_frags.vmt
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_skull.vtf.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_skull.vtf
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_skull.vmt.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_skull.vmt
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_playtime.vtf.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_playtime.vtf
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_playtime.vmt.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_playtime.vmt
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_propbrick.vtf.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_propbrick.vtf
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_propbrick.vmt.bz2
HTTP ERROR 8 downloading http://xxx/garrysmod/materials/gui/scoreboard_propbrick.vmt


All of the files are in the right corresponding places just like the last errors.

can we see if those files are there?

It’s alright i managed to fix the scoreboard problem. I had recently installed Evolve admin menu which had it’s won scoreboard.

I think you should add to your url file host original file, without .bzip2 compression.
You can also try to add “bzip2” at the end of the file names in the resources.

-snip-:qsex101:

Glad you were able to fix it.