-
Notifications
You must be signed in to change notification settings - Fork 29
Ingame errors with -lua #885
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
Comments
I managed to change my map, so it works in lua. The most prevalent issue is mentioned above. In particular this construct does not work: Additionally using null as string does not work. For the first issue, there is likely no good solution, other than updating the code and check whether the key exists first. The standard library uses the HashMap as shown above, so it can lead to issues. It also uses null as string, so at the moment FrameHandle.wurst cannot initialize. |
Thanks for the report. The thing with nulls and strings is something I thought was working. We have some test cases testing different combinations of using WurstScript/de.peeeq.wurstscript/src/test/java/tests/wurstscript/tests/BugTests.java Lines 1083 to 1123 in d79f738
Can you show an example where null as string does not work? I'll also look at the HashMap problem. Maybe that will already fixed by the upcoming changes in #931 . |
Using the FrameHandle package leads to an error, because it uses So using that package, you get an error with the string. For example with this code: https://bin.wurstlang.org/viyirecelo.wurst On a related note, I found an issue when I tried to create a minimal example with the string problem. |
seems resolved. |
I tried the -lua run argument in my map and it produced errors during the initialization. One of the issues I found is, that functions can return nil instead of the specified type, possibly leading to errors, when using the returned value.
code to reproduce: https://bin.wurstlang.org/ajosinetib.wurst
Could be related to #869
The text was updated successfully, but these errors were encountered: