Debug Warning when I start level

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

Yellow_Drill
Goomba
Goomba
Posts: 3
Joined: Sat Feb 05, 2022 1:16 pm
Flair: Ebic Gamer
Pronouns: he/him

Debug Warning when I start level

Postby Yellow_Drill » Tue Feb 15, 2022 5:16 pm

Image
Whenever i try and start a specific level this warning comes up although my achievement works fine and can be obtained correctly. I am relatively new to lua coding so im not sure what is causing this, if anyone knows please let me know :D

deice
Rocky Wrench
Rocky Wrench
Posts: 638
Joined: Fri Jul 23, 2021 7:35 am

Re: Debug Warning when I start level

Postby deice » Tue Feb 15, 2022 5:41 pm

this error means you are trying to access a 'nil' value (a variable with nothing assigned to it) as if it were a table. if you could post your code, it would make it easier to find exactly what's wrong.

Hoeloe
Phanto
Phanto
Posts: 1465
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Pronouns: she/her

Re: Debug Warning when I start level

Postby Hoeloe » Tue Feb 15, 2022 10:13 pm

I looks to me like on line 19 of your code you've tried to call something in the "Misc" class, but have written "misc" instead. Lua is case-sensitive, so "misc" does not exist, while "Misc" does.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari