• Server FastDL wont distribute fonts for hud
    7 replies, posted
I have been trying for several days to get a hud I have been working on functioning on the server I am developing it for. The hud works fine in most regards, however I can't get the fonts to function. After double and triple checking everything, it seems that the server isn't correctly uploading the fonts to the clients. When I connect to the server, I see that FastDL is at least attempting to upload the files, but when I get into the server, the fonts aren't there. I have the fonts in the resource/fonts/ folder of the servers game directory, and I have tried every type of path I could think of (and yes I have checked that the path is correct, no capitals or beginning / to foul it up). Any FastDL wizards in here?
Have you added the font to the FastDL directory? Have you run the function resource.AddFile on the font? Have you tried to download the font from the webserver outside of garrysmod?
[QUOTE=BlackVoid;39752044]Have you added the font to the FastDL directory? Have you run the function resource.AddFile on the font? Have you tried to download the font from the webserver outside of garrysmod?[/QUOTE] My understanding of the FastDL system was that it copied all files from certain areas of the garrysmod directory, including resource/fonts. I looked for a dedicated FastDL directory, but could not find one. I have the resource.AddFile functions in the init file, and they are pointed at that path. As for downloading the file manually, I can through the server operation page, and I believe that is over ftp. If so, then yes, I can dl the files manually from the webserver. Oh and an important note I left out. The hud works locally when I install it to a fresh install of the gamemode. It also works perfectly on the server when I have the fonts manually put into the fonts folder of my machine.
[QUOTE=fd13;39752302]My understanding of the FastDL system was that it copied all files from certain areas of the garrysmod directory, including resource/fonts.[/QUOTE] Close, but no cigar. Try this: [url]http://forums.srcds.com/viewtopic/1077[/url]
I checked out that thread. Interesting info, but the thing is that the files are already in the right spots on the webserver server.cfg points at. To my knowledge, fonts dont need .res files. I asked the owner of the server I am working on to send the fonts through a automatic packager program. We will see how it goes.
I notice some people on my server get the font, while some don't... very odd for me, at least.
[QUOTE=fd13;39752302] As for downloading the file manually, I can through the server operation page, and I believe that is over ftp. If so, then yes, I can dl the files manually from the webserver.[/QUOTE] You need to try to download it via the webserver. If the FastDL is located at "http://mydomain.com/FastDL/" without the quotes you should open "http://mydomain.com/FastDL/resource/fonts/FontName.ttf". Replace FontName.ttf with what ever the filename for the font is. The webserver might now allow ".ttf" files to be downloaded and that's what's causing the issue.
I can download the files from the webserver (just your standard ftp server mirrored with the gmod servers directory structure) using both the http protocol interface used with the server admin tools, and with a separate ftp client without a hitch. While in the server using the ftp client, I also checked the file permissions for both fonts and it checks out as 777, so it isn't a permission issue either.
Sorry, you need to Log In to post a reply to this thread.