Page 1 of 1

Game not loading - Ubuntu

Posted: Sun Apr 13, 2014 12:03 pm
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 ;)

Re: Game not loading - Ubuntu

Posted: Sun Apr 13, 2014 1:37 pm
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 .


Re: Game not loading - Ubuntu

Posted: Sun Apr 13, 2014 1:55 pm
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!

Re: Game not loading - Ubuntu

Posted: Sun Apr 13, 2014 4:57 pm
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.