Follow-up Comment #9, bug #24126 (project freeciv):

Sat 12 Dec 2015 02:33:36 PM CET, comment #7:

>>> Which nation gets selected for a player /created with a leader 
>>> name occurring in the leader list of multiple nations?
>> Using create on server, I get random nations assigned. 

> The only circumstance I know of where player name affects nation selection
is when there is a named player in pregame (either a human with that username,
or a human exploiting bug #24170, or a /created player). At server start,
generate_players() tries to assign nations based on player name.

>In this case, it picks the first nation it finds with a matching leader name,
which is determinsitic; so Anna always leads the Brandenburgians and never the
Bretons.

>If we want to legitimise duplicate leader names, we could make it pick
randomly from matching nations instead.

> /create in mid-game just assigns a random nation.

/create in pre-game does not find a matching leader, not in all cases. It also
isn't deterministic. Only Attila always rules the huns. At least in my
self-compiled binary.

chris@leo:~$ LANG= freeciv-server -v
Freeciv version 2.5.1 
chris@leo:~$ LANG= freeciv-server
This is the server for Freeciv version 2.5.1
You can learn a lot about Freeciv at http://www.freeciv.org/
2: Loading rulesets.
2: AI*1 has been added as Easy level AI-controlled player (classic).
2: AI*2 has been added as Easy level AI-controlled player (classic).
2: AI*3 has been added as Easy level AI-controlled player (classic).
2: AI*4 has been added as Easy level AI-controlled player (classic).
2: AI*5 has been added as Easy level AI-controlled player (classic).
2: Now accepting new client connections.

For introductory help, type 'help'.
> /create Anna
Anna replacing AI*1 as an AI-controlled player.
> /create Attila
Attila replacing AI*2 as an AI-controlled player.
> /create Elisabeth
Elisabeth replacing AI*3 as an AI-controlled player.
> /create Albrecht
Albrecht replacing AI*4 as an AI-controlled player.
> /create Burebista
Burebista replacing AI*5 as an AI-controlled player.
> list
List of players:
------------------------------------------------------------------------------
Anna [#ff0000]: Team 0, user Unassigned
  AI, classic, difficulty level Easy
Attila [#ffff00]: Team 1, user Unassigned
  AI, classic, difficulty level Easy
Elisabeth [#00ffff]: Team 2, user Unassigned
  AI, classic, difficulty level Easy
Albrecht [#8a2be2]: Team 3, user Unassigned
  AI, classic, difficulty level Easy
Burebista [#ffa500]: Team 4, user Unassigned
  AI, classic, difficulty level Easy
------------------------------------------------------------------------------
> 
2: Connection request from chris from localhost
2: c1 has client version 2.5.1
2: chris has connected from localhost.
> 
Starting game.
> 
2: Attila rules the Huns.
2: Anna rules the Romans.
2: Elisabeth rules the Persians.
2: Albrecht rules the Mayas.
2: Burebista rules the Sumerians.
2: Ladislaus V rules the Austrians.
2: Creating a map of size 54 x 72 = 3888 tiles (4000 requested).
> quit
Goodbye.
2: Removing player Anna.
2: Removing player Attila.
2: Removing player Elisabeth.
2: Removing player Albrecht.
2: Removing player Burebista.
2: Removing player Ladislaus V.
chris@leo:~$ LANG= freeciv-server
This is the server for Freeciv version 2.5.1

[.....]

Starting game.
> 
2: Attila rules the Huns.
2: Anna rules the Mayas.
2: Elisabeth rules the Swedes.
2: Burebista rules the Americans.
2: Alfred the Great rules the English.
2: Creating a map of size 54 x 72 = 3888 tiles (4000 requested).
> 


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?24126>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to