Author Topic: Forced Download Problem  (Read 3000 times)

0 Members and 3 Guests are viewing this topic.

Offline delirium_trigger

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Forced Download Problem
« on: August 02, 2009, 05:36:54 PM »
I have put numerous files on forced download. However I keep getting the "File does not exist!" error in the console. I don't know why this is happening.

This is the config for the Forced Downloads in my Server Config:


Code: [Select]
// You can also add forced downloads here. Make sure you put quotes around the path/filename, and take out the comment string '//'.
// Add as many as you want. You can also add these to your map- or game-specific files.
// format: ulx addForcedDownload <file/folder> [<recursive>]
//ulx addForcedDownload "sound/cheeseman.mp3"
// You can add a folder to add all files inside that folder. If recursive is 1 it will also add all files from any sub-folders.
//ulx addForcedDownload "sound/my_music" 1

ulx addForcedDownload "lua\autorun" 1
ulx addForcedDownload "materials\Models\smashbros" 1
ulx addForcedDownload "models\smashbros" 1
ulx addForcedDownload "settings" 1
ulx addForcedDownload "materials\Models\peterboi" 1
ulx addForcedDownload "models\peterboi" 1
ulx addForcedDownload "materials\Models\Player\b4p" 1
ulx addForcedDownload "materials\Models\stormt" 1
ulx addForcedDownload "materials\Models\fox" 1
ulx addForcedDownload "models\fox_mccloud" 1
ulx addForcedDownload "materials\Models\Player\danboard" 1
ulx addForcedDownload "models\player\danboard" 1
ulx addForcedDownload "materials\Models\assistants" 1
ulx addForcedDownload "materials\Models\Player\slow\luigi_gxy" 1
ulx addForcedDownload "materials\Models\Player\slow\mario" 1
ulx addForcedDownload "materials\Models\Player\slow\mario_gxy" 1
ulx addForcedDownload "models\player\slow\super_mario_bros" 1
ulx addForcedDownload "materials\Models\SHModels" 1
ulx addForcedDownload "models\Characters\SH" 1
ulx addForcedDownload "materials\VGUI\entities\rebel.vmt"

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Forced Download Problem
« Reply #1 on: August 02, 2009, 08:09:13 PM »
Wrong path notation, and you can't add anything outside the sounds, materials, and models folders.
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: Forced Download Problem
« Reply #2 on: August 02, 2009, 09:34:20 PM »
Wrong path notation

In other words delirium_trigger... you're using the wrong slash.. see the example

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

Offline delirium_trigger

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Forced Download Problem
« Reply #3 on: August 03, 2009, 01:01:59 AM »
All that, just from a simple mis-slash? Wow, never would've guessed it. Thank guys.

Offline odyss3y

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Forced Download Problem
« Reply #4 on: August 06, 2009, 10:51:57 AM »
Wrong path notation, and you can't add anything outside the sounds, materials, and models folders.
actually ive been very curious about this because i keep hearing this be said but see nothing but the opposite.  i have a clean addons folder on my server, only whats needed to play on it, and i added that using the ulx forced download.  when i do this, it downloads to peoples computers as addons.  i havent been able to get anything else to work.  i even see garry saying dont even bother uploading the addons folder to sv_downloadurl sites, but i have absolutely no problem with this method and would think that this would even be the preferred method since it makes it easier for users to delete models/materials they dont want anymore much more easily.  why is everyone against the addons folder?  is it ethically wrong or supposed to be technically not possible (but very much possible for me)?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Forced Download Problem
« Reply #5 on: August 06, 2009, 02:38:01 PM »
Technical reasons.
/addons/ is, at least always in the past (who knows, may have changed), 'virtual' only.
Gmod lua (wouldn't?) doesn't allow sending if the path specified was /addons/some_addon/materials/some_name/file.name
But it does (would?) allow /materials/some_name/file.name because addons was considered additional path.

See also: http://forums.ulyssesmod.net/index.php/topic,3777.msg13060.html#msg13060

(Again, some 'rules' Garry wrote into the virtuality of addons may have changed; however, following the old way still works and I personally recommend not using addons/ in the path.)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline odyss3y

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Forced Download Problem
« Reply #6 on: August 06, 2009, 08:40:54 PM »
maybe a bug then, because i can definitely do it and it has solved a lot of my users problems for models/materials/etc.

Offline Euphytose

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 5
  • I love Lemonade!
Re: Forced Download Problem
« Reply #7 on: August 06, 2009, 09:08:51 PM »
If you have anything which is not LUA into an addon folder, for example, Mario Hat V2, you have to create your folders that way :

http://www.yourfastdownloadwebsite.org/orangebox/garrysmod/materials/hathathat.vmt
                                                                                         /models/superhat.dx80.vtx
                                                                                         /sound/triplejump.wav

Never let the addon folder, copy paste all you can find but LUA into the " standard " folder.
« Last Edit: August 06, 2009, 09:10:28 PM by Euphytose »