Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: funkychunk on July 03, 2007, 02:24:26 PM

Title: Download from site question
Post by: funkychunk on July 03, 2007, 02:24:26 PM
I was wondering how I can make it so when someone connects to my server, they download my forced downloads from my site so its quicker downloads.

If anyone could help, that would be great.

Thanks
Title: Re: Download from site question
Post by: Megiddo on July 03, 2007, 05:48:16 PM
Yes, ulx addforceddownload.
Title: Re: Download from site question
Post by: Golden-Death on July 03, 2007, 06:06:53 PM
He wants to know how to make it download from his site, Megiddo.

It's something like sv_downloadurl
Title: Re: Download from site question
Post by: funkychunk on July 03, 2007, 07:36:07 PM
Hmm.. but do you know how I set it all up and stuff?
Title: Re: Download from site question
Post by: Golden-Death on July 03, 2007, 09:23:20 PM
i think its just like the normal gmod structure.
Ex:

sv_downloadurl mysite.com/gmod


mysite.com/gmod/lua/myscript.lua
mysite.com/gmod/models/coolthing.mdl
Title: Re: Download from site question
Post by: funkychunk on July 03, 2007, 11:24:58 PM
And do i put that in the server.cfg ?
Title: Re: Download from site question
Post by: spbogie on July 04, 2007, 04:48:17 AM
http://forums.srcds.com/viewtopic/1077 (http://forums.srcds.com/viewtopic/1077)

That is a very good site. It's where I learned when I was starting with making my server.
Title: Re: Download from site question
Post by: funkychunk on July 04, 2007, 09:30:29 AM
http://forums.srcds.com/viewtopic/1077 (http://forums.srcds.com/viewtopic/1077)

That is a very good site. It's where I learned when I was starting with making my server.

Thanks for that.

But I think that just downloads stuff when needed like when joining a map it will download it.. I need it so that it just automatically downloads what I want it to, no matter what map.etc
Title: Re: Download from site question
Post by: Megiddo on July 04, 2007, 09:47:43 AM
You use sv_downloadurl and ulx addForcedDownload.
Title: Re: Download from site question
Post by: funkychunk on July 04, 2007, 07:17:26 PM
You use sv_downloadurl and ulx addForcedDownload.

So something like:

sv_downloadurl;ulx addForcedDownload            "www.mysite.com/garrysmod/sound/syrupywaffles.wav"

?
Title: Re: Download from site question
Post by: Megiddo on July 04, 2007, 07:52:34 PM
No, use sv_downloadurl like normal.
Title: Re: Download from site question
Post by: Banyon on July 04, 2007, 08:11:51 PM
I get a unknown command error with ULX addForcedDownload
Title: Re: Download from site question
Post by: spbogie on July 05, 2007, 12:13:33 PM
sv_downloadurl is how you set it to download from a seperate site rather than the game server. After setting up your sv_downloadurl, and putting all the files on the sv_downloadurl server you then tell it what files to download using ulx addForcedDownload. If ulx addForcedDownload won't work for you, you can look into resource.AddFile() (use the wiki) or add the files to <mapname>.res files.
Title: Re: Download from site question
Post by: Banyon on July 05, 2007, 03:03:37 PM
But what would cause ULX addForcedDownload to not work for me? I mean I just have a Dedicated Gmod server, nothing super custom.
Title: Re: Download from site question
Post by: Golden-Death on July 05, 2007, 03:47:21 PM
It would.
sv_downloadurl tells it where to download from.
add forced download tells it what to download.