Author Topic: Modding Bug: 32 Byte Buffer?  (Read 1000 times)

0 Members and 1 Guest are viewing this topic.

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Modding Bug: 32 Byte Buffer?
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:

Code: [Select]
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.

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Modding Bug: 32 Byte Buffer?
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.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Modding Bug: 32 Byte Buffer?
Wish every bug was that simple. :P

Thanks a bunch! :D