URL:
  <http://gna.org/bugs/?16572>

                 Summary: Server option "-r file.serv" no longer works as
expected
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Saturday 08/28/10 at 22:46
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: trunk
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 2.3.0

    _______________________________________________________

Details:

Behaviour seems to have changed in r17760 on trunk (bug #16410). Settings set
in the file passed to "-r" seem to get reverted/ignored, and I can't start an
autogame with my usual script. S2_2 seems not to have this problem despite
having had the same change.

Example where foo.serv contains simply "set aifill 7":

r17759 (good):


$ server/freeciv-server -p 5557 -r foo.serv
Encodings: Data=UTF-8, Local=UTF-8, Internal=UTF-8
This is the server for Freeciv version 2.2.99-dev
You can learn a lot about Freeciv at http://www.freeciv.org/
2: Loading rulesets
1: Entry value not recognized:
2: AI*1 has been added as Easy level AI-controlled player.
2: AI*2 has been added as Easy level AI-controlled player.
2: AI*3 has been added as Easy level AI-controlled player.
2: AI*4 has been added as Easy level AI-controlled player.
2: AI*5 has been added as Easy level AI-controlled player.
2: Loading script file: ./foo.serv
2: AI*6 has been added as Easy level AI-controlled player.
2: AI*7 has been added as Easy level AI-controlled player.
------------------------------------------------------------------------------
All options with non-default values
! means the option is locked by the ruleset
+ means you may change the option
= means the option is on its default value
------------------------------------------------------------------------------
Option        value   (min,max)      description
------------------------------------------------------------------------------
aifill        + 7     (0,126)        Limited number of AI players
------------------------------------------------------------------------------
2: Now accepting new client connections.

For introductory help, type 'help'.
> 


i.e. aifill has ended up as 7.

r17760 (bad):


$ server/freeciv-server -p 5557 -r foo.serv
Encodings: Data=UTF-8, Local=UTF-8, Internal=UTF-8
This is the server for Freeciv version 2.2.99-dev
You can learn a lot about Freeciv at http://www.freeciv.org/
2: Loading script file: ./foo.serv
------------------------------------------------------------------------------
All options with non-default values
! means the option is locked by the ruleset
+ means you may change the option
= means the option is on its default value
------------------------------------------------------------------------------
Option        value   (min,max)      description
------------------------------------------------------------------------------
aifill        + 7     (0,126)        Limited number of AI players
------------------------------------------------------------------------------
2: Loading rulesets
1: Entry value not recognized:
2: AI*1 has been added as Easy level AI-controlled player.
2: AI*2 has been added as Easy level AI-controlled player.
2: AI*3 has been added as Easy level AI-controlled player.
2: AI*4 has been added as Easy level AI-controlled player.
2: AI*5 has been added as Easy level AI-controlled player.
2: Now accepting new client connections.
  
For introductory help, type 'help'.
> 


Notice there are only 5 AI players; "show aifill" shows it to be 5 despite
the script.




    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to