Page MenuHomeFeedback Tracker

playSound3D doesn't use relative paths
New, WishlistPublic

Description

playSound3D requires absolute paths to the file to be played. This requires convoluted tricks* to work properly in both single player and multiplayer. It's also inconsistent with the rest of the engine, as relative paths are now standard as of 1.52.

*you have get the absolute file path to description.ext and trim off the last few characters, then append the file name string.

Details

Legacy ID
1117097686
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Place a sound file in the mission folder. Enter playSound3D["filename.ogg", this]; in object init (or however you want) and launch mission. Behold the sound of silence.

Now, use the full absolute path to the sound file, and launch mission. Will play the sound.

Additional Information

Event Timeline

SuicideKing edited Additional Information. (Show Details)
SuicideKing set Category to Scripting.
SuicideKing set Reproducibility to Always.
SuicideKing set Severity to None.
SuicideKing set Resolution to Open.
SuicideKing set Legacy ID to 1117097686.May 8 2016, 1:16 PM