URL:
<http://gna.org/bugs/?11410>
Summary: data/ai/sample.py not working
Project: Battle for Wesnoth
Submitted by: ivanovic
Submitted on: Dienstag 01.04.2008 um 12:44
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Artificial Intelligence
Status: None
Privacy: Public
Assigned to: elias
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: trunk and 1.4
Operating System: probably any
_______________________________________________________
Details:
The sample python ai is not work, when selecting it, this error message is
printed:
Python version: 2.5.1 (r251:54863, Jan 8 2008, 00:13:54)
[GCC 4.2.2 (Gentoo 4.2.2 p1.0)]
Traceback (most recent call last):
File "<string>", line 11, in <module>
File "/games//wesnoth-1.4/data/ais/safe.py", line 132, in safe_exec
safe_check(code)
File "/games//wesnoth-1.4/data/ais/safe.py", line 111, in safe_check
return _check_ast(code)
File "/games//wesnoth-1.4/data/ais/safe.py", line 67, in _check_ast
ast = compiler.parse(code)
File "/usr/lib/python2.5/compiler/transformer.py", line 52, in parse
return Transformer().parsesuite(buf)
File "/usr/lib/python2.5/compiler/transformer.py", line 129, in parsesuite
return self.transform(parser.suite(text))
File "<string>", line 258
recruits_list.append((recruit, speed, defense, aggression, resistance))
^
SyntaxError: invalid syntax
Please either fix the AI in trunk and branches/1.4 to work again, or remove
it at least from 1.4 in the next days (before friday that is). If it is not
removed/fixed on friday, I will remove it from branches/1.4 myself since it
should not be needed anyway.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?11410>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs