It's likely going to be throwing a few issues but I can't work out the current error:
[string "/Themes/GrooveNights/Scripts/gnSystem.lua"]:615: bad argument #1 to `GetTotalStepsWithTopGrade' (number expected, got nil)
The same operations occur on lines 591, 599, 607, and 615 but only the 615 crashes.
I think it has something to do with setting s to 0 in the for loop but the first value in a table is [0] anyway so I don't get why it doesn't work (also the error above says argument #1 isn't working but it actually is, if I change #2 and #3 to one of the table values manually it doesn't have any issue so I don't know what the fuck.
It's likely going to be throwing a few issues but I can't work out the current error: [string "/Themes/GrooveNights/Scripts/gnSystem.lua"]:615: bad argument #1 to `GetTotalStepsWithTopGrade' (number expected, got nil)
The same operations occur on lines 591, 599, 607, and 615 but only the 615 crashes. I think it has something to do with setting s to 0 in the for loop but the first value in a table is [0] anyway so I don't get why it doesn't work (also the error above says argument #1 isn't working but it actually is, if I change #2 and #3 to one of the table values manually it doesn't have any issue so I don't know what the fuck.
Choke on it: https://github.com/DivinElegy/GrooveNights/tree/iss26