Author Topic: Headless server minimum players  (Read 697 times)

DagMagnuson

  • Guest
Headless server minimum players
« on: 18 April 2014, 15:24:44 »
Is there a way to run a LAN headless server that can be started with one human and one cpu player? Or all CPU players?
« Last Edit: 18 April 2014, 19:16:13 by DagMagnuson »

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Headless server minimum players
« Reply #1 on: 19 April 2014, 19:39:10 »
To my knowledge, that's not possible on a headless unless you edit the source code. The requirement to have at least two human players in a game was added to prevent users from starting games too early or to block servers for other potential players.

You can, however, run a "headful" server this way, and can even script it to a degree (see --help output on a command line).
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

ctz

  • Summoner
  • **
  • Posts: 46
  • aka cathaur, formerly lyra
    • View Profile
Re: Headless server minimum players
« Reply #2 on: 4 May 2014, 15:06:34 »
Actually, you can set MinHeadlessPlayersRequired in the configuration.  This is an undocumented option, but you can find it in this file.