Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI:setKey(key) returns error #7

Open
toomanynights opened this issue Feb 26, 2024 · 0 comments
Open

UI:setKey(key) returns error #7

toomanynights opened this issue Feb 26, 2024 · 0 comments

Comments

@toomanynights
Copy link

Hello,

First of all, a big THANK YOU for this library. It took me out of a state of existential helplessness as I attempted to grasp how to build a UI in Zomboid. With your mod, it literally came down to a few lines of code.

I've noticed a small error in this doc: it mentions UI:setKey(key) method which, when used, returns:

[26-02-24 16:41:56.395] LOG : General , 1708958516395> Object tried to call nil in createToDoInterface. [26-02-24 16:41:56.395] ERROR: General , 1708958516395> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in createToDoInterface at KahluaUtil.fail line:82.. [26-02-24 16:41:56.396] ERROR: General , 1708958516396> DebugLogStream.printException> Stack trace:.

I believe that UI:setKeyMN() should be used instead. At least it gave no error when I tried it.

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant