user13077054
user13077054

Reputation:

Error while trying to open 'Love2d' game engine

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

Answers (6)

Thomas Wright
Thomas Wright

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

freeve4h
freeve4h

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

user3549043
user3549043

Reputation: 119

had the same issue, resolved this by pointing folder instead filename:

love ./

instead of

love main.lua

Upvotes: 9

Joe Smith
Joe Smith

Reputation: 1

The folder cant have a space in it. It took me an hour to find this out myself.

Upvotes: -1

Z Jiang
Z Jiang

Reputation: 31

You can try to open the folder instead of lua file

Upvotes: 3

user12826483
user12826483

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

Related Questions