Hey I got a issue with getting my clients to download two custom fonts we've on the server.
We have this on our SERVERSIDE lua.
[lua]
resource.AddSingleFile( "resource/fonts/dinpro.ttf" ) // Send over our gamemode font
resource.AddSingleFile( "resource/fonts/times_sq.ttf" ) // Send over our clock font
[/lua]
This code does get run and the paths are correct. sv_allowdownload is ON. The files exist in the resources/ folder outside gma AND in the Workshop content.
We can't figure out why still the people are not being able to download the fonts from the server. net_maxfilesize is 64.
Any ideas on what we should try to get this working? Thanks!
sv_allowdownload is only for workshop download, and the workshop doesnt support the fonts, you'd need an fastdl.
[QUOTE=whitestar;48922506]sv_allowdownload is only for workshop download, and the workshop doesnt support the fonts, you'd need an fastdl.[/QUOTE]
What about normal server DL? The fonts are in total barely 200kb. So the download time doesn't really matter for me here.
sv_allowdownload is not for Workshop. It's the internal Source download system.
Which is very slow because it's capped to 20Kb/s.
If your fonts are around 200kb. Then, it's okay. Go with internal Source download system.
You will only need FastDL for heavy files.
[QUOTE=Gedo789;48922655]sv_allowdownload is not for Workshop. It's the internal Source download system.
Which is very slow because it's capped to 20Kb/s.
If your fonts are around 200kb. Then, it's okay. Go with internal Source download system.
You will only need FastDL for heavy files.[/QUOTE]
Yeah, I would go for internal source download. The issue is that the font doesn't get downloaded at all, even though it's required and is in the resource/fonts folder.
Try resource.AddFile instead of AddSingleFile, might fix it.
[QUOTE=Gedo789;48922674]Try resource.AddFile instead of AddSingleFile, might fix it.[/QUOTE]
Tried both, doesn't work :/
It's working on my side.
[IMG]http://facepunch.gedo789.fr.nf/img/fp_work1.png[/IMG]
Hold on a seconds. Did you really set sv_allowdownload to "ON" or "1".
If you set on "ON", put it back to 1 or it won't work.
I found out the issue.
The issue was that the font was included in the Workshop addon which was mounted, as we all know fonts do not mount in workshop addons due to a bug which never got fixed. Though this made the Gmod to believe "Yes I got this font, so let's not DL it again." (though faulty mounted). That's why it didn't download.
So the fix was to remove it completly from the workshop addon, and it all worked nicely! :)
Sorry, you need to Log In to post a reply to this thread.