Game not loading - Ubuntu

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.
Post Reply
Jumbub
Prole
Posts: 2
Joined: Sun Apr 13, 2014 11:39 am

Game not loading - Ubuntu

Post by Jumbub »

I have LOVE 0.9.1 on Ubuntu 12.04

I have created a folder named "game" in /home/game,
I have created a main.lua file inside it with the code -

Code: Select all

function love.draw()
    love.graphics.print("Hello World", 400, 300)
end
-but the code doesnt run
and instead I get the default screen of the "baby inspenctor" saying "no game"

I have tried running it 2 diferent ways -
Using terminal "love /home/game"
And renaming the .lua file to .love

I have tried downloading demo games on the forums here, and they work!

I am new to this engine and would LOVE to be able to use it ;)
User avatar
SneakySnake
Citizen
Posts: 94
Joined: Fri May 31, 2013 2:01 pm
Contact:

Re: Game not loading - Ubuntu

Post by SneakySnake »

Jumbub wrote:I have created a folder named "game" in /home/game,
Does that mean that your game is contained in `home/game/game`?
In that case you should say `love /home/game/game`.

Try running this script:
lovetest.sh

Code: Select all

#!/bin/bash
echo 'function love.draw()
	love.graphics.print("Hello, world!")
end' > main.lua
love .

Jumbub
Prole
Posts: 2
Joined: Sun Apr 13, 2014 11:39 am

Re: Game not loading - Ubuntu

Post by Jumbub »

Uhuh... so I tried what you said, but it didnt help.
But I have found out how to start it :)

I was writing the directory wrong xD
I was writing "love /home/game, but the game directory is simply "love game" !!!

Thanks for the help anyway!
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Game not loading - Ubuntu

Post by T-Bone »

Jumbub wrote:Uhuh... so I tried what you said, but it didnt help.
But I have found out how to start it :)

I was writing the directory wrong xD
I was writing "love /home/game, but the game directory is simply "love game" !!!

Thanks for the help anyway!
I think your problem was that it wasn't located in /home/game, but rather /home/yourusername/game.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Nikki and 2 guests