Page 1 of 1

Runing .lua file thriugh love error

Posted: Tue Jun 16, 2020 5:45 am
by paxth
Error

boot.lua:481: Cannot load game at path '/home/parth/Workspace/main.lua'.
Make sure a folder exists at the specified path.


Traceback

[C]: in function 'error'
[C]: in function 'xpcall'
[C]: in function 'xpcall'

please help. I'm new to this and using ubuntu 20.04

Re: Runing .lua file thriugh love error

Posted: Tue Jun 16, 2020 6:21 am
by MrFariator
As it says in the error, you're supposed to pass a folder (containing a main.lua) to löve, as opposed to the main.lua itself. So in this case, just remove the "main.lua" from the end of the path, and it should run.

Re: Runing .lua file thriugh love error

Posted: Tue Jun 16, 2020 6:38 am
by zorg
You already made a thread about this, along with neglecting to answer questions people asked.
https://love2d.org/forums/viewtopic.php?t=88944