Ulysses

General => Off-Topic => Topic started by: spbogie on January 18, 2008, 07:57:46 AM

Title: Having problems with client scripts on dedicated server?
Post by: spbogie on January 18, 2008, 07:57:46 AM
GMod is now using the default download system for Lua files along with everything else. So, if you are running a dedicated server with sv_downloadurl set, you will need to place your clientside Lua scripts on the sv_downloadurl server as well, or they will not download.
Title: Re: Having problems with client scripts on dedicated server?
Post by: atomicspark on January 18, 2008, 08:57:48 AM
D:!

This is AWESOME.

I LOVE GARRY.

(and you for telling me).
Title: Re: Having problems with client scripts on dedicated server?
Post by: MrPresident on January 18, 2008, 11:14:17 AM
OOOOOOOHHHH boy... this is just going to cause way more trouble than it's worth. I can see all the questions now....
Title: Re: Having problems with client scripts on dedicated server?
Post by: Avien on January 18, 2008, 11:48:11 AM
So if it is in an addon you place it in garrysmod/addons/ on your downloadurl?
Title: Re: Having problems with client scripts on dedicated server?
Post by: Megiddo on January 18, 2008, 11:53:36 AM
No, it won't read from addons.
Title: Re: Having problems with client scripts on dedicated server?
Post by: Avien on January 18, 2008, 12:08:14 PM
So just make it so they are in the correct folders?

IE:
addons/phx/lua ====> garrysmod/lua

Like that?
Title: Re: Having problems with client scripts on dedicated server?
Post by: atomicspark on January 18, 2008, 01:04:46 PM
This is not as good as I thought it would be. My webhost is pissed at me right now. Calling it a DoS attack. :\
Title: Re: Having problems with client scripts on dedicated server?
Post by: Banyon on January 18, 2008, 01:18:33 PM
I can see many problems with this in the future considering many webserver admins STILL don't know how to use sv_downloadurl
Title: Re: Having problems with client scripts on dedicated server?
Post by: atomicspark on January 18, 2008, 01:39:30 PM
I just got in touch with them. They said I had 1500 active connections from one IP address. I'm disabling sv_downloadurl for now. :\
Title: Re: Having problems with client scripts on dedicated server?
Post by: Avien on January 18, 2008, 05:38:22 PM
I'm a little confused.  What all do we put in our downloadurl and what should it look like?  I already have a maps folder, but i am not sure what you mean by clientside lua files.  Can you give me an example please?
Title: Re: Having problems with client scripts on dedicated server?
Post by: MulleDK13 on January 18, 2008, 06:01:29 PM
Argh! This has been bugging me since the release of the crappy update...

My sv_downloadurl = ""
And clients still does not download the files!

How does it work!?!!????
Title: Re: Having problems with client scripts on dedicated server?
Post by: Megiddo on January 18, 2008, 06:40:07 PM
Okay, it does try to download the lua scripts from your fast dl server, but not how you think it does. It's looking for files like this... "<root>/cache/dua/3499012667.dua".

Yes, that means if you want to use your fast dl server, you'll have to upload the server lua cache.
Title: Re: Having problems with client scripts on dedicated server?
Post by: atomicspark on January 18, 2008, 07:02:19 PM
Will this cache only change when the Lua files are updated/added?
Title: Re: Having problems with client scripts on dedicated server?
Post by: Megiddo on January 18, 2008, 07:04:50 PM
Correct spark.
Title: Re: Having problems with client scripts on dedicated server?
Post by: Avien on January 19, 2008, 09:30:39 AM
Okay, it does try to download the lua scripts from your fast dl server, but not how you think it does. It's looking for files like this... "<root>/cache/dua/3499012667.dua".

Yes, that means if you want to use your fast dl server, you'll have to upload the server lua cache.


Thanks for that.  I tried like 15 different variations for the new thruster,(gmod_tool/stools/thrusters.lua), but no matter what i tried i could not seem to download the little bugger and my thruster would be broken.  I even tried making my own game to get the lua files correctly, but with no go on multiplayer servers.


If i upload this cache to my downloadurl, will it get downloaded all the time, or only when something changes that the client doesn't have?
Title: Re: Having problems with client scripts on dedicated server?
Post by: spbogie on January 19, 2008, 01:16:32 PM
It will only download if the version on the download server differs from the version on the client. If you update anything on the game server, you will need to update the files on the download server as well.
Title: Re: Having problems with client scripts on dedicated server?
Post by: Render Case on January 23, 2008, 04:14:46 PM
Just checking, and please don't call me a noob or anything; just trying to get a server running.

sv_downloadurl requires a webhost to host the .dua files?

Cause, I'm having trouble with this (See my topic in General Chat / Support), and I think this may be it.
sv_allowdownload is on 1.
Do I REQUIRE a host for the .dua's?
Title: Re: Having problems with client scripts on dedicated server?
Post by: Avien on January 23, 2008, 07:13:43 PM
You do not need a download server unless you host maps, which greatly decrease the amount of time to download to clients.  sv_downloadurl is not an on or off value.  The value of sv_downloadurl is the website you are hosting the files from.

IE:
"sv_downloadurl" "http://xxxxxxx.xxxx/garrysmod/"

You also need to make sure your file sizes are not over the default size allowed to be downloaded.

set net_maxfilesize to 40, the default is 16.