C
Carcophan
Guest
Hello Everyone!
I have stumbled into a strange error that only seems to exist in, and crash, my Chrome/HTML5 compiles.
It is not recognized as an error during a Windows compile in F5/F6 - which seems to run just fine.
There are no errors in the debugger window for Windows - nor the HTML5 version when run in F5 and F6 mode. Errors do exist in the Chrome Developer Console though, during the crash.
I should note that I CAN get things to work just fine with other peoples code, like a tutorial example. So it is deff something that I am doing .
Chrome Developer Console output:
The grid in question:
global.mazeWidth = 26;
global.mazeHeight = 26;
global.grid1 = ds_grid_create(global.mazeWidth , global.mazeHeight );
Is later used in:
for ( global.i = 0; global.i < global.mazeWidth ; global.i++){
for ( global.j = 0; global.j < global.mazeHeight ; global.j++){
show_debug_message(string(global.i) and string(global.j)) yields '25 and 25' instead of 26, and 26. Which is fine, because 25 really means '26' here (right??).
show_debug_message(string(ds_grid_width(global.grid1)) + " W") yields '26'
show_debug_message(string(ds_grid_height(global.grid1)) + " H") yields '26'
Am I missing a -1 or +1 somewhere? I don't get it. I do not understand the Chrome error message honestly... and am guessing that the issue is because something is a '26' when it should really be a '25'?
I have stumbled into a strange error that only seems to exist in, and crash, my Chrome/HTML5 compiles.
It is not recognized as an error during a Windows compile in F5/F6 - which seems to run just fine.
There are no errors in the debugger window for Windows - nor the HTML5 version when run in F5 and F6 mode. Errors do exist in the Chrome Developer Console though, during the crash.
I should note that I CAN get things to work just fine with other peoples code, like a tutorial example. So it is deff something that I am doing .
Chrome Developer Console output:
Code:
Error: Error: region out of bounds(ds_grid_set_region): 0
--------------------------------------------------------------------
function _Sg("Error: region out of bounds(ds_grid_set_region): 0")
function ds_grid_set_region(0, 0, 15, 26, 26, 0)
function gml_Script([instance], [instance], 26, 26, 0, 1, 1, 1, 1, 3, 5, 5, 3)
function gml_Object_obj_Level7_Create_0([instance], [instance])
function(0, 0, [instance], [instance])
function(0, 0, [instance], [instance])
function _Re2(9, [unknown])
function _h23(9)
function _T13()
function _y13(11004.607)
Random Map ###game_end###-2
Random Map Error: Error: region out of bounds(ds_grid_set_region): 0
--------------------------------------------------------------------
function _Sg("Error: region out of bounds(ds_grid_set_region): 0")
function ds_grid_set_region(0, 15, 0, 26, 26, 0)
function gml_Script([instance], [instance], 26, 26, 0, 1, 1, 1, 1, 3, 5, 5, 3)
function gml_Object_obj_Level7_Create_0([instance], [instance])
function(0, 0, [instance], [instance])
function(0, 0, [instance], [instance])
function _Re2(9, [unknown])
function _h23(9)
function _T13()
function _y13(11004.607)
global.mazeWidth = 26;
global.mazeHeight = 26;
global.grid1 = ds_grid_create(global.mazeWidth , global.mazeHeight );
Is later used in:
for ( global.i = 0; global.i < global.mazeWidth ; global.i++){
for ( global.j = 0; global.j < global.mazeHeight ; global.j++){
show_debug_message(string(global.i) and string(global.j)) yields '25 and 25' instead of 26, and 26. Which is fine, because 25 really means '26' here (right??).
show_debug_message(string(ds_grid_width(global.grid1)) + " W") yields '26'
show_debug_message(string(ds_grid_height(global.grid1)) + " H") yields '26'
Am I missing a -1 or +1 somewhere? I don't get it. I do not understand the Chrome error message honestly... and am guessing that the issue is because something is a '26' when it should really be a '25'?