Author Topic: Download from site question  (Read 5716 times)

0 Members and 2 Guests are viewing this topic.

Offline funkychunk

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Download from site question
« 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

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Download from site question
« Reply #1 on: July 03, 2007, 05:48:16 PM »
Yes, ulx addforceddownload.
Experiencing God's grace one day at a time.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Download from site question
« Reply #2 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


Offline funkychunk

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Download from site question
« Reply #3 on: July 03, 2007, 07:36:07 PM »
Hmm.. but do you know how I set it all up and stuff?

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Download from site question
« Reply #4 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


Offline funkychunk

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Download from site question
« Reply #5 on: July 03, 2007, 11:24:58 PM »
And do i put that in the server.cfg ?

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Download from site question
« Reply #6 on: July 04, 2007, 04:48:17 AM »
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.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline funkychunk

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Download from site question
« Reply #7 on: July 04, 2007, 09:30:29 AM »
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

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Download from site question
« Reply #8 on: July 04, 2007, 09:47:43 AM »
You use sv_downloadurl and ulx addForcedDownload.
Experiencing God's grace one day at a time.

Offline funkychunk

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Download from site question
« Reply #9 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"

?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Download from site question
« Reply #10 on: July 04, 2007, 07:52:34 PM »
No, use sv_downloadurl like normal.
Experiencing God's grace one day at a time.

Offline Banyon

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 12
    • Kill 'a' Byte
Re: Download from site question
« Reply #11 on: July 04, 2007, 08:11:51 PM »
I get a unknown command error with ULX addForcedDownload

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Download from site question
« Reply #12 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.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Banyon

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 12
    • Kill 'a' Byte
Re: Download from site question
« Reply #13 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.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Download from site question
« Reply #14 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.