ULX

Author Topic: HUD Missing Texture  (Read 5956 times)

0 Members and 1 Guest are viewing this topic.

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
HUD Missing Texture
« on: June 30, 2014, 09:47:25 PM »
So I got a custom hud for my TTT server, which I just bought the other day. I've been working on the server for a few weeks now on my computer, so it would be pretty much ready for release by the time I bought the server. Unfortunately, it didn't turn out that way.

Everything worked perfectly on my computer hosted server, but when I copied the files onto the server I bought, addons broke and it was a complete wreck. I was able to fix most of it, but when I had a friend join the server today to check it out and make sure it was all working right, he said the HUD was a missing texture. I wasn't sure why that was happening for hi, so after I ran out of ideas for fixing it, I completely uninstalled my Garry's Mod and unsubscribed from all of the addons on the Steam Workshop.

This is what the HUD looks like right now.


I went into the files of the addon to see if I could find a problem with it, but I couldn't. So as usual, I turned to you smart people :)

The addon folder's name is "fc_ttthud"
Inside of that folder is three folders and a .txt file
"lua" "materials" "resource" "addon.txt"
Inside of the "lua" folder is "autorun"
Inside of "autorun" is "TTTHUD.lua"
The code for that file is on a pastebin, since it exceeds the maximum allowed length of characters on a post, apparently. http://pastebin.com/YVYJQh6f

As for the "materials" folder inside of this addon's folder,
There's a folder titled "fc_ttthud"
Inside of that folder is four PNG files

As for the "resource" folder inside of this addon's folder,
There's a folder titled "fonts"
Inside of that, there's one .tff file


This addon worked perfectly for me before I uninstalled GMOD. Anyone know what's wrong?

I'd assume there's something wrong with the lua file I linked in this thread, but I'm not sure, since I'm pretty sure I saw my client downloading those four images when I joined the server after my uninstall of GMOD
« Last Edit: July 01, 2014, 10:44:43 AM by Zmaster »

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Re: HUD Missing Texture
« Reply #1 on: July 01, 2014, 06:06:34 AM »
Hello,
are you sure you are sending the client the texture? For me it looks like the client is missing a file here.

Are you using FastDL and are you sure the server also has the materials in the right folders?

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: HUD Missing Texture
« Reply #2 on: July 01, 2014, 10:22:05 AM »
"are you sure you are sending the client the texture? For me it looks like the client is missing a file here."
I'm pretty sure that it is sending clients the textures, but I'm not 100%.

"Are you using FastDL"
The host I am using comes with FastDL, but it only works with the maps of the servers, not the content.

"and are you sure the server also has the materials in the right folders?"
The materials are in
addons>fc_ttthud>materials>fc_ttthud
There's four PNG files in this directory

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: HUD Missing Texture
« Reply #3 on: July 01, 2014, 10:31:19 AM »
I just went into my local Garry's Mod client (not server) to check if the four files were there, and they weren't.

Is something wrong with the code that tells the client to download the files?
Again, here's the code for the LUA file of the addon.
http://pastebin.com/YVYJQh6f
« Last Edit: July 01, 2014, 10:44:29 AM by Zmaster »

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: HUD Missing Texture
« Reply #4 on: July 01, 2014, 10:56:24 AM »
The code isn't wrong, it's telling the server "Try to retrieve these files: ...".
You need to upload the files to your fastdl server, create two folders named "materials" and "resource" in the same directory on the fastdl as "maps".

Then upload the "fc_ttthud" folder into the "materials" folder, and then "fonts" folder into the resource folder. That should make sure the files are actually downloading.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: HUD Missing Texture
« Reply #5 on: July 01, 2014, 11:47:28 AM »
After talking with the support steam at the hosting site, I found my problem.
Case closed~ :P