Page 1 of 1

Error loading lua file

Posted: Tue Aug 16, 2022 3:16 pm
by Casufito64
I just installed love2d and when i try to add the main.lua file the program gives me this error:

[love "boot.lua"] cannot load game at path 'C:/Program Files/LOVE/testing lua/main.lua'.
Make sure a folder exist at the specified path.

Re: Error loading lua file

Posted: Tue Aug 16, 2022 7:29 pm
by ReFreezed
You need to tell LÖVE to run the game folder, not the main.lua file.

Code: Select all

love.exe "C:/Program Files/LOVE/testing lua"

Re: Error loading lua file

Posted: Thu Sep 01, 2022 2:44 pm
by Axiorc
ReFreezed wrote: Tue Aug 16, 2022 7:29 pm You need to tell LÖVE to run the game folder, not the main.lua file.

Code: Select all

love.exe "C:/Program Files/LOVE/testing lua"
How do I tell Löve to run the folder ? I don't understand where to paste the code you wrote

Re: Error loading lua file

Posted: Thu Sep 01, 2022 5:21 pm
by Andlac028
That should be pasted to the terminal, but you can also just drop the folder containing main.lua on love.exe. See wiki for more info about how to run games

Re: Error loading lua file

Posted: Fri Sep 02, 2022 6:49 am
by Axiorc
Andlac028 wrote: Thu Sep 01, 2022 5:21 pm That should be pasted to the terminal, but you can also just drop the folder containing main.lua on love.exe. See wiki for more info about how to run games
On the wiki I didn't find anything about making a .exe file so my friends don't have to download LÖVE. Is it possible to create one and if so, how ?

Re: Error loading lua file

Posted: Fri Sep 02, 2022 7:56 am
by zorg
Axiorc wrote: Fri Sep 02, 2022 6:49 am
Andlac028 wrote: Thu Sep 01, 2022 5:21 pm That should be pasted to the terminal, but you can also just drop the folder containing main.lua on love.exe. See wiki for more info about how to run games
On the wiki I didn't find anything about making a .exe file so my friends don't have to download LÖVE. Is it possible to create one and if so, how ?
-> https://love2d.org/wiki/Game_Distribution