View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0028643||Runner||HTML5||Public||2018-01-08 14:40||2018-04-04 11:01|
|Reporter||Stewart Bishop||Assigned To||Mike Dailly|
|Priority||High||Severity||A - Crash/Hang||Reproducibility||100%|
|Target Version||2.1.4||Fixed in Version||2.1.4|
|Summary||0028643: HTML5: Runner crashes if you use draw_text_ext with string_width|
|Description||Within the attached project the user is trying to create a typewriter effect using draw_text_ext and string_width. On Windows this will work as intended without crashing, within HTML5 when it reaches the first point where it should linebreak.|
|Steps To Reproduce||1) Run the project on HTML5|
|1.4 Found In||1.4.1773|
|2.x Runtime Found In||184.108.40.206|
|2.x Runtime Verified In||220.127.116.11|
Text_Issue_HTML5.gmz (339,340 bytes)
Not actually a bug. GameMakerStudio 2 now uses "\n" as a newline rather than "#". However "\n" is character 10, not character 13. So this line...
Current_String += chr(13);
is wrong, and it should be...
Current_String += chr(10);
Current_String += "\n";
I'm loathed to change this into a manual loop as it would have a performance impact on all string rendering, so to fix the bug the user needs to change his code to use the correct newline character.
||After discussion... will try and make it more like Native so it's more compatible - even though Native is technically wrong.|
||Now in line with NATIVE. But it should be noted that \n=0x0A, not 0x0d.|
|Verified > rt 18.104.22.168 - Closing.|