ULX

Author Topic: How do I use forced downloads?  (Read 15974 times)

0 Members and 1 Guest are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
How do I use forced downloads?
« on: December 30, 2007, 09:32:56 AM »
Insert the files and folders you want people to download into garrysmod/data/ulx/downloads.txt, one file or folder per line.

If a folder is added, all the files inside the folder will be recursively added. Linux path notation ('/' not '\') is preferred.

Add a file from the garrysmod root. IE, if you have /garrysmod/sound/mycoolsounds/awesome.mp3, you'd add the following line:
sound/mycoolsounds/awesome.mp3
Never, ever have /addons/<mod> in addForceDownload! If you have something like addons/mycoolsoundpack/sound/mycoolsounds/awesome.mp3, you'd use the same line as above.

If you're using sv_downloadurl (if you don't know what it is, ignore this bit) then you'll need to stick what you're forcing to download in with the rest of the sv_downloadurl resources, using the same folder format.
« Last Edit: December 22, 2012, 05:44:57 AM by Megiddo »
Experiencing God's grace one day at a time.

Offline louis

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: How do I use forced downloads?
« Reply #1 on: December 30, 2007, 09:43:46 AM »
Nice, i'll try to get my songs on

Thanks

Paranoid*

  • Guest
Re: How do I use forced downloads?
« Reply #2 on: August 09, 2008, 04:48:49 AM »
Hey Megiddo I need your help. My forced downloads work but theres 1 thing thats annoying me. It downloads too Slow! How do I make it Faster!!?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How do I use forced downloads?
« Reply #3 on: August 09, 2008, 10:32:52 AM »
Use a download server. See srcds.com for more information.
Experiencing God's grace one day at a time.

Offline Sgt.Blue

  • Newbie
  • *
  • Posts: 47
  • Karma: 2
Re: How do I use forced downloads?
« Reply #4 on: April 03, 2014, 02:52:47 PM »
So this just forces downloads, but isn't as quick as a FastDL?

Offline Your Stalker

  • Newbie
  • *
  • Posts: 10
  • Karma: -4
Re: How do I use forced downloads?
« Reply #5 on: April 15, 2014, 07:55:49 AM »
Why not just resource.addfile?

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: How do I use forced downloads?
« Reply #6 on: April 15, 2014, 10:15:19 AM »
Why not just resource.addfile?
I believe it's easier for people to add each file to a list instead of resource.AddFile'ing every file in it's own script.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.