Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

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

[Fixed] Accessor not supported

A topic by zeeawk created Jul 14, 2018 Views: 421 Replies: 2
Viewing posts 1 to 2
(1 edit)

Getting this error message. Any idea why? works fine without GMLive.

[live][5:39:09 PM] Error in menu_navigate:
[live][5:39:09 PM] menu_navigate[L20,c34] Accessor not supported

Code is something like:

/// menu_navigate(_menu)
#args _menu

if (live_call(argument0)) {
    return live_result;
}

_menu[? "current_menu_item"] = 1

Developer

Apparently GMS1 function list didn't even list the ds_map_set function, which is used for m[?k]=v accessor.

You can workaround this by adding a script called, say, scr_ds_map_set that'd do

ds_map_set(argument0, argument1, argument2)

and then adding

gml_func_add("ds_map_set(id, key, value)", scr_ds_map_set);

to the end of GMLive's create event.

I'll fix this in the next update.

That did it. thanks!