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

                 Summary: fcgui cannot handle --LoadAI
                 Project: Freeciv
            Submitted by: mss_8734
            Submitted on: Sun Jun  9 04:36:02 2013
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: Probably all with AI modules
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

$ fcgui --LoadAI mss
Unable to find client executable: freeciv
Searching for freeciv clients ...
... using ./client/freeciv-gtk2
Running ./client/freeciv-gtk2
Encodings: Data=UTF-8, Local=UTF-8, Internal=UTF-8
Unrecognised option: "--LoadAI"

The server, however, does recognise it:

$ fcser --LoadAI mss
Encodings: Data=UTF-8, Local=UTF-8, Internal=UTF-8
This is the server for Freeciv version 2.5.99-dev
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 test mss
test replacing AI*1 as an AI-controlled player.
> list
List of players:
------------------------------------------------------------------------------
Test [#ff0000]: Team 0, user Unassigned
  AI, mssai, difficulty level Easy
AI*2 [#ffff00]: Team 1, user Unassigned
  AI, classic, difficulty level Easy
AI*3 [#00ffff]: Team 2, user Unassigned
  AI, classic, difficulty level Easy
AI*4 [#8a2be2]: Team 3, user Unassigned
  AI, classic, difficulty level Easy
AI*5 [#ffa500]: Team 4, user Unassigned
  AI, classic, difficulty level Easy
------------------------------------------------------------------------------

Unfortunately, if I then run fcgui with that server running it spawns another
server without loading any dynamic modules...
$ ps -A|grep freeciv
26719 pts/5    00:00:00 lt-freeciv-serv
26738 ?        00:00:02 lt-freeciv-gtk2
26759 ?        00:00:00 freeciv-server

Luckily I can overcome this with "fcgui -a -s localhost", so I can actually
play with dynamic AI modules.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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