please i need help

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
suptrap
Prole
Posts: 1
Joined: Wed Jun 17, 2020 10:51 pm

please i need help

Post by suptrap »

I'm starting the cs50 harverd course and i dont know how to install the love2d! i mean i installed it and everything and when i clicked the folder .love thing it says boot.lua:575: no code to run
your game might be packaged incorrectly.
make sure main.lua is at the top level of the zip.
and the other thing is i dont even know how to set up lua! or even a main.lua file! and i dont know how to use .love! i followed the wiki but all it did was just make me more confused because it didnt even work! i've been tryint to set up .love for litterly 2 days and i havent gotten past making a folder into a .love file! im really new to all of this so if anyone can help i'll be really greatful!
User avatar
CogentInvalid
Prole
Posts: 27
Joined: Sat Dec 14, 2013 12:15 am

Re: please i need help

Post by CogentInvalid »

The format of a Love game is a folder with a file called main.lua in it (and optionally other files and folders too). The program love.exe can run these games in various ways. One way is to drag the folder onto the icon for love.exe. Another way is to package the contents of the folder into a .zip file, then rename it to have a .love file extension. You can run a .love file by double-clicking on it.

The error you're getting says that the .love file you're trying to run doesn't contain a main.lua file at the top level of the zip. You need to put the code for your game in a file called main.lua and make sure it's at the top level of the zip file.
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Re: please i need help

Post by Andlac028 »

For more detailed and platform specific instructions see wiki
User avatar
zorg
Party member
Posts: 3470
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: please i need help

Post by zorg »

suptrap wrote: Wed Jun 17, 2020 10:57 pm i followed the wiki but all it did was just make me more confused because it didnt even work!
what didn't work, exactly?
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: Google [Bot] and 2 guests