hey, didn't you take this from this cart, only removing the bits that say who made it? this is currently blatant theft. I know its a tutorial but you shouldn't copy so closely. at least give credit to lazy dev's series or cart.
this should be obvious but don't post a mod before making a change, please.
IDK if it’s not edited but could you credit Lazydevs please?
The cart is broken because the online high score list got corrupted and the cart doesn't check to make sure the high scores are valid.
I had to change this code:
local _name = hschars[hs1[i]] _name = _name..hschars[hs2[i]] _name = _name..hschars[hs3[i]] |
Into this:
local _name = hschars[hs1[i]] or "?" _name = _name..(hschars[hs2[i]] or "?") _name = _name..(hschars[hs3[i]] or "?") |
Because the hs1[],hs2[],hs3[] values that were being pulled from the global high score table had 0's in them, and the cart assumed they would be all be numbers between 1 and 65. Looking up 0 in the table returned nil and lua got upset about that.
Here's a fixed version:
[Please log in to post a comment]