Hello, I want to have the client download JUST one custom font. I have This as my webserver:
[url]http://cube2.site.nfoservers.com/fastdl/[/url]
I have this in my server.cfg:
[lua]sv_allowupload 1
sv_allowdownload 1
sv_downloadurl cube2.site.nfoservers.com/fastdl[/lua]
And it dosent work. Help, please!
And I have this in /autorun/server
[lua]resource.AddFile ("resource/fonts/bebasneue.ttf")[/lua]
[editline]4th May 2014[/editline]
Didnt Work
1. Set sv_allowdownload and upload to 0.
2. Do what zapha said.
3. Pack the font in a BZIP (.bz2) on your FastDL.
Didnt Work.
This is the server/autorun now
[lua]resource.AddFile ("resource/fonts/bebasneue.ttf")
resource.AddFile ("resource/fonts/bebasneue.ttf.bz2")
[/lua]
and this is the font I want to use:
[lua]surface.CreateFont( "printfonts", {
font = "Bebas Neue",
size = 33,
weight = 500,
blursize = 0,
scanlines = 0,
antialias = true
} )[/lua]
I know its right because It works on my computer, because I installed the font myself, but dosent work for other people.
Delete the second resource.AddFile line with the .bz2. You don't need it. Also, move your resource.AddFile file to lua/autorun/server.
[QUOTE=code_gs;44722860]Delete the second resource.AddFile line with the .bz2. You don't need it. Also, move your resource.AddFile file to lua/autorun/server.[/QUOTE]
Oops, thats what I meant. Still dosent work.
Post your updated resources.lua and server.cfg. Also, ask users when they join the server if they get any HTML errors.
[lua]sv_allowupload 0
sv_allowdownload 0
sv_allowcslua 0
sv_downloadurl "http://cube2.site.nfoservers.com/fastdl/"[/lua]
[lua]resource.AddFile ("resource/fonts/bebasneue.ttf")
[/lua]
No HTML Errors.
Is
[code]exec server.cfg[/code]
in your autoexec.cfg?
Yeah
Ask a client when they join to go to garrysmod/download/resource/fonts and see if the font is there.
[QUOTE=code_gs;44724392]Ask a client when they join to go to garrysmod/download/resource/fonts and see if the font is there.[/QUOTE]
I deleted the contents of my folder, and nope, not there.
[QUOTE=DanielHershey;44724537]I deleted the contents of my folder, and nope, not there.[/QUOTE]
Out of curiosity, what did you name your resource.AddFile lua file and where is it?
resources.lua lua/autorun/server
Anyone?
Join your server and open the console. Look for any errors there. Also check your console.log (web server) for any HTML errors.
Change the name of the font to bebasneue no spaces in the surface.CreateFont, this worked for me so give it a shot I guess.
[QUOTE=Austin1346;44737343]Change the name of the font to bebasneue no spaces in the surface.CreateFont, this worked for me so give it a shot I guess.[/QUOTE]
Nope
Remove the trailing / from your download URL.
So:
[code]sv_downloadurl http://cube2.site.nfoservers.com/fastdl[/code]
Nothing.
[editline]8th May 2014[/editline]
Any other idea's?
[QUOTE=DanielHershey;44758370]Nothing.
[editline]8th May 2014[/editline]
Any other idea's?[/QUOTE]
Wrap it in quotes, no idea why they dissapeared.
[code]
sv_downloadurl "http://cube2.site.nfoservers.com/fastdl"
[/code]
Should work.
[QUOTE=Cyberuben;44759019]Wrap it in quotes, no idea why they dissapeared.
[code]
sv_downloadurl "http://cube2.site.nfoservers.com/fastdl"
[/code]
Should work.[/QUOTE]
nope
[QUOTE=DanielHershey;44759701]nope[/QUOTE]
Okay, what you can do, is go on your server and type "sv_downloadurl" in console, without any extra text. If you press enter and it shows "http://cube2.site.nfoservers.com/fastdl", it SHOULD work...
[code]"sv_downloadurl" = "http://cube2.site.nfoservers.com/fastdl" ( def. "" )
replicated
- Location from which clients can download missing files[/code]
From what I can tell you're using
[code]resource.AddFile ("resource/fonts/bebasneue.ttf")--- that space should NOT be there, instead use:
resource.AddFile("resource/fonts/bebasneue.ttf")-- make sure this is in the correct place (garrysmod/lua/autorun/server)
[/code]
Hope that helps.
Oh, also just make sure you name the resource.AddFile file something like "downloadlist.lua" etc. (or anything as long as it's a .lua file and avoid caps)
nope
Anyone? This is really frustrating.
How are you testing that it is working or not?
[QUOTE=Aeternal;44829125]How are you testing that it is working or not?[/QUOTE]
Having a player without the font rejoin, and tell m if my hud/printer is different.
Sorry, you need to Log In to post a reply to this thread.