"Wrote past end of buffer in stream" when packging
#1


Hello:




I was a translator in our team,but it's been years,and lots of people dont play this game anymore,so I decide to be a moder.




well the first mod I try is translate,I study that translate example,put all characters I use in the file "CharacterSet.rsc"(about 1700 characters),I choose the font in "Font.res"(4 of this file),because the numbers of character is too big,so the "_sheetWidth" and "_sheetHeight" got very big in those 4 files above(2048x2048-4096x4096),or it's go wrong in the "/build" step.




It's so perfect when I'm testing it in the modkit,so when the last step "/mod" it gives me a crash:



Code:
Assert: Wrote past end of buffer in stream!

IO\MemoryStream.cpp(75)

Callstack:
Runtime-x64-profile.dll(0x0000000001f33953)
Runtime-x64-profile.dll(0x0000000001f2ad52)
CompileWin-x64-profile.dll(0x000000000e6a4e94)
CompileWin-x64-profile.dll(0x000000000e6a3b1d)
CompileWin-x64-profile.dll(0x000000000e6a528b)
Runtime-x64-profile.dll(0x0000000001f508f9)
Runtime-x64-profile.dll(0x0000000001fc3bed)
Runtime-x64-profile.dll(0x0000000001fc337c)
Runtime-x64-profile.dll(0x0000000001f3a5ef)
Runtime-x64-profile.dll(0x0000000001f39aeb)
Runtime-x64-profile.dll(0x0000000001f3862a)
Tools-x64.exe(0x000000007fd1408b)
Tools-x64.exe(0x000000007fe947a3)
KERNEL32.DLL(0x000000001ccd84d4)
ntdll.dll(0x000000001d08e851)



I did try to delete the characters down to about 30 to find out why,and change the "_sheetWidth" and "_sheetHeight" to a smaller size(256x256 512x512) ,it goes well.




So I think it's because the image size is too big and it goes crash,but in chinese there are too many characters,can anyone help me?thanks!



[img]<fileStore.core_Attachment>/monthly_2019_04/wrongmessage_2.thumb.png.9abc1443b18f6b0e94b38f205b3010b7.png[/img]
  Reply



Messages In This Thread
"Wrote past end of buffer in stream" when packging - by cnzjs - 30-04-2019, 05:27 PM