Author Topic: Playsound Issue!! Please check it out!  (Read 3069 times)

0 Members and 1 Guest are viewing this topic.

Mutank

  • Guest
Playsound Issue!! Please check it out!
« on: July 21, 2007, 08:17:08 AM »
I added the stuff to make it a foreced download and it still isn't downloading! I also have the latest version...

I heard people talking about sv_downloadurl. and wtf is that and how do i use it? I'm running a dedicated gmod 10 server

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: Playsound Issue!! Please check it out!
« Reply #1 on: July 21, 2007, 11:31:57 AM »
I added the stuff to make it a foreced download and it still isn't downloading! I also have the latest version...

Make sure your syntax is exactly the same as below.

/addons/ulx/lua/ulx/configs/server.ini
Code: [Select]
ulx addForcedDownload "sound/file.wav"
I heard people talking about sv_downloadurl. and wtf is that and how do i use it? I'm running a dedicated gmod 10 server

Sv_downloadurl is a way to reduce bandwidth usage (lessening lag) when someone joins a server. What it does is make them download content (maps, sounds, etc.) from a web server. This is assuming you aren't hosting the dedicated server and web server on the same connection. Read more about it below and how to set it up.

http://forums.srcds.com/viewtopic/1077
« Last Edit: July 21, 2007, 11:54:35 AM by atomicspark »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Playsound Issue!! Please check it out!
« Reply #2 on: July 21, 2007, 11:38:33 AM »
How do I use forceddownload?

Insert the files you want people to download into a ULX config file (server.ini, per-map configs, per-gamemode configs).

The format for the command is: ulx addForcedDownload "<file/folder>" [<recursive]
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 v3.20+ only!)
Linux folder notation ('/' not '\') is preferred.

Add a file from the garrysmod root. IE, if you have /garrysmod/sound/mycoolsounds/awesome.mp3, you'd use the following command:
ulx addForcedDownload "sound/mycoolsounds/awesome.mp3"
Never, ever have /addons/<mod> in addForceDownload! If you have something like addons/mycoolsoundpack/sound/mycoolsounds/awesome.mp3", you'd use the same command as above.

If you're using sv_downloadurl (if you don't know what it is, ignore this bit) then you'll need to stick what you're forcing to download in with the rest of the sv_downloadurl resources, using the same folder format.

How do I use playsound?

Format for playsound: "ulx playsound <file>"
Linux folder notation ('/' not '\') is preferred.

Start the playsound with "sound" as root, so to play an explosion sound, you'd do this:
ulx playsound "ambient/explosions/explode_1.wav"



Added those to FAQs
Experiencing God's grace one day at a time.