Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help,
read this .
partymetroid
Citizen
Posts: 80 Joined: Thu Feb 18, 2010 6:06 am
Location: Branson, State of Misery
Contact:
Post
by partymetroid » Sun Jul 18, 2010 7:19 am
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.
Robin
The Omniscient
Posts: 6506 Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:
Post
by Robin » Sun Jul 18, 2010 7:54 am
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.
partymetroid
Citizen
Posts: 80 Joined: Thu Feb 18, 2010 6:06 am
Location: Branson, State of Misery
Contact:
Post
by partymetroid » Sun Jul 18, 2010 8:21 am
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
Robin
The Omniscient
Posts: 6506 Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:
Post
by Robin » Sun Jul 18, 2010 11:12 am
Huh.
What happens if you do “love .” from inside GobberAssault?
nevon
Commander of the Circuloids
Posts: 938 Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:
Post
by nevon » Sun Jul 18, 2010 12:35 pm
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.
Robin
The Omniscient
Posts: 6506 Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:
Post
by Robin » Sun Jul 18, 2010 3:57 pm
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.
Luiji
Party member
Posts: 396 Joined: Mon May 17, 2010 6:59 pm
Post
by Luiji » Sun Jul 18, 2010 10:34 pm
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.
Good bye.
partymetroid
Citizen
Posts: 80 Joined: Thu Feb 18, 2010 6:06 am
Location: Branson, State of Misery
Contact:
Post
by partymetroid » Tue Jul 20, 2010 8:05 am
Woah, guys, I totally forgot about this thread.
I'll try the "love ." thing when I boot into Linux.
partymetroid
Citizen
Posts: 80 Joined: Thu Feb 18, 2010 6:06 am
Location: Branson, State of Misery
Contact:
Post
by partymetroid » Tue Jul 20, 2010 9:56 am
"love ." works.
Joe
Prole
Posts: 1 Joined: Mon Jul 26, 2010 12:33 am
Post
by Joe » Mon Jul 26, 2010 12:59 am
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?
Users browsing this forum: Bing [Bot] , Google [Bot] and 5 guests