Page 1 of 4
Cannot Run LOVE Games via LÖVE 0.6.2
Posted: Sun Jul 18, 2010 7:19 am
by partymetroid
Hello all.
I am running LÖVE 0.6.2 (I've tried both installing it from source and from AUR) on Arch Linux, and I cannot run any LÖVE games.
I have checked the contents of the .love files and made sure that the main.lua file was at the topmost directory, and even tried unzipping the files into directories and loading them from there.
I get the following error message ontop of a blue screen:
Error
boot.lua:285: No code to run
Your game might be packaged incorrectly
Make sure main.lua is at the top level of the zip
Trackback
[C]: in function 'error'
[C]: in function 'xpcall'
Help.
Re: Cannot Run LOVE Games via LÖVE 0.6.2
Posted: Sun Jul 18, 2010 7:54 am
by Robin
Please give us a bit more information. How exactly did you run LÖVE? Could you give us an overview of folder structure? Things like that.
Re: Cannot Run LOVE Games via LÖVE 0.6.2
Posted: Sun Jul 18, 2010 8:21 am
by partymetroid
I ran LÖVE from the command-line.
Here is the folder structure of a LÖVE game which I have tried, but failed, to run:
Code: Select all
[aaron@marsh-desktop GobberAssault]$ ls
conf.lua images.lua items.lua main.lua oddball player.lua scenery.lua slkscr.ttf
gobbergroove.mp3 interface.lua __MACOSX monsters.lua oryx readme.txt sfx sounds.lua
Here is the command-line output from running love GobberAssault/ from the ~/Download/ directory:
Code: Select all
[aaron@marsh-desktop Download]$ love GobberAssault/
boot [string "boot.lua"]:285: No code to run
Your game might be packaged incorrectly
Make sure main.lua is at the top level of the zip stack traceback:
[string "boot.lua"]:833: in function 'error_printer'
[string "boot.lua"]:768: in function <[string "boot.lua"]:766>
[C]: in function 'error'
[string "boot.lua"]:285: in function <[string "boot.lua"]:215>
[C]: in function 'xpcall'
[string "boot.lua"]:838: in main chunk
Re: Cannot Run LOVE Games via LÖVE 0.6.2
Posted: Sun Jul 18, 2010 11:12 am
by Robin
Huh.
What happens if you do “love .” from inside GobberAssault?
Re: Cannot Run LOVE Games via LÖVE 0.6.2
Posted: Sun Jul 18, 2010 12:35 pm
by nevon
That's really weird. I'm also in Linux, I tried doing exactly what you're doing, but it seems to work just fine for me:
Code: Select all
nevon@loltop:~/Desktop/GobberAssault$ ls
conf.lua gobbergroove.mp3 images.lua interface.lua items.lua __MACOSX main.lua monsters.lua oddball oryx player.lua readme.txt scenery.lua sfx slkscr.ttf sounds.lua
Code: Select all
nevon@loltop:~/Desktop$ love GobberAssault
Runs perfectly fine.
EDIT: Hold on. You're missing a couple of files. Try re-downloading it.
Re: Cannot Run LOVE Games via LÖVE 0.6.2
Posted: Sun Jul 18, 2010 3:57 pm
by Robin
nevon wrote:EDIT: Hold on. You're missing a couple of files. Try re-downloading it.
Nope, that's not it. I've counted all the files, twice, and the amount is the same.
Re: Cannot Run LOVE Games via LÖVE 0.6.2
Posted: Sun Jul 18, 2010 10:34 pm
by Luiji
Code: Select all
#!/bin/sh
cd MyAwesomeGame
love . # || exit 1 # if you are running it from a shell script
I had the same problem when I was creating my test shell script for Boxdude. I have no idea what causes this, but it might be a bug.
Re: Cannot Run LOVE Games via LÖVE 0.6.2
Posted: Tue Jul 20, 2010 8:05 am
by partymetroid
Woah, guys, I totally forgot about this thread.
I'll try the "love ." thing when I boot into Linux.
Re: Cannot Run LOVE Games via LÖVE 0.6.2
Posted: Tue Jul 20, 2010 9:56 am
by partymetroid
"love ." works.
Re: Cannot Run LOVE Games via LÖVE 0.6.2
Posted: Mon Jul 26, 2010 12:59 am
by Joe
I am having the same exact problem as this guy. I make a function in main.lua that says:
Code: Select all
function love.draw()
love.graphics.print("Hello World", 400, 300)
end
Then I place it in a folder called "test". I zip the folder and rename it "test.love". I then double click the file, and LOVE opens to the message:
Error
boot.lua:285: No code to run
Your game might be packaged incorrectly
Make sure main.lua is at the top level of the zip
Trackeback
[C]: in function 'error'
[C]: in function 'xpcall'
What did I do wrong?