Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

You can’t just use “console.log” in lua_call as a name - it takes a name of a global to call. It doesn’t do parsing.

You could make a Lua-side global function to call sub-functions, and call that.

I noticed the first thing actually.

What do you mean on “Lua-side global function to call sub functions”. I’m kinda lost on this

Thanks in advance :)

(+1)

Like

function call_sub(obj, field, ...)
    return _G[obj][field](...)
end

and then lua_call("call_sub", "console", "log", 1, 2, 3)

Cool! Thanks :)

I already fixed my issue actually, they were different problems altogether, one of them the file paths, for example.

Thanks for the soon response, have a good day :D