Open KelvinShadewing opened 4 years ago
OK, so in <project folder>/test/my.nut
, it seems to be pointing to a line that contains quit = 0
which gives [trying to set 'string']
. If I change =
to <-
, it becomes [indexing string with string]
. It isn't being set to a string anywhere I can see, nor is it being used to index anything.
in all cases when this happened to me with squirrel, there was an object shadowing the object I meant, like a local. However, from the fact that a slot operator throws "indexing string with string" I'd recommend analysing the this-object. It could be a string instead of a table for some reason (stack issues maybe). To do a quick test, "foobar<-0" would throw the same error in that case. Same applies for bindenv, maybe a string is bound to the function...
When running the program by itself so that it loads
/rte/bin/test.nut
, the menu seems to work perfectly fine, and even lets me navigate directories like it should. However, if I select another nut to run, I get this weird error. The following is what I got trying to run/test/my.nut
:I tried navigating out of Brux's project folder and into Fly Little Dragon's, and upon running that, got a similar error:
What's weird is it got as far as changing the window size and title when I ran it, so it's executing something.
However, if I launch Brux directly from these games' respective directories, they run perfectly fine, so the issue is with the test app somehow. I need to figure out how to make this work, not just so the runtime can have a built-in menu for handheld devices, but so that other games don't have to face the same issue when trying to run mods.