Error while trying to open 'Love2d' game engine
Asked Answered
U

6

5

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?

Ultramundane answered 19/5, 2020 at 16:7 Comment(7)
the error is pretty self-explainatory. "make sure a folder exists at the specified path". did you make sure it exists? Are you using Linux?Primalia
Yes I'm using linux ubuntu 20.04 and the folder already existsUltramundane
did you try to provide the path without the filename main.lua? in the examples the only provide a path. .love is the ending for packaged love games is it not? you use that as a folder?Primalia
Yes i tried that too!Ultramundane
adding to your post what you have tried would save us both time ;)Primalia
so you have a /home/panali/Desktop/Lua.love/main.lua and you run love /home/panali/Desktop/Lua.love/ ? Did you try to not have a . in your folder name?Primalia
What is the output of ls -l /home/panali/Desktop/Lua.love/main.luaKravits
F
9

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

love ./

instead of

love main.lua
Familist answered 19/2, 2022 at 0:51 Comment(0)
M
3

You can try to open the folder instead of lua file

Monstrance answered 11/7, 2020 at 11:1 Comment(0)
B
1

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.

Bellman answered 12/6, 2020 at 2:11 Comment(0)
X
0

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.

Xylem answered 1/5, 2022 at 10:34 Comment(0)
S
0

If you drag the folder to the love icon instead of dragging the main.lua file to the love icon it works.

Saez answered 12/6, 2022 at 20:20 Comment(1)
An answer is not a really good place to ask a related question (most likely noone is going to respond, or if someone will, it will be considered off-topic). I recommend you to ask it as a new question (after doing some research, chances are it was already asked and answered before)Utile
F
-1

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

Frumenty answered 26/1, 2022 at 3:40 Comment(2)
The question tells you the path the asker tried, and it already doesn't contain a space.Unhandy
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Aesthetically

© 2022 - 2024 — McMap. All rights reserved.