Closed OH296 closed 10 months ago
getting an error as soon as it gets to the main menu screen after launching the game. the same doesnt happen on main branch.
` ############################################################################################ ERROR in action number 1 of Draw Event for object obj_main_menu_buttons:
Variable obj_main_menu_buttons.spr_settings_button(104744, -2147483648) not set before reading it. at gml_Object_obj_main_menu_buttons_Draw_0 (line 54) - draw_sprite_stretched(spr_settings_button,0,0,room_height-48,48,48); ############################################################################################ gml_Object_obj_main_menu_buttons_Draw_0 (line 54) `
getting an error as soon as it gets to the main menu screen after launching the game. the same doesnt happen on main branch.
` ############################################################################################ ERROR in action number 1 of Draw Event for object obj_main_menu_buttons:
Variable obj_main_menu_buttons.spr_settings_button(104744, -2147483648) not set before reading it. at gml_Object_obj_main_menu_buttons_Draw_0 (line 54) - draw_sprite_stretched(spr_settings_button,0,0,room_height-48,48,48); ############################################################################################ gml_Object_obj_main_menu_buttons_Draw_0 (line 54) `
just done some tests and not getting this issue. Is it possible you had a different branch to this checked out? looks like maybe a sprite has been deleted from your game somewhere?
yeah, its the gear sprite from the main menu, i've double-checked and the sprite is there, this code dont directly change anything related with it, but this is the only branch that this happens. if i'm getting this, someone else will too.
can you try something, please? fully remove the cache and launch it again?
remove or rename the following folders: C:\Users\YOUR_USER\AppData\Roaming\GameMakerStudio2 C:\Users\YOUR_USER\AppData\Local\GameMakerStudio2 C:\Users\YOUR_USER\AppData\Local\ChapterMaster (this is where your saves are)
this will hard clear all gamemaker cache and hopefully reproduce the bug.
Had to go back and tinker a bit as I realised close combat wasn't working correctly, turned out to be as simple as close combat being skipped as ammo values were set to 0 by default.