Stand-alone headless server

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
baloo
Prole
Posts: 2
Joined: Mon Oct 01, 2018 8:19 am

Stand-alone headless server

Post by baloo »

Is it possible to use Love without initialising window and graphics? I.e. to use it as a stand-alone headless server.
User avatar
zorg
Party member
Posts: 3436
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Stand-alone headless server

Post by zorg »

Hi and welcome to the forums.

Look at the Config Files article, since you want that; you can specify the following:

Code: Select all

t.window = false
Instead of the table stuff.

That will make it run headless.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
pedrosgali
Party member
Posts: 107
Joined: Wed Oct 15, 2014 5:00 pm
Location: Yorkshire, England

Re: Stand-alone headless server

Post by pedrosgali »

I think you also need to set love.graphics to false, I had trouble running on Ubuntu server 18.x until I turned that off.

Code: Select all

if not wearTheseGlasses() then
  chewing_on_trashcan = true
end
User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: Stand-alone headless server

Post by pgimeno »

Did you mean to set 'modules.graphics = false'?
pedrosgali
Party member
Posts: 107
Joined: Wed Oct 15, 2014 5:00 pm
Location: Yorkshire, England

Re: Stand-alone headless server

Post by pedrosgali »

Yes I did.

Code: Select all

if not wearTheseGlasses() then
  chewing_on_trashcan = true
end
baloo
Prole
Posts: 2
Joined: Mon Oct 01, 2018 8:19 am

Re: Stand-alone headless server

Post by baloo »

Thanks!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 63 guests