[SOLVED] A table is nil and not nil at the same time??

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
ThatCodingGuy78
Prole
Posts: 16
Joined: Thu May 27, 2021 12:32 am

[SOLVED] A table is nil and not nil at the same time??

Post by ThatCodingGuy78 »

As stated in the title, I have a problem where a table, if I try to print just the main table (Recursive tables), it prints fine. If I try to access anywhere in the table, it's suddenly nil. Even when I set that index to always be 1, it's still somehow nil.

Here's my .love file:
Game Name.love
(11.12 KiB) Downloaded 264 times
The problematic function is parseMtl in objParser.lua at line 120.

Edit: I solved it, I have no idea what I did but it works now
"There is no such thing as a mistake, only happy accidents"
Post Reply

Who is online

Users browsing this forum: Nelvin and 42 guests