View Issue Details

IDProjectCategoryView StatusLast Update
0026917RunnerHTML5Public2018-02-07 14:49
ReporterricardocostazaAssigned ToMike Dailly 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformHTML5OSWindowsOS Version10
Product Version 
Target VersionFixed in Version 
Summary0026917: file_text_readln behavior is not consistent between HTML5 and native targets
DescriptionI saw file_text_readln behavior in HTML5 was recently changed: http://bugs.yoyogames.com/view.php?id=0025575

However, the change is making the function behave differently in native X HTML5.

See this basic example in which the text file contains only 10 lines, one number in each line:

file = file_text_open_read(working_directory+"file.txt");
while (!file_text_eof(file)) {
    t = file_text_read_string(file);
    file_text_readln(file);
    show_debug_message(t);
}
file_text_close(file);

In windows, the output is:
1
2
3
4
5
6
7
8
9
10

In HTML5, however, the output is:
1
3
5
7
9
Steps To ReproduceRun the example project in Windows and then in HTML5.
Additional InformationNot a big deal, it's easy to workaround, but may confuse some people as the manual' example will replicate the same inconsistency.
TagsNo tags attached.
1.4 Found Inv7.7.1493
2.x Runtime Found In
2.x Runtime Verified In

Activities

ricardocostaza

2017-06-26 22:35

Updater  

file_text_readln_html5_bug.gmz (270,923 bytes)

Mike Dailly

2017-09-06 16:38

Manager   ~0055325

fix on gitlab