Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(2 edits)

So, my issue was never about live_call() line placement, rather than about something failing to load functions from other extensions. I was able to reproduce the issue in an empty project with only extensions being GMLive and Quality Structures, so maybe latter is the culprit here. Edit: tried it with other extension (file_ini) and same error happens.

if (live_call()) return live_result;
ini = file_ini_open("test.ini");
/// results in
[live][2020-09-28 10:27:23] Runtime error: [error] `instance#100002(Test)` (Test) does not have a variable `file_ini_open`
 called from Test:Step_0[L3,c7]


Here's that test project: <snip>


Is there any way I could fix it on my own? Please, I'm addicted to live development now.

(2 edits)

Adding this to GMLive's create event should work:

for (var i = 100001; script_exists(i); i++) {
    var s = script_get_name(i);
    if (gml_func_sig.h_exists(s)) continue;
    gml_func_add(":::" + s + "(...):", i);
}

this will also add a lot of usually inaccessible functions (like struct methods) but I'll see about figuring out the right way to index extension scripts later. Only extension scripts that are still in 2.2.5 style (an extension instead of a big script) are affected.