BlueAmulet / picolove

Pico-8 Reimplementation in Love2D
zlib License
101 stars 12 forks source link

Error: cart.lua:332: 640 + 4096 != 8192 #24

Closed tobiasvl closed 6 years ago

tobiasvl commented 6 years ago

I get the following error when trying to run this cart:

Error: cart.lua:332: 640 + 4096 != 8192
stack traceback:
        [string "boot.lua"]:637: in function <[string "boot.lua"]:633>
        [C]: in function 'assert'
        cart.lua:332: in function 'load_p8'
        main.lua:140: in function '_load'
        main.lua:348: in function 'load'
        main.lua:719: in function <main.lua:711>
        [C]: in function 'xpcall'
        [string "boot.lua"]:650: in function <[string "boot.lua"]:639>
        [C]: in function 'xpcall'

This is an assertion that tiles+shared==128*64, but in my cart apparently tiles==640 and shared==4096, and 640+4096==4736. Not sure how that's possible though.

hsandt commented 6 years ago

Same issue. I commented the assert out but now I get

Error loading lua: Games/game.p8:124: unexpected symbol near ''

Traceback

[C]: in function 'error' cart.lua:429: in function 'load_p8' main.lua:140: in function '_load' ...

Liquidream commented 6 years ago

Same, for several of my games (but not all). Not sure what about the cart code triggers it tho...

gamax92 commented 6 years ago

Sorry about the delay on this, been kinda busy. Should be fixed now.