Cannot Run LOVE Games via LÖVE 0.6.2

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.
User avatar
partymetroid
Citizen
Posts: 80
Joined: Thu Feb 18, 2010 6:06 am
Location: Branson, State of Misery
Contact:

Cannot Run LOVE Games via LÖVE 0.6.2

Post 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. :(
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Cannot Run LOVE Games via LÖVE 0.6.2

Post 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.
Help us help you: attach a .love.
User avatar
partymetroid
Citizen
Posts: 80
Joined: Thu Feb 18, 2010 6:06 am
Location: Branson, State of Misery
Contact:

Re: Cannot Run LOVE Games via LÖVE 0.6.2

Post 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
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Cannot Run LOVE Games via LÖVE 0.6.2

Post by Robin »

Huh.

What happens if you do “love .” from inside GobberAssault?
Help us help you: attach a .love.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Cannot Run LOVE Games via LÖVE 0.6.2

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Cannot Run LOVE Games via LÖVE 0.6.2

Post 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.
Help us help you: attach a .love.
User avatar
Luiji
Party member
Posts: 396
Joined: Mon May 17, 2010 6:59 pm

Re: Cannot Run LOVE Games via LÖVE 0.6.2

Post 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.
Good bye.
User avatar
partymetroid
Citizen
Posts: 80
Joined: Thu Feb 18, 2010 6:06 am
Location: Branson, State of Misery
Contact:

Re: Cannot Run LOVE Games via LÖVE 0.6.2

Post by partymetroid »

Woah, guys, I totally forgot about this thread. :( I'll try the "love ." thing when I boot into Linux. :)
User avatar
partymetroid
Citizen
Posts: 80
Joined: Thu Feb 18, 2010 6:06 am
Location: Branson, State of Misery
Contact:

Re: Cannot Run LOVE Games via LÖVE 0.6.2

Post by partymetroid »

"love ." works. :)
Joe
Prole
Posts: 1
Joined: Mon Jul 26, 2010 12:33 am

Re: Cannot Run LOVE Games via LÖVE 0.6.2

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 226 guests