ULX

Author Topic: ForceDOwnload Problem Or ulx_playsounds promblem ???  (Read 7710 times)

0 Members and 1 Guest are viewing this topic.

The_Fragger2

  • Guest
ForceDOwnload Problem Or ulx_playsounds promblem ???
« on: July 11, 2006, 07:51:46 PM »
Hello with all, therefore here my problem: when I place a music in my file .ini forcedownload, firstly I do not know if the customers who connect themselves it receive!
Quote
//ULX-Dynamic res generator
//Put files you wish to force the client to download in this file, seperated by newlines.
//For example, you might put "sound/supafly.mp3" in here, make sure it has the quotes.

"sound/IntroHowHigh.mp3"
In any case where my problem resides, it is in the fact that when I want to launch a sound during the plays while going in the console typing
Quote
] ulx_playsound sound\IntroHowHigh.mp3
That sound doesn't exist on the server!
that does not function!!! Could you help me please ? SOrry for my bad english but i'm french :x

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #1 on: July 11, 2006, 08:03:12 PM »
You need to have the sound on the server, it doesn't download it from the clients ;) .
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #2 on: July 12, 2006, 03:00:31 AM »
No quotes " "?
Backslash instead of forward? Try / instead of \

ulx_playsound "sound/IntroHowHigh.mp3"

If not, try
ulx_playsound "IntroHowHigh.mp3"
(I thought the sound folder was 'default'?)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

The_Fragger2

  • Guest
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #3 on: July 12, 2006, 04:39:12 AM »
You need to have the sound on the server, it doesn't download it from the clients ;) .
Ok, but so obviously, the sound don't be downloaded by the customers, how do we cure that???

No quotes " "?
Backslash instead of forward? Try / instead of \

ulx_playsound "sound/IntroHowHigh.mp3"

If not, try
ulx_playsound "IntroHowHigh.mp3"
(I thought the sound folder was 'default'?)
I already tried to put it/instead of \ and that still does not function!  _________________________________________
Does the “ are important in ulx_playsound "IntroHowHigh.mp3" or not??? Because if they are important I will test soon !

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #4 on: July 12, 2006, 04:55:28 AM »
Oh yes, JamminR is right, you use 'ulx_playsound "IntroHowHigh.mp3"'. Quotes shouldn't matter since it's splitting the arguments and grabbing the first one, but it's worth a shot.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #5 on: July 12, 2006, 06:22:50 AM »
Quotes are important if there are spaces e used with any data passed.
ulx_playsound sound.mp3 would work

ulx_playsound sound file name with spaces.mp3
 might not.

Putting quotes around any console command with spaces is just good practice.
Though, I've not used ulx_playsound.
 Megiddo, did you write it to automatically grab up to the .wav/.mp3, so spaces wouldn't be needed? If not, might be a good idea for future versions.
Not so much for user laziness, as just user proofing the command. :D
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline The_Fragger2

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #6 on: July 12, 2006, 09:23:47 AM »
You need to have the sound on the server, it doesn't download it from the clients ;) .
What will i do to permit that clients can download my sound ??? oO please

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #7 on: July 12, 2006, 09:30:42 AM »
What will i do to permit that clients can download my sound ??? oO please

I was saying the server doesn't download the sound from clients, but the server will send the sound to the clients. Sorry for the misunderstanding.
Experiencing God's grace one day at a time.

Offline The_Fragger2

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #8 on: July 12, 2006, 09:46:10 AM »
oki Thx , i will tes quotes , wait and see :D

Offline The_Fragger2

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #9 on: July 12, 2006, 10:14:31 AM »
That FUNTCTIONNNNNNNNNNNN!!!!! TOO MUCH CONTENT, thank you very much lol, therefore here what it should be done so that that goes: especially don't forget the “, the code which you must enter the console corresponds to:
Code: [Select]
ulx_playsound "nameofsound"Don't forget the ".
The name of the sound must be only the name of the sound or a way if you have creates a file in the file sound

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #10 on: July 12, 2006, 10:35:34 AM »
Translation from his native language=>English Translator=>Understandable english is ....  :P ;D

WoW! Too much information to read!
For anyone else who wants this to work, make sure you use the quotes at beginning and end of file name, and that the sound file is in the gmod9/sound folder.

(I think I'm becoming good at reading E.T. (English Translators)) :P
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline The_Fragger2

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #11 on: July 12, 2006, 12:24:58 PM »
SOrry But like i even say that , i'm not very good at english because i'm french , sry :$

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #12 on: July 12, 2006, 12:33:10 PM »
It is fine. No need to apologize!
I was being silly, funny.
I understood what you were saying. :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline The_Fragger2

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #13 on: July 12, 2006, 04:11:08 PM »
Re I have a new problem now, the sound function perfectly but the clients dont hear them when I engage them!!!! Can you help me please !!!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: ForceDOwnload Problem Or ulx_playsounds promblem ???
« Reply #14 on: July 12, 2006, 04:22:52 PM »
Could be they're not getting it, see http://forums.ulyssesmod.net/index.php/topic,261.0.html
Experiencing God's grace one day at a time.