Page 1 of 1

Help with OBJ parser?

Posted: Mon Jun 28, 2021 7:49 pm
by ThatCodingGuy78
I'm currently attempting to write a OBJ parser and it's not outputting anything but the 1st variables in the v and f lists.
This is a really simple parser, and I have no idea why it isn't working properly..
Here's the .love file:
Game Name.love
(9.35 KiB) Downloaded 273 times
The parser is in the objParser.lua file.

Re: Help with OBJ parser?

Posted: Tue Jun 29, 2021 1:27 am
by ReFreezed
I assume this is the problem:

Code: Select all

-- This:
step2 = split(startsWithV[i], "%s")
-- should be something like this:
step2[i] = split(startsWithV[i], "%s")

Re: Help with OBJ parser?

Posted: Tue Jun 29, 2021 2:43 am
by ThatCodingGuy78
ReFreezed wrote: Tue Jun 29, 2021 1:27 am I assume this is the problem:

Code: Select all

-- This:
step2 = split(startsWithV[i], "%s")
-- should be something like this:
step2[i] = split(startsWithV[i], "%s")
Ah. Yeah, that was supposed to be there.. Thanks!