Ulysses
General => Off-Topic => Topic started 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.
-
D:!
This is AWESOME.
I LOVE GARRY.
(and you for telling me).
-
OOOOOOOHHHH boy... this is just going to cause way more trouble than it's worth. I can see all the questions now....
-
So if it is in an addon you place it in garrysmod/addons/ on your downloadurl?
-
No, it won't read from addons.
-
So just make it so they are in the correct folders?
IE:
addons/phx/lua ====> garrysmod/lua
Like that?
-
This is not as good as I thought it would be. My webhost is pissed at me right now. Calling it a DoS attack. :\
-
I can see many problems with this in the future considering many webserver admins STILL don't know how to use sv_downloadurl
-
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. :\
-
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?
-
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!?!!????
-
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.
-
Will this cache only change when the Lua files are updated/added?
-
Correct spark.
-
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?
-
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.
-
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?
-
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.