Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: AKAaimpro on May 05, 2016, 08:22:04 PM
-
My ULib/ULX versions:
ULib v2.60
ULX v3.70
Game mode(s) I am having this problem on: terrortown (Trouble in Terrorist Town)
Lua errors shown in console:
[LC ULib ERROR] Received invalid sound
I'm having trouble adding sounds to my server through ULX. I've added all my sound files to the FastDL.
-
Is the sound also on your server? Are you putting in the correct path when you run the command?
-
Very unlikely this is ULib's fault. To narrow down the possible causes we're going to need more info:
What sound are you trying to play? What exact command (command and any arguments) did you run to try to play the sound?
In what folder is that sound located on the server (Garry's Mod Server, not FastDL)?
In what folder is that sound located on FastDL?
Check your local Garry's Mod download folder (C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\download) and see if the sound file exists there.
I believe ULib only checks serverside to see if the sound exists, so the extra checks to verify that FastDL is working aren't necessary, but better to double check.
edit: ninja'd
-
I ran the command both through the xgui and console(client side and server side).
The sound folder is located in the /garrysmod/sound
The FastDL is web synced through my server provider and has resource.lua under /lua/autorun
-
Please tell us the exact path to your sound and the full command you entered.
e.g. sound path is "garrysmod\sounds\mysounds\sound.mp3", command entered was ulx sound via xgui supplied with "sound.mp3" as the argument
(note: this example is not necessarily the correct usage of the command)
-
The path for the sound is "garrysmod/sound/sound.mp3".
-
And exactly what are you typing, in XGUI, or console, to try to play that sound?
-
ulx playsound sound.mp3
-
Both
ulx playsound /ulx/sound.mp3
ulx playsound ulx/sound.mp3
Try just "ulx playsound sound" also does it work when you pass it to the built in Garrysmod "play" command?
-
If garrysmod/sound/ulx/sound.mp3 exists on the server, "ulx playsound ulx/sound.mp3" should not say "That sound doesn't exist on the server!". Unless your ULX or ULib installation is corrupt in some way, the only reason it wouldn't work is because garrysmpd/sound/ulx/sound.mp3 doesn't actually exist. How did you upload the file? Does your server host give you direct FTP access, or only through a webpanel?
-
With that error, it means that you have the sound on the server, but not on the client. Double check your fastdl config.
-
Oh, I had messed a string up in the resource.lua folder causing the sound file not to force download to the client. It works now thanks!