Reputation:
I'm trying to open a game with Love2D and the following error occurs:
Error
boot.lua:577: Cannot load game at path '/home/panali/Desktop/Lua.love/main.lua'. Make sure a folder exists at the specified path.
Traceback
[C]: in function 'error'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
Can anyone help me and tell me what am I doing wrong?
Upvotes: 5
Views: 3051
Reputation: 1
If you drag the folder to the love icon instead of dragging the main.lua file to the love icon it works.
Upvotes: 0
Reputation: 75
you can't just give the location of the file, you need to give to location of the folder. try putting main.lua
inside a folder and then run the folder.
Upvotes: 0
Reputation: 119
had the same issue, resolved this by pointing folder instead filename:
love ./
instead of
love main.lua
Upvotes: 9
Reputation: 1
The folder cant have a space in it. It took me an hour to find this out myself.
Upvotes: -1
Reputation:
I dont know if you're still looking at this, the error is that you cant open a main.lua directly, it has to be in a folder.
Upvotes: 1