Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

Livecoding for GameMaker: Studio / GameMaker Studio 2 · By YellowAfterlife

[pre-2.3 GM bug] Game crashes when using variable_instance_get_names() function while live coding

A topic by K.Blank created May 31, 2020 Views: 287 Replies: 5
Viewing posts 1 to 3
(1 edit)

So i'm making a saving system for my game, and a part of the code is something like this:

if (live_call()) return live_result;
show_debug_message("start");
_varArray = variable_instance_get_names(id);
show_debug_message("end");
show_debug_message(_varArray);

After the debug message "start" output, the game window disappears without any errors: no error window, no messages inside the IDE Output tab.

Then i tested it in a brand-new project, tried the code inside a script and a step event, yet the problem is occuring still.

The GMLive version i'm using is 1.0.24.

Is there any solution to this? thanks.

Developer

Considering that GMLIve simply calls the actual variable_instance_get_names function, that would suggest that there is a bug in GameMaker itself.

If you can send me a sample project reproducing the issue, I can take a look at whether there are any obvious workarounds.

(1 edit)

Sad to hear that. hope they fixed this in 2.3.

I uploaded the sample project <snip>.

It'd be cool if you can figure something out from it still. Thanks again!

Developer

I have requested access from yellow.ua@gmail

(1 edit)

Sorry i was meant to set the file visibility to public but i operated it wrong.

Now it should be visible for you: <snip>

Developer

Happy to inform that this no longer crashes the runtime as of the current 2.3. Uncertain whether 2.2.5 will get a fix for this or not as I assume it to have been an edge case with array implementation.