Author Topic: Ulx addForcedDownload not working  (Read 7344 times)

0 Members and 4 Guests are viewing this topic.

Offline LordSocky

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Ulx addForcedDownload not working
« on: October 06, 2009, 03:51:10 PM »
I've tried this countless times in many different ways, and it refuses to let me send this model to my clients.  I've tried with and without sv_downloadurl, I've tried individually adding the files, I've tried adding only the folders (both nanosuit folders) I've tried only adding the folder behind THAT folder (both slow folders)
I've checked every post I could find on here and none seem to fix this problem.

The files are located at:
Code: [Select]
models/player/slow/nanosuit
materials/models/player/slow/nanosuit


I currently have it added to my server.ini as this:
Code: [Select]
ulx addForcedDownload "models/player/slow/nanosuit/slow_nanosuit.dx80.vtx" 1
ulx addForcedDownload "models/player/slow/nanosuit/slow_nanosuit.dx90.vtx" 1
ulx addForcedDownload "models/player/slow/nanosuit/slow_nanosuit.mdl" 1
ulx addForcedDownload "models/player/slow/nanosuit/slow_nanosuit.phy" 1
ulx addForcedDownload "models/player/slow/nanosuit/slow_nanosuit.sw.vtx" 1
ulx addForcedDownload "models/player/slow/nanosuit/slow_nanosuit.vvd" 1
ulx addForcedDownload "models/player/slow/nanosuit/slow_nanosuit.xbox.vtx" 1
ulx addForcedDownload "materials/models/player/slow/nanosuit/slow_nanosuit.vmt" 1
ulx addForcedDownload "materials/models/player/slow/nanosuit/slow_nanosuit.vtf" 1
ulx addForcedDownload "materials/models/player/slow/nanosuit/slow_nanosuit_bump.vtf" 1
ulx addForcedDownload "materials/models/player/slow/nanosuit/slow_nanosuit_helm.vmt" 1
ulx addForcedDownload "materials/models/player/slow/nanosuit/slow_nanosuit_helm.vtf" 1
ulx addForcedDownload "materials/models/player/slow/nanosuit/slow_nanosuit_helm_bump.vtf" 1
ulx addForcedDownload "materials/models/player/slow/nanosuit/slow_nanosuit_visir.vmt" 1
ulx addForcedDownload "materials/models/player/slow/nanosuit/slow_nanosuit_visir.vtf" 1
ulx addForcedDownload "materials/models/player/slow/nanosuit/slow_nanosuit_visir_bump.vtf" 1


Could anybody give me a hand?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ulx addForcedDownload not working
« Reply #1 on: October 06, 2009, 07:10:56 PM »
What version of ULib, and ULX, are you running. Release, or SVN?
What errors does the server or client get when attempting to add those commands at server startup, or client connect?

Your current server.ini, adding 1 after the line makes the command look for a directory...you can't 'recurse' a file.
According to ULib 2.4 (SVN), one of it's fixes was a recursion issue with one of the main commands that ULX uses.
Megiddo would know more about the release version if it didn't work.
For now though, try removing the 1 from behind all your individual files.

You said you've tried both with sv_downloadurl, and without... if 'with', I'm pretty sure you must be hosting the files you want transferred on the download host.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: Ulx addForcedDownload not working
« Reply #2 on: October 06, 2009, 11:14:03 PM »
The current SVN version of ULX does not support forced downloads.

Offline LordSocky

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Ulx addForcedDownload not working
« Reply #3 on: October 07, 2009, 04:46:32 AM »
Yep, I'm running the SVN of ULX and Ulib.

Anyway, that's rather unfortunate :( At least it turns out that it was a software error, and not some obscurely stupid mistake I had made somewhere down the line  ;D

Is it possible to use the stable release of ULX with the SVN of Ulib?  From what I can tell, one of my plugins is reliant on the Ulib SVN.

Edit:  Also, I'm not entirely sure on how my current host "provides" their FastDL.  I was new to hosting servers and wasn't entirely sure how it worked, and saw that they advertised FastDL as an included feature.  By by the looks of it, it just seems to direct it right back to the server itself, which defeats the purpose.  I have it off right now, since there isn't a need for it to be on at the moment.
« Last Edit: October 07, 2009, 04:51:17 AM by LordSocky »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulx addForcedDownload not working
« Reply #4 on: October 07, 2009, 09:54:22 AM »
Sorry, didn't mean to leave this in limbo so long but homework has come down hard recently. I'll see if I can't get our new version of forced downloads up within the next few days. :)
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ulx addForcedDownload not working
« Reply #5 on: October 07, 2009, 03:39:03 PM »
Wait, what?
It's my understanding that the SVN of ULib (2.4), is working.
Wasn't this ULib function what was broken with ULX ForcedDownloads.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulx addForcedDownload not working
« Reply #6 on: October 07, 2009, 06:39:23 PM »
spbogie wrote the recursive functionality and didn't use filesInDir. I removed the command from ulx svn because I want to separate out all list-like configurations from server.ini. So, forced downloads, gimps, and adverts are all going to separate files. The reason for this is to make it easier for XGUI to change configurations.
Experiencing God's grace one day at a time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulx addForcedDownload not working
« Reply #7 on: October 10, 2009, 07:03:53 AM »
Forced downloads should be working again in rev 76. Note that the command you used to use (ulx addForcedDownload) no longer exists, it now reads from a config file under data/ulx. I don't have a dedicated server to test that it, can someone confirm that it works?
Experiencing God's grace one day at a time.

Offline Link2006

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Ulx addForcedDownload not working
« Reply #8 on: October 11, 2009, 01:05:47 PM »
I have latest SVN update but seems that the Downloads.txt arent working properly (well for me)...

For Example: I put sound/link2006

In my server console when i join, it spits out:
 "../sound/link2006/sound1.wav" doesn't exist
 "../sound/link2006/sound2.mp3" doesn't exist
and so on...

Yeah, Thats pretty much it.

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: Ulx addForcedDownload not working
« Reply #9 on: October 11, 2009, 01:28:08 PM »
That's a Garry thing. Ignore it.

Offline Link2006

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Ulx addForcedDownload not working
« Reply #10 on: October 11, 2009, 01:42:39 PM »
Yeah well, it prevents the file from downloading because of this...

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulx addForcedDownload not working
« Reply #11 on: October 11, 2009, 02:01:38 PM »
I think I see what the problem is, give it a shot now.
Experiencing God's grace one day at a time.

Offline Link2006

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Ulx addForcedDownload not working
« Reply #12 on: October 11, 2009, 02:15:39 PM »
Thanks! It Works Now!

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Re: Ulx addForcedDownload not working
« Reply #13 on: October 12, 2009, 07:40:36 PM »
Is it just me or does anyone else find it annoying to have all them weapons when you spawn? but still want to allow people to spawn the hl2 weapons!?

I'v been trying to make that HL2weaponitem addons to auto download to people but could never get it to auto download. I'm looking forward to give this a try.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulx addForcedDownload not working
« Reply #14 on: October 12, 2009, 07:59:36 PM »
Is it just me or does anyone else find it annoying to have all them weapons when you spawn? but still want to allow people to spawn the hl2 weapons!?

I'v been trying to make that HL2weaponitem addons to auto download to people but could never get it to auto download. I'm looking forward to give this a try.

You can't shove addons down forced download, only resources like sounds, models, and materials.
Experiencing God's grace one day at a time.