Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Using latest version of GM (IDE v2022.6.0.23 / RUNTIME v2022.6.0.23) and using the YYC compiler. I get the following error:

___________________________________________ ############################################################################################ ERROR in action number 1 of  Step Event0 for object oMenu:  Variable Get 3 (100154, -2147483648)############################################################################################ gml_Script_anon_Controls_gml_GlobalScript_Controls_347119_Controls_gml_GlobalScript_Controls (line 147) gml_Object_oMenu_Step_0 (line 127)

EDIT: This was using the default demo project downloaded from here.

(1 edit)

I did some testing and it works for me, same version same compiler. I found some posts online that suggest using the VM compiler, which might fix it for you. Or maybe you could try updating your Visual Studio version, I tested it with the 2022 Community Edition.

(5 edits)

I forgot to mention, but this was when clicking on settings and then controls. That was working for you? Thanks for the reply I will look to see what VS I have.

EDIT:  I did need to update VS (now ver 17.2.6), but still same error. I'm now going to just try VS 2019 Community.

EDIT 2: Yeah, not sure what is going on. Neither VS 2019 or 2022 solved it. Still got same error for both. I've ensured I cleaned before each build. I don't know. I guess I'll try a full reinstall of everything. I did a full reinstall of everything and that changed nothing.

I finally found the bug, it should be working now.

I don’t even know why it worked with the VM compiler in the first place, the code was trying to access a variable which didn’t exist in that scope. Anyway, GameMaker is weird sometimes. Please tell me if it works now.

Yeah, that fixed it. Thanks for the quick response.

I'm going to implement the fix into my game. Was the fix just changing the one line from:

page[i] = [name, new oMenu.Input(in_sys, name)]

to:

page[i] = [name, new Input(in_sys, name)]

or was there more to the fix?

Thanks again!

Yes, just remove the oMenu. and it’ll work.

Okay, thank you!