Error while loading game

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
poojan
Prole
Posts: 1
Joined: Mon Apr 16, 2018 10:02 am

Error while loading game

Post 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
User avatar
Stifu
Party member
Posts: 106
Joined: Mon Mar 14, 2016 9:53 am
Contact:

Re: Error while loading game

Post 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?
Zabuyaki, our upcoming beat 'em up: https://www.zabuyaki.com
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: Error while loading game

Post 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.
User avatar
pgimeno
Party member
Posts: 3548
Joined: Sun Oct 18, 2015 2:58 pm

Re: Error while loading game

Post 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)
Suspenso
Prole
Posts: 1
Joined: Fri Apr 20, 2018 2:56 am

Re: Error while loading game

Post 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
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: Error while loading game

Post 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.
Piscui
Prole
Posts: 1
Joined: Sat Apr 21, 2018 10:24 pm

Re: Error while loading game

Post 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.
nfnarvaez
Prole
Posts: 1
Joined: Tue Jul 16, 2019 12:08 pm

Re: Error while loading game

Post 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.
mosabry
Prole
Posts: 1
Joined: Tue Apr 07, 2020 2:29 pm

Re: Error while loading game

Post 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
shruti
Prole
Posts: 1
Joined: Tue Apr 14, 2020 12:10 pm

Re: Error while loading game

Post 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.
Attachments
error-correct.PNG
error-correct.PNG (7.41 KiB) Viewed 17283 times
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 29 guests