Page 1 of 1

Error while loading game

Posted: Mon Apr 16, 2018 10:07 am
by poojan
Error

boot.lua:481: Cannot load game at path 'C:/Users/pooja/Downloads/love-11.1-win64/ms.lua'.
Make sure a folder exists at the specified path.


Traceback

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


//please guide I am new to this

Re: Error while loading game

Posted: Mon Apr 16, 2018 5:00 pm
by Stifu
I'm not sure how you're trying to load the game exactly, but since you're on Windows, shouldn't the path separators be backslashes rather than slashes?

Re: Error while loading game

Posted: Mon Apr 16, 2018 5:03 pm
by grump
You have to give the directory path where main.lua is located to love.exe, or the .love file if you have one. Not a single random lua file.

Follow a tutorial.

Re: Error while loading game

Posted: Mon Apr 16, 2018 11:04 pm
by pgimeno
@poojan This page might also help:

https://love2d.org/wiki/Getting_Started

@Stifu Windows accepts forward slashes as well as backslashes (but cmd.exe doesn't because that's used for options)

Re: Error while loading game

Posted: Fri Apr 20, 2018 3:14 am
by Suspenso
I too need help loading a couple of games. That give errors.
Running: Peppermint Linux
Löve version 11.1

Trying to the game Mr. Rescue that is build on Löve '0.10.0' I get the following error:
Error

Code: Select all

bad argument #1 to '?' (ImageData expected, got Image)


Traceback

[C]: at 0x7ff9100bd130
[C]: in function 'newImageFont'
resources.lua:150: in function 'loadResources'
main.lua:66: in function 'load'
main.lua:211: in function <main.lua:207>
[C]: in function 'xpcall'
[C]: in function 'xpcall'
Also, while trying to run the game Going Home build on Löve '0.10.2' I get the following error:

Code: Select all

Thread error (Thread:0x02740740)
libs/love-loader.lua:0: libs/love-loader.lua:0:, bad argument #2 to 'constructor' string expected got no value
Do I need to downgrade to play those games? Any help would be welcomed.
Thanks

Re: Error while loading game

Posted: Fri Apr 20, 2018 5:39 am
by grump
Suspenso wrote: Fri Apr 20, 2018 3:14 am Do I need to downgrade to play those games?
If the devs did not update their games to make them run on 11.1, you need to use the LÖVE versions these games were build for if you want to play them in Linux.

Re: Error while loading game

Posted: Sat Apr 21, 2018 10:30 pm
by Piscui
Hi poojan Drag and drop the enteri folder where is located the *.lua file in your case "C:/Users/pooja/Downloads/love-11.1-win64/" into the love.exe file, if u use the installation file the location is in "C:\Program Files\LOVE"

Sorry for my english.

Re: Error while loading game

Posted: Tue Jul 16, 2019 12:24 pm
by nfnarvaez
I had the same issue. The solution is calling the path but with not main.lua . For example:
love.exe C:\luaprojects\project1 instead of love.exe c:\luaprojects\luaproject\main.lua.
I hope it helps.

Re: Error while loading game

Posted: Tue Apr 07, 2020 2:32 pm
by mosabry
nfnarvaez wrote: Tue Jul 16, 2019 12:24 pm I had the same issue. The solution is calling the path but with not main.lua . For example:
love.exe C:\luaprojects\project1 instead of love.exe c:\luaprojects\luaproject\main.lua.
I hope it helps.
This Works >> Thanks dude

Re: Error while loading game

Posted: Tue Apr 14, 2020 12:18 pm
by shruti
i also had this issue on windows 10.
it is easier if you set love.exe in Path variable. (u can do it by add path C:\Program Files\LOVE in env vars from control panel).
then from the directory where your .lua file is saved just type > love .
This will run the code correctly.