poke1024 / tove2d

Animated vector graphics for LÖVE.
Other
171 stars 8 forks source link

Editor demo crashes on latest git #33

Closed pdesaulniers closed 4 years ago

pdesaulniers commented 4 years ago

When I run the editor demo, I get:

Error: tove/init.lua:1347: cannot convert 'table' to 'float'
stack traceback:
    [string "boot.lua"]:777: in function '__newindex'
    tove/init.lua:1347: in function 'setPoints'
    tove/init.lua:1377: in function 'newSubpath'
    tove/init.lua:1651: in function 'deserialize'
    tove/init.lua:1673: in function 'newPath'
    tove/init.lua:2776: in function 'newGraphics'
    object.lua:147: in function 'deserialize'
    editor.lua:990: in function 'restore'
    editor.lua:463: in function 'startup'
    main.lua:36: in function 'load'
    [string "boot.lua"]:586: in function <[string "boot.lua"]:585>
    [C]: in function 'xpcall'
    [string "boot.lua"]:793: in function <[string "boot.lua"]:780>
    [C]: in function 'xpcall'
pdesaulniers commented 4 years ago

Ah, nevermind, I had an old save on my machine... Deleted it, and now it works fine :ok_hand:

pdesaulniers commented 4 years ago

No, wait, I take it back! It started crashing again. The crash occurs when the editor tries to read the save file.

poke1024 commented 4 years ago

Can you produce a sample save file that triggers the issue?

pdesaulniers commented 4 years ago

Yes, here: save.lua.zip

poke1024 commented 4 years ago

I believe https://github.com/poke1024/tove2d/commit/04aeeeee2390c114af77c2948fbafee145203668 will fix this.

pdesaulniers commented 4 years ago

Yes, it doesn't seem to crash anymore. Thanks!