Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: attach_connection_to_player
Home

[Freeciv-Dev] Re: attach_connection_to_player

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: attach_connection_to_player
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 9 May 2003 17:45:01 -0500

On Sat, May 10, 2003 at 12:21:31AM +0200, Christian Knoke wrote:
> 
> chris@max:~/freeciv/games> LANG= civserver 
> This is the server for Freeciv version 1.14.1-devel
> You can learn a lot about Freeciv at http://www.freeciv.org/
> 2: Now accepting new client connections.
> 
> For introductory help, type 'help'.
> > create peter
> > set maxplayers 1
> > 
> 2: Connection request from chris from localhost
> 2: c1 has client version 1.14.1-devel
> 2: chris has connected from localhost.
> > start
> 2: Removing player noname.
> Starting game.
> > 
> 2: Loading rulesets
> 2: AI is controlling the Singaporeans ruled by peter.
> > list
> List of players:
> ------------------------------------------------------------------------------
> peter (user Unassigned, AI, difficulty level easy, nation Singaporeans)
> ------------------------------------------------------------------------------
> 
> When chris connects, $SUBJECT should return FALSE, but doesn't.

  /* if pplayer is NULL, attach to first non-connected player slot */
  if (!pplayer) {
    if (game.nplayers > game.max_players
        || game.nplayers > MAX_NUM_PLAYERS + MAX_NUM_BARBARIANS) {
      return FALSE;

try changing game.nplayers > game.max_players to
             game.nplayers == game.max_players
see if that works.

> No message is given in server/connecthand.c line 114.
> 
> Or what is this message for?

That message is for clients other than you. Connect two clients and see if
you get the message.

-mike


[Prev in Thread] Current Thread [Next in Thread]