I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
camel
Prole
Posts: 3
Joined: Mon Mar 03, 2025 11:31 am

I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.

Post by camel »

The interface of love is incredibly simple and attractive, but after installation, I can't enter the program. A similar error message always appears on the blue screen, asking for help.

Error

[love "boot.lua"]:330: Cannot load game at path 'C:/Users/Panasonic/Desktop/MyGame/main.lua'.
Make sure a folder exists at the specified path.


Traceback

[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'error'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
User avatar
zorg
Party member
Posts: 3477
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.

Post by zorg »

How are you trying to run your code? I'm assuming you gave löve a path, and you included main.lua, which you shouldn't; path ends at the containing folder, so remove main.lua and it should run.
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.
User avatar
pgimeno
Party member
Posts: 3709
Joined: Sun Oct 18, 2015 2:58 pm

Re: I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.

Post by pgimeno »

If you're using drag and drop, drag the whole folder, not the main.lua file.
camel
Prole
Posts: 3
Joined: Mon Mar 03, 2025 11:31 am

Re: I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.

Post by camel »

I dragged the entire folder into love, and love can run. Thank you very much for your solution, which allowed me to open the window of love.
camel
Prole
Posts: 3
Joined: Mon Mar 03, 2025 11:31 am

Re: I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.

Post by camel »

Thank you very much for your timely support and solution. I can run the main file by dragging the entire folder into love. I don't quite understand what you said about deleting main, because I am a beginner and know almost nothing. I am learning basic Lua programming. I will study it carefully.
User avatar
RipVanFish
Prole
Posts: 1
Joined: Wed Mar 12, 2025 3:23 pm
Location: Somewhere in the great beyond.

Re: I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.

Post by RipVanFish »

What they meant by "remove main.lua and it should run." was just to change the path from `C:/Users/Panasonic/Desktop/MyGame/main.lua` to `C:/Users/Panasonic/Desktop/MyGame` because love needs the folder the main.lua file is in, not main.lua itself.

Code: Select all

--[[goodCode is a boolean]]
if goodCode then
    print("wait wat")
else
    print("Everything is working as normal")
end
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 0 guests