Skip to content

Headless mode #1569

Answered by vaut
ximex asked this question in Q&A
Mar 1, 2021 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

$ warzone2100 --headless --autogame --autohost=Poli-Eye-W-a.json

autohost/Poli-Eye-W-a.json:
{
   "challenge":{
      "alliances":2,
      "allowPositionChange":"true",
      "bases":"1",
      "map":"Poli-Eye-W-a-T1",
      "maxPlayers":5,
      "powerLevel":2,
      "scavengers":"false",
      "version":2
   },

   "player_0":{
      "position":5,
      "team":5
   },
   "player_1":{
      "position":0,
      "team":0
   },
   "player_2":{
      "position":1,
      "team":0
   },
   "player_3":{
      "position":2,
      "team":1
   },
   "player_4":{
      "position":3,
      "team":1
   }
}

UPD
For 4.2.0-beta1 and later, you need to use new preset

autohost/preset.json
{
  "chall…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@vaut
Comment options

@past-due
Comment options

@maxsupermanhd
Comment options

@vaut
Comment options

Answer selected by ximex
Comment options

You must be logged in to vote
1 reply
@vaut
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants