Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Phoenix_8754 on May 01, 2013, 05:03:00 PM

Title: Forced Download Help Please.
Post by: Phoenix_8754 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
Title: Re: Forced Download Help Please.
Post by: JamminR 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
Title: Re: Forced Download Help Please.
Post by: Phoenix_8754 on May 02, 2013, 06:55:00 AM
Thanks! Ill try this out and hopefully it works!
Title: Re: Forced Download Help Please.
Post by: Phoenix_8754 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
Title: Re: Forced Download Help Please.
Post by: Phoenix_8754 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!!
:/
Title: Re: Forced Download Help Please.
Post by: Megiddo 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 (https://github.com/Nayruden/Ulysses/issues/205).
Title: Re: Forced Download Help Please.
Post by: Phoenix_8754 on May 02, 2013, 07:57:09 AM
Alright, thanks
Title: Re: Forced Download Help Please.
Post by: nathan736 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 ?
Title: Re: Forced Download Help Please.
Post by: Dankro 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??
Title: Re: Forced Download Help Please.
Post by: Phoenix_8754 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.
Title: Re: Forced Download Help Please.
Post by: Megiddo 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.
Title: Re: Forced Download Help Please.
Post by: Phoenix_8754 on May 03, 2013, 04:34:07 PM
Excuse me but how does one insert an image here?
Title: Re: Forced Download Help Please.
Post by: Phoenix_8754 on May 03, 2013, 04:37:39 PM
(http://C:\Documents and Settings\Owner\Desktop\temp. server\untitled1)
(http://C:\Documents and Settings\Owner\Desktop\temp. server\untitled)
(http://C:\Documents and Settings\Owner\Desktop\temp. server\2)

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.
Title: Re: Forced Download Help Please.
Post by: MrPresident 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.
Title: Re: Forced Download Help Please.
Post by: Phoenix_8754 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 ?
Title: Re: Forced Download Help Please.
Post by: Megiddo on May 04, 2013, 08:57:09 AM
Drop the "ulx addForcedDownload /" prefixes. It should look like:

Code: [Select]
models/hazmats/hazmat.mdl
models/hazmats/hazmat.sw.vtx
etc...

Sorry I didn't notice that in your first post.
Title: Re: Forced Download Help Please.
Post by: JamminR on May 04, 2013, 09:28:51 AM
Indeed. The example even shows that, and our FAQ also shows an example (not using the text you added).

Phoenix, or anyone, Can you make suggestion of how we could make this clearer  in the future?
It seems to our team pretty obvious with the way we added examples to the file, but we're used to working with this year in/year out.
(and I accidentally added a / in my reply to your first post)

Sorry I didn't notice that in your first post.
To be fair, the way he showed in his first post 'would' be used from command line, minus the / on the front of course. :)
Command line during game would be like "ulx addforceddownload models/hazmat".
Title: Re: Forced Download Help Please.
Post by: Phoenix_8754 on May 04, 2013, 09:56:09 AM
Drop the "ulx addForcedDownload /" prefixes. It should look like:

Code: [Select]
models/hazmats/hazmat.mdl
models/hazmats/hazmat.sw.vtx
etc...

Sorry I didn't notice that in your first post.
Thanks! Ill try that and tell you if it works!


Indeed. The example even shows that, and our FAQ also shows an example (not using the text you added).

Phoenix, or anyone, Can you make suggestion of how we could make this clearer  in the future?
It seems to our team pretty obvious with the way we added examples to the file, but we're used to working with this year in/year out.
(and I accidentally added a / in my reply to your first post)
To be fair, the way he showed in his first post 'would' be used from command line, minus the / on the front of course. :)
Command line during game would be like "ulx addforceddownload models/hazmat".


Maybe you guys could post some example pictures? Those usually help me and some others I know.
Title: Re: Forced Download Help Please.
Post by: Phoenix_8754 on May 04, 2013, 09:59:37 AM
It worked! Thank you so much guys! What a great staff team you guys have!