Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: HLD_Prophecy on October 16, 2015, 01:04:44 pm
-
So I'm trying to use "play-sound-from-file" symbolic expression to get a music track to play for the whole mission.
FSO (debug) is giving me this error message on launch:
ERANGE: String error. Please Report.
Trying to put into 32 byte buffer:
Portal2_Some_Assembly_Required.ogg
ntdll.dll! ZwWaitForSingleObject + 21 bytes
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! SCP_DumpStack + 354 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! Error + 279 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! scp_strcpy_s + 297 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! scp_strcpy_s<32> + 53 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! cf_search_root_path + 493 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! cf_build_file_list + 105 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! cf_build_secondary_filelist + 166 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! cfile_init + 398 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! game_init + 373 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! game_main + 519 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! WinMain + 330 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! __tmainCRTStartup + 358 bytes
fs2_open_3_7_2_NO-SSE-DEBUG.exe! WinMainCRTStartup + 15 bytes
kernel32.dll! BaseThreadInitThunk + 18 bytes
ntdll.dll! RtlInitializeExceptionChain + 99 bytes
ntdll.dll! RtlInitializeExceptionChain + 54 bytes
Could somebody please help me figure this out? I made sure to put the file into .ogg format and I'm not sure what else (if anything) I need to do to prepare it.
-
It's pretty simple. Filenames (including extensions) in FSO must be shorter than 32 characters. In this case, "Portal2_Some_Assembly_Required.ogg" is 34 characters long, and thus breaks that limitation. Shorten the filename.
-
Wish every bug was that simple. :P
Thanks a bunch! :D