Author Topic: Audio File Help  (Read 2404 times)

0 Members and 1 Guest are viewing this topic.

Offline GraffitiArtist

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Audio File Help
« on: July 26, 2006, 08:46:55 PM »
Hey. On my own server on gmod9 I would like to know how to play an audio file, like an mp3 for example, so everyone on the server can hear it. I played an mp3 file once and I could hear it fine but no one else on the server heard anything (about 11 other people). Can someone tell me how to play my own MP3s on a server so everyone can hear them? Again, the game is gmod9.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Audio File Help
« Reply #1 on: July 27, 2006, 05:15:58 AM »
 You have to have the sound in your gmod9/sound directory (or a subfolder)
Clients have to have same exact filename in thier sound directory (again, or a subfolder) for them to hear it.

 ULX v2 command would be ... ulx playsound "sound.ext"
ext being wav, or mp3.
Quotes " are required if it has spaces.
If it is a subfolder of sound... as if you had it in /gmod9/sounds/yoursubfolder , it would be ...
 ulx playsound "yoursubfolder/sound with spaces.ext"

 See http://forums.ulyssesmod.net/index.php/topic,272.0.html for some background on similiar issue another person was having with ULX v1.x 'force download' (to make the clients get the sound), and ulx_playsound (_ was old way)

 On a side note, make sure the sounds are few and small in size. Many people hate joining a server and waiting more than 20 seconds just to download a bunch of random non-game-mode related sounds.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming