ULX

Author Topic: Help with forceDownload  (Read 2668 times)

0 Members and 1 Guest are viewing this topic.

Offline JINX

  • Newbie
  • *
  • Posts: 11
  • Karma: -2
Help with forceDownload
« on: August 17, 2006, 08:23:12 AM »
i need help with the force download thing,how u i use it?like if i want them to download a swep or model and have it realy work
would this work:Models/portal/cube.mdl
« Last Edit: August 17, 2006, 08:24:56 AM by JINX »

Offline JINX

  • Newbie
  • *
  • Posts: 11
  • Karma: -2
Re: Help with forceDownload
« Reply #1 on: August 17, 2006, 09:10:00 AM »
o **** sorry this is in ulib! SORRY


EDIT by JamminR for offensive language - Please, lets try to keep this a family atmosphere.
« Last Edit: August 17, 2006, 06:34:37 PM by JamminR »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Help with forceDownload
« Reply #2 on: August 17, 2006, 06:46:48 PM »
From another post dealing with sound...but would be very similiar for models

Quote from: JamminR
Read your blah/server_path/Gmod9/ulx/configs/forcedownload.ini for how to edit that file.
Quick example...lets say you have 3 sounds in your sound/admin folder...
kick me.wav
Seeya sucker.wav
Nah Nah Nah.mp3 ... you would edit your forcedownload.ini, adding three additional lines like so...
"sound/admin/kick me.wav"
"sound/admin/Seeya sucker.wav"
"sound/admin/Nah Nah Nah.mp3"

So, for any model
"models/path_to_your_custom/blah_model_file.mdl"

For any texture
"materials/path_to_your_custom/blah_material.vtf"
"materials/path_to_your_custom/blah_material.vmt"

Swep?
Unless you aren't using standard materials/textures/sounds for your sweps, you shouldn't need to force sweps.

Search for 'sendmenu' script in Releases for v1.x (I think) if you need to send custom menus.
I forget the version that works with ULX v1.13


Note:
1) Your server will only send as fast as your maxrate I think, so, don't bore your customers away with tons of cool stuff, at least all at once. The longer they have to wait to join, the quicker they might leave.
2) Many filter downloads off now, due to all the stupid lua worms. Don't depend on your clients to have the stuff.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming