Runing .lua file thriugh love error

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
paxth
Prole
Posts: 2
Joined: Sun Jun 14, 2020 10:48 am

Runing .lua file thriugh love error

Post by paxth »

Error

boot.lua:481: Cannot load game at path '/home/parth/Workspace/main.lua'.
Make sure a folder exists at the specified path.


Traceback

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

please help. I'm new to this and using ubuntu 20.04
MrFariator
Party member
Posts: 544
Joined: Wed Oct 05, 2016 11:53 am

Re: Runing .lua file thriugh love error

Post by MrFariator »

As it says in the error, you're supposed to pass a folder (containing a main.lua) to löve, as opposed to the main.lua itself. So in this case, just remove the "main.lua" from the end of the path, and it should run.
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Runing .lua file thriugh love error

Post by zorg »

You already made a thread about this, along with neglecting to answer questions people asked.
https://love2d.org/forums/viewtopic.php?t=88944
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot], Semrush [Bot] and 1 guest