Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Thanks! Sorry to hear the news builds of Love aren't playing nice with Linux. Not quite sure what to do about it. That said, it should run with the latest Love2D (did so today) so you shouldn't need to use older versions, unless I'm missing something.

(2 edits)

With both the distro-provided love 11. 2 and the AppImage off https://love2d.org/, I get the following error as soon as I run:

love Spellrazor.app/Contents/Resources/Spellrazor.love
Error
main.lua:268: bad argument #3 to 'newCanvas' (table expected, got string)
Traceback
[C]: in function 'newCanvas'
main.lua:268: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'

Ooh. That's wacky. I'll look into this.

Wanna try this? https://www.mediafire.com/file/7no7jwubf98jakr/Spellrazor.app.zip/file

(3 edits)

Thanks. Unfortunately still getting the exact same error (literally character-for-character the same) with the .love file from that archive. Please don't feel obligated to troubleshoot this for my sake; I do have a perfectly acceptable way of playing the game with wine. :)

If you do have a linux system handy, it would be interesting whether you're getting the same error with the AppImage from https://love2d.org/ which should guarantee the same environment. From my cursory glance through the docs at https://love2d.org/wiki/love.graphics.newCanvas, it appears you're trying to invoke newCanvas in a way that was removed in 11.0, so I'm honestly surprised to hear that you have it working with 11.2 at all.

EDIT:

I can confirm that running the following sed command seems to fix things without any glaring issues for love 11.2:

sed -i 's/, \?gCanvasMode, \?0//' main.lua

Nevermind. You just end up with a new error once you get past the main menu:

Error
game/StateGame.lua:179: bad argument #2 to 'newSource' (string expected, got no value)
Traceback
[C]: in function 'newSource'
game/StateGame.lua:179: in function 'switch'
game/StateMenu.lua:404: in function 'startGameFromMenu'
game/StateMenu.lua:383: in function <game statemenu.lua:380="">
library/CWindowDialog.lua:42: in function 'keypressed'
main.lua:773: in function <main.lua:747>
[C]: in function 'xpcall'</main.lua:747></game>

To me it looks like, it's probably best to either just recommend wine for linux users or actually create an appimage as described at https://love2d.org/wiki/Game_Distribution.