Skip to content

Running another nut from in test.nut fails #23

@KelvinShadewing

Description

@KelvinShadewing

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:

AN ERROR HAS OCCURED [indexing string with string]


CALLSTACK

*FUNCTION [unknown()] /home/kelvin/Code/brux/test/src/main.nut line [5]

*FUNCTION [main()] /home/kelvin/Code/brux/test/my.nut line [7]

*FUNCTION [unknown()] NATIVE line [-1]

*FUNCTION [unknown()] test.nut line [92]

*FUNCTION [main()] test.nut line [246]


LOCALS

[this] "my.nut"

[vargv] ARRAY

[this] "my.nut"

[this] TABLE

[brxQuit] false

[vargv] ARRAY

[this] TABLE

I tried navigating out of Brux's project folder and into Fly Little Dragon's, and upon running that, got a similar error:

AN ERROR HAS OCCURED [trying to set 'string']


CALLSTACK

*FUNCTION [unknown()] /home/kelvin/Code/fld/src/main.nut line [6]

*FUNCTION [main()] /home/kelvin/Code/fld/fld.nut line [28]

*FUNCTION [unknown()] NATIVE line [-1]

*FUNCTION [unknown()] test.nut line [91]

*FUNCTION [main()] test.nut line [245]


LOCALS

[this] "fld.nut"

[vargv] ARRAY

[this] "fld.nut"

[this] TABLE

[brxQuit] false

[vargv] ARRAY

[this] TABLE

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions