Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

lua_add_code always returns 0

A topic by Hyomoto created Feb 02, 2023 Views: 84
Viewing posts 1 to 1
(1 edit)

From the cheat sheet, "Returns whether all steps succeeded."  However, whether or not the code succeeded at being added, it always seems to return 0.  I'm assuming this is there so you can check if a snippet actually compiled or not and handle the error if it doesn't, but as is it seems that isn't possible.  I was able to hijack the lua_error_handler to set a flag, but this is definitely not the desired behavior.