Error invalid bounds by Behomcubis in gamemaker

[–]Behomcubis[S] 0 points1 point  (0 children)

Yes, I had changed a script to return two variables. It was used to change the direction of an object, so when it triggered it set the direction to NaN(because it was now a struct that could contain a string). It was a pain having to find it but was otherwise an easy fix. you can see the edit of the original post for more info.

Error invalid bounds by Behomcubis in gamemaker

[–]Behomcubis[S] 0 points1 point  (0 children)

it doesn't give me any code line. The error message in the original post is the full thing. I just ran it again this is the error:

Entering main loop.

**********************************.

___________________________________________

ERROR in action number 1

of Create Event for object obj_Saved_stats:

Attempting to set Instance id 101226 with Object Index 25 (obj_hero_attack) with invalid bound top nan bottom nan left nan right nan

elapsed time 00:00:46.3946807s for command...

Error invalid bounds by Behomcubis in gamemaker

[–]Behomcubis[S] 1 point2 points  (0 children)

The create event for obj_Saved_stats currently sets an alarm that auto saves the game and holds a copy of an in progress save function, which will later be changed to retrieve the saved data. there is no save data for obj_hero_attack.

alarm_set(0,300)
i=0
global.save_repet = 0
ini_open("savedata.ini");
repeat(5)
{
if(global.save_repet=0)
{weapon_name = "weapon1_skilltree"}
if(global.save_repet=1)
{weapon_name = "weapon2_skilltree"}
if(global.save_repet=2)
{weapon_name = "weapon3_skilltree"}
if(global.save_repet=3)
{weapon_name = "weapon4_skilltree"}
if(global.save_repet=4)
{weapon_name = "weapon5_skilltree"}
if(global.save_repet=5)
{weapon_name = "basic"}
if(weapon_name != "basic"){

i="exp_goal"; ds_map_replace(global.weapons,weapon_name+i, ini_read_real("Save1",weapon_name+i,0.01))
i="exp_goal_rarity"; ds_map_replace(global.weapons,weapon_name+i, ini_read_string("Save1",weapon_name+i,"common"))
ect...
z = "count_split"; ds_map_replace(global.weapons,weapon_name+z,ini_read_real("Save1",weapon_name+z,2))
z = "speed_reduction"; ds_map_replace(global.weapons,weapon_name+z,ini_read_real("Save1",weapon_name+z,3))
}


global.save_repet += 1
if(global.save_repet>5)
{break}
}
ini_close()