Team play for single connected client

Post here if you need help setting up your server, etc.
Post Reply
Stormcrow
On Lightcycle Grid
Posts: 31
Joined: Thu Oct 26, 2006 9:02 pm
Location: Greenlawn, NY
Contact:

Team play for single connected client

Post by Stormcrow »

Hi, here's my first post!

When there's one client connected to a server, the single-player settings (SP_*) take over, right? I'm trying to set up my server so that when there's only one human player connected, he's playing on one team with two AIs against another team of three AIs. I thought the following in settings_custom.cfg would do it:

SP_TEAMS_MAX 2
SP_TEAMS_MIN 2
SP_TEAM_MIN_PLAYERS 3
SP_MIN_PLAYERS 6
SP_TEAM_MAX_IMBALANCE 0

but I'm getting the player on Team Blue, one AI on Team Gold, and the other four AIs on Team Red. What am I doing wrong? Or have I misunderstood the behavior of Armagetron when only one player is connected?
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

The mistake is the MIN_PLAYERS setting; all AI players added by this fight on their own (Team red in your case, although it should be named "AI Team"). You should use

Code: Select all

SP_MIN_PLAYERS 0
SP_TEAM_MIN_PLAYERS 3
Beware: the AIs don't know a lot about teamplay. They know precicely one thing, when looking for a target to trace, they don't choose teammates. Lots of accidents happen :)
User avatar
2020
Outside Corner Grinder
Posts: 1322
Joined: Thu Dec 29, 2005 9:21 pm
Location: the present, finally

Post by 2020 »

thanks
stormcrow
for bringing that up

it was just what i was wanting to do on my server

thanks
zman
for the clear answer
hold the line
Stormcrow
On Lightcycle Grid
Posts: 31
Joined: Thu Oct 26, 2006 9:02 pm
Location: Greenlawn, NY
Contact:

Post by Stormcrow »

Thanks for responding, z-man.

I've tried it, but it doesn't seem to be working. Here's my current settings_custom.cfg file in its entirety (sans password):
# Single human player

SP_WALLS_STAY_UP_DELAY 1
SP_SIZE_FACTOR -1
SP_SCORE_WIN 1
SP_LIMIT_SCORE 10
SP_LIMIT_ROUNDS 10
SP_LIMIT_TIME 30
SP_TEAM_MIN_PLAYERS 3
SP_TEAMS_MIN 2
SP_MIN_PLAYERS 0

# Multiple human players

WALLS_STAY_UP_DELAY 1
SIZE_FACTOR -1
TEAM_BALANCE_WITH_AIS 0
TEAM_MAX_PLAYERS 1
FINISH_TYPE 0

SCORE_WIN 1
SCORE_SUICIDE -2
SCORE_KILL 1
SCORE_DIE 0

LIMIT_SCORE 10
LIMIT_ROUNDS 20
LIMIT_TIME 30
Now I'm getting just one AI versus the one player. SP_TEAM_MIN_PLAYERS seems to have no effect. I've tried various combinations, but none seem to put AIs on the player's team.

Any advice would be appreciated.
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

I forgot: you also have to set SP_TEAM_MAX_PLAYERS to 3 or more. It's on 1 per default because otherwise, sometimes the second player who joins would be put on the team of the first player and they'd have to manually split.
Stormcrow
On Lightcycle Grid
Posts: 31
Joined: Thu Oct 26, 2006 9:02 pm
Location: Greenlawn, NY
Contact:

Post by Stormcrow »

Making progress!

I've added that line to the config file listed above. Now when I enter the grid, I am the sole member of Team Stormcrow. Three AIs are members of Team Blue. Two AIs are not alive, and not members of a team. When subsequent rounds begin, there is a message that the AI "wants to join Team Stormcrow, but isn't currently allowed to."

If I manually switch to Team Blue, everything is as I want it. There are two AIs on Team Blue with me, and there are three AIs on Team Gold.

What stops the AIs from joining my team automatically?
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

A bug I forgot about :( It was first observed on Swamplords Teams, is now fixed in SVN and will be fixed in the next version, but I'm afraid all current releases seem to be affected.
Stormcrow
On Lightcycle Grid
Posts: 31
Joined: Thu Oct 26, 2006 9:02 pm
Location: Greenlawn, NY
Contact:

Post by Stormcrow »

Oh well. Just another reason to look forward to the next release!

Thanks for your help, z-man.
Post Reply