run game in linux

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
actionM
Prole
Posts: 2
Joined: Sun Jul 19, 2009 5:39 pm

run game in linux

Post by actionM »

How do I run a game I have made in linux? I've been trying to just run the tutorials but nothing seems to work.

I tried in the terminal:

Code: Select all

love game.lua
{edit}I do get this when I run the above command as root.

This is LOVE 0.4.0 (Taco Beam).

Code: Select all

INIT love.filesystem [PhysFS]
INIT love.graphics [OpenGL/DevIL/FreeType]
INIT love.audio [SDL_mixer]
INIT love.timer [SDL]
INIT love.mouse [SDL]
INIT love.keyboard [SDL]
INIT love.physics [Box2D]
INIT love.system [Generic]
Game (/home/matt/game.lua) does not exist.
QUIT love.system [Generic]
QUIT love.physics [Box2D]
QUIT love.keyboard [SDL]
QUIT love.mouse [SDL]
QUIT love.timer [SDL]
QUIT love.audio [SDL_mixer]
QUIT love.graphics [OpenGL/DevIL/FreeType]
QUIT love.filesystem [PhysFS]
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: run game in linux

Post by osgeld »

1) goto the directory where the *.love file is and run love game.love
2) goto the directory where your game's main.lua file is and run love .
actionM
Prole
Posts: 2
Joined: Sun Jul 19, 2009 5:39 pm

Re: run game in linux

Post by actionM »

Ok, thanks alot. I'm still only able to do that as root, but I think I can fix that.

[edit] I guess I should explain how to fix that so others can see. I'm on Ubuntu/9.04 and all I had to do was create an alias in the .bashrc file located in the home directory.

Code: Select all

alias love='/usr/games/love'
User avatar
PauloftheWest
Prole
Posts: 15
Joined: Mon Jul 20, 2009 4:31 pm
Location: Ravenel, SC

Re: run game in linux

Post by PauloftheWest »

I actually have the same problem (with Love 0.5.0), but to get it to work I had to do:

Code: Select all

 love ./ 
in the directory with main.love. While

Code: Select all

love main.love
would never work for me. It reports that '/home/west/tmp/main.love' DNE, but an 'ls' shows it does. Also, the alias didn't work for me because love isn't located in /usr/game/love.

O-well, at least 'love ./' works.

~PauloftheWest
~less think, more do
Post Reply

Who is online

Users browsing this forum: No registered users and 88 guests