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

                 Summary: Python AI fails to run in Campaigns (1.5.8)
                 Project: Battle for Wesnoth
            Submitted by: derekkk
            Submitted on: Thursday 01/29/2009 at 21:49
                Category: Bug
                Severity: 3 - Normal
                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.8
        Operating System: WinXP

    _______________________________________________________

Details:

The problem is that the python script does not run and stderr.txt would say
that there is a permission denial. 

This happens when, in the scenario file of a campaign, the ai_algorithm is
set as python_ai and python script is set as e.g. sample.py, all inside the
[ai] tag.

If the above are set in [side] tag without the [ai] tag, a C++ runtime error
occurs.

This bug is persistent even when python26.dll is used instead of
python25.dll. 

This bug is not present in 1.4.5.


Stderr.txt: 

Battle for Wesnoth v1.5.8
Started on Thu Jan 29 21:14:12 2009

Automatically found a possible data directory at
C:/dlg/Wesnoth-1.5.8-compiled

Data directory: C:/dlg/Wesnoth-1.5.8-compiled
User configuration directory: C:/dlg/Wesnoth-1.5.8-compiled/userdata

Checking video mode: 1024x719x16...
setting mode to 1024x719x16
20090129 21:15:40 error config: Could not open file data/SCEN
20090129 21:15:40 error config: Could not open file data/SCEN
Python version: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)]
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "C:/dlg/Wesnoth-1.5.8-compiled/data/ai/python\parse.py", line 50, in
parse
    return parse_file(name), modules
  File "C:/dlg/Wesnoth-1.5.8-compiled/data/ai/python\parse.py", line 39, in
parse_file
    code = file(abspath).read().replace(chr(13), "")
IOError: [Errno 13] Permission denied: 'C:\\dlg\\Wesnoth-1.5.8-compiled'




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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