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

                 Summary: Error running sample.py AI
                 Project: Battle for Wesnoth
            Submitted by: seahen
            Submitted on: Sunday 02/08/2009 at 09:00
                Category: Bug
                Severity: 4 - Important
                Priority: 5 - Normal
              Item Group: Artificial Intelligence
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.5.9
        Operating System: Kubuntu

    _______________________________________________________

Details:

When I compile and install from source with scons and run

wesnoth --nogui -m --controller1=ai --controller2=ai --algorithm1=python_ai
--parm1=python_script:sample.py --exit-at-end

I get the following:

Battle for Wesnoth v1.5.9
Started on Sun Feb  8 03:39:39 2009


Data directory: /usr/local/share/wesnoth
User configuration directory: /home/chris/.wesnoth

20090208 03:39:40 error display: loadscreen: Logo image is too big.
counted sides: 1
counted sides: 2
 Faction Undead selected for side 1.
 Faction Drakes selected for side 2.
Turn 1:
Python: Could not create pyerr.txt in current directory.
Python version: 2.5.2 (r252:60911, Jul 31 2008, 17:49:46)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "/usr/local/share/wesnoth/data/ai/python/parse.py", line 50, in parse
    return parse_file(name), modules
  File "/usr/local/share/wesnoth/data/ai/python/parse.py", line 39, in
parse_file
    code = file(abspath).read().replace(chr(13), "")
IOError: [Errno 21] Is a directory

 Player 1: 0 Villages
 Player 2: 1 Villages

Output for subsequent turns is similar, and Player 1 (the Python AI) remains
at 0 villages (although Player 2 gets more villages). Absent nogui, the
console output is the same and Player 1 never moves or recruits any units.

The same problem occurs if I choose sample.py from the list of AIs in the
GUI.




    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to