Page 1 of 1

please i need help

Posted: Wed Jun 17, 2020 10:57 pm
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!

Re: please i need help

Posted: Thu Jun 18, 2020 8:14 am
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.

Re: please i need help

Posted: Thu Jun 18, 2020 1:23 pm
by Andlac028
For more detailed and platform specific instructions see wiki

Re: please i need help

Posted: Fri Jun 19, 2020 3:27 am
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?