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'
I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.
- 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.
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
True 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.

Re: I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.
If you're using drag and drop, drag the whole folder, not the main.lua file.
Re: I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.
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.
Re: I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.
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.
- 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.
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
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot] and 0 guests