ULX

Author Topic: Forced Download Help Please.  (Read 5312 times)

0 Members and 1 Guest are viewing this topic.

Offline Phoenix_8754

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Forced Download Help Please.
« on: May 01, 2013, 05:03:00 PM »
Im completely confused how to use this addforceddownload thing. I have a file called hazmat.mdl and IVe placed it in the addons folder, and from what Ive read it says to insert the command like so: addForcedDownload "addons/hazmat.mdl" but when I load up the server it says ERROR: Tried to ad nonexistent or empty file to forced downloads 'ulx addForcedDownload addons/hazmat.mdl' But Ive checked and this file works in singleplayer and you can view the ragdoll in the server as long as you have predownloaded it so what am I doing wrong? Ive searched and searched for about two days with no help! I would also NOT like to use the sv_downloadurl command if that helps.
                                                                                                                      -Phoenix
« Last Edit: May 01, 2013, 05:04:39 PM by Phoenix_8754 »
Ill try to not annoy you with my many questions. ;)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Forced Download Help Please.
« Reply #1 on: May 01, 2013, 08:56:57 PM »
Addons folders are virtual, don't go adding stuff to /addons unless you know how to make an addon.
You'll need all files associated with the model, and a special txt file telling gmod 'this is a legit addon'.

Since whatever you're trying to use isn't already in addon format, copy the files you have to your gmod server's models folder, in thier own folder to make them easier to separate from default files.
/models/somefolder/file.mdl
models/somefolder/file.vtf

It's explained reasonably well within our faq.
http://forums.ulyssesmod.net/index.php/topic,3072.0.html
« Last Edit: May 01, 2013, 08:58:29 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Phoenix_8754

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Forced Download Help Please.
« Reply #2 on: May 02, 2013, 06:55:00 AM »
Thanks! Ill try this out and hopefully it works!
Ill try to not annoy you with my many questions. ;)

Offline Phoenix_8754

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Forced Download Help Please.
« Reply #3 on: May 02, 2013, 07:20:38 AM »
Oh and is there any difference between a .vtx and .vtf file? As mine only has a .mdl, .vtx and a few other things
Ill try to not annoy you with my many questions. ;)

Offline Phoenix_8754

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Forced Download Help Please.
« Reply #4 on: May 02, 2013, 07:34:09 AM »
Addons folders are virtual, don't go adding stuff to /addons unless you know how to make an addon.
You'll need all files associated with the model, and a special txt file telling gmod 'this is a legit addon'.

Since whatever you're trying to use isn't already in addon format, copy the files you have to your gmod server's models folder, in thier own folder to make them easier to separate from default files.
/models/somefolder/file.mdl
models/somefolder/file.vtf

It's explained reasonably well within our faq.
http://forums.ulyssesmod.net/index.php/topic,3072.0.html

I entered in the command and made the files its own folder in models/hazmats but then once I start it up it gives me the same error.. ERROR: models/hazmats/hazmat.mdl is nonexistent or is empty!!
ERROR: models/hazmats/hazmat.dx80.vtx is nonexistent or is empty!!
ERROR: models/hazmats/hazmat.dx90.vtx is  nonexistent or is empty!!
ERROR: models/hazmats/hazmat.sw.vtx is nonexistent or is empty!!
:/
Ill try to not annoy you with my many questions. ;)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Forced Download Help Please.
« Reply #5 on: May 02, 2013, 07:52:05 AM »
Possibly something changed in the API or something changed when we redid some file I/O stuff recently. We will verify as soon as possible.
Experiencing God's grace one day at a time.

Offline Phoenix_8754

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Forced Download Help Please.
« Reply #6 on: May 02, 2013, 07:57:09 AM »
Alright, thanks
Ill try to not annoy you with my many questions. ;)

Offline nathan736

  • Full Member
  • ***
  • Posts: 143
  • Karma: 4
Re: Forced Download Help Please.
« Reply #7 on: May 03, 2013, 06:09:19 AM »
Phoenix
can you take a screen shot of the path to the fles your adding? as they are on the server ?
a person asked me how to code lua and i said this " its like building a rocket up side down then  realizing you did it all wrong."

Offline Dankro

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Forced Download Help Please.
« Reply #8 on: May 03, 2013, 03:14:45 PM »
I have gone to "garrysmod/data/ulx/downloads.txt" but no "downloads.txt" was there so i made one and inside i put "ulx addForcedDownload("maps/mapname.bsp")" but when i join the server it says Missing maps... Can somone tell me how to Force Download Maps??

Offline Phoenix_8754

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Forced Download Help Please.
« Reply #9 on: May 03, 2013, 04:20:03 PM »
Phoenix
can you take a screen shot of the path to the fles your adding? as they are on the server ?
Oh definetly, Ill upload the location and what I have entered into the text document.
Ill try to not annoy you with my many questions. ;)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Forced Download Help Please.
« Reply #10 on: May 03, 2013, 04:31:49 PM »
Tested on my server and forced downloads is still working fine. Dankro, please read the examples and instructions given in addons/ulx/data/ulx/downloads.txt.
Experiencing God's grace one day at a time.

Offline Phoenix_8754

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Forced Download Help Please.
« Reply #11 on: May 03, 2013, 04:34:07 PM »
Excuse me but how does one insert an image here?
Ill try to not annoy you with my many questions. ;)

Offline Phoenix_8754

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Forced Download Help Please.
« Reply #12 on: May 03, 2013, 04:37:39 PM »




Im not sure if you can see those or not.... I just tried inserting a picture but if theres another way let me know and Ill try it.
Ill try to not annoy you with my many questions. ;)

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Forced Download Help Please.
« Reply #13 on: May 03, 2013, 09:20:07 PM »
No one can see those, as they are links to local paths on your computer. You'll need to put them on a host site such as http://imageshack.com/ or something similar.

Offline Phoenix_8754

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: Forced Download Help Please.
« Reply #14 on: May 04, 2013, 07:45:38 AM »
No one can see those, as they are links to local paths on your computer. You'll need to put them on a host site such as http://imageshack.com/ or something similar.
Thanks, here are the links to the images.

1. http://i.imgur.com/gnWultph.jpg
2. http://i.imgur.com/QDw5Q9Nh.jpg
3. http://i.imgur.com/M9lrTvR.jpg

And, thanks guys for trying to help me with this, I really appreciate it!
Phoenix
can you take a screen shot of the path to the fles your adding? as they are on the server ?
« Last Edit: May 04, 2013, 07:47:32 AM by Phoenix_8754 »
Ill try to not annoy you with my many questions. ;)