View Issue Details

IDProjectCategoryView StatusLast Update
0031023RunnerFunctionsPublic2019-06-24 11:41
ReporterStewart BishopAssigned ToFritz 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionNo Change Required 
Product Version2.2.2 
Target VersionFixed in Version 
Summary0031023: Functions: ds_grid_value_x returns the wrong value some of the time
DescriptionUsing this function at times it seems to return the correct value and then other times it seems to return something else entirely that is incorrect.
Steps To Reproduce1) Run the sample
2) Follow the on screen instructions
TagsRunner
1.4 Found In
2.x Runtime Found In2.2.2.326
2.x Runtime Verified In2.2.3.338

Activities

Stewart Bishop

2019-06-06 17:35

Adminstrator  

grid_function_errors.yyz (13,634 bytes)

Fritz

2019-06-07 15:33

Manager   ~0064148

This is a fallout of the string to number conversion documented here https://www.yoyogames.com/blog/506/gml-consistency-in-version-2-2-2

you can test this without ds_grid_value_x - try this

if(0=="0_1_2_3")
    show_debug_message("0 equals \"0_1_2_3\2");
else
    show_debug_message("not equal");

you will see they are considered equal