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 » Mon Oct 01, 2018 8:21 am

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: 2413
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Stand-alone headless server

Post by zorg » Mon Oct 01, 2018 9:45 pm

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: 100
Joined: Wed Oct 15, 2014 5:00 pm
Location: Yorkshire, England

Re: Stand-alone headless server

Post by pedrosgali » Tue Oct 02, 2018 3:29 pm

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: 1343
Joined: Sun Oct 18, 2015 2:58 pm

Re: Stand-alone headless server

Post by pgimeno » Tue Oct 02, 2018 4:37 pm

Did you mean to set 'modules.graphics = false'?
Thrust II Reloaded - GifLoad for Löve - GSpöt GUI - My NotABug.org repositories - portland (mobile orientation)
The MS-Github repositories I had have been closed after the acquisition announcement and will be removed in the near future.

pedrosgali
Party member
Posts: 100
Joined: Wed Oct 15, 2014 5:00 pm
Location: Yorkshire, England

Re: Stand-alone headless server

Post by pedrosgali » Fri Oct 05, 2018 3:17 pm

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 » Mon Oct 15, 2018 5:57 am

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests