When sound files are put into the ../StreamingAssets/Sound folder, the modding engine itself recognizes these alternate soundtrack files and attempts to play them. However there are cases when FMOD::Sound is not capable to generate a sound stream from the file - this occurs when some special characters (like "+" for example) are introduced into the path that contains the whole game.
Specs:
- OS: Windows 7 Pro SP1
- DFU: version 0.13.5 (release)
To reproduce:
Establishing a control sample:
- Place Daggerfall Unity into a sensible path (example: E:\DFUTEST\v0.13.5 )
- Create E:\DFUTEST\v0.13.5\DaggerfallUnity_Data\StreamingAssets\Sound\song_5strong.ogg as a legitimate Ogg Vorbis file.
- Run Daggerfall Unity and get to the menu screen. Check if the ogg file plays properly instead of the midi. Control sample established.
- Rename the containing folder to E:\DFUTEST+\v0.13.5
- Run Daggerfall Unity and get to the menu screen. Notice that the file does not play. In fact - there's no music at all.
Code: Select all
Error: Cannot create FMOD::Sound instance for clip "" (FMOD error: End of file unexpectedly reached while trying to read essential data (truncated data?). )
(Filename: Line: 1202)
While trivial to fix, the issue itself is hard to detect and debug on the user's side:
- There is no indication in the installation guide that special characters in the path might break some feature of the game. (at least to my limited knowledge)
- The list of special fmod-breaking characters is not defined (I know that "+" breaks things and "." doesn't)
- It is unknown if only the soundtrack stream creation is affected. Many other streaming assets might also be broken.
- Path itself is valid and DFU is just fine using it and even discovering streaming assets within - thus there is no indication from the game itself that something is royally eff'd.