URL:
<http://gna.org/bugs/?13430>
Summary: my_moves sometimes contains illegal values
Project: Battle for Wesnoth
Submitted by: benetnash
Submitted on: Sunday 04/26/2009 at 12:28
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: trunk
Operating System: linux
_______________________________________________________
Details:
Included script contains very simple AI - recruit Fencers and place them on
villages.
After several turns script returns with "IMPOSSIBLE MOVE ORDER - MOVE
FAILED". I cannot debug it on my own and it's hard to reproduce this error,
sometimes it happen in 2nd turn, sometimes in 10th.
I run wesnoth with:
wesnoth --nocache --log-debug=formula_ai --log-debug=ai/formula_ai -m
--controller2=human --controller1=ai --scenario=multiplayer_test667-667
--side1=Loyalists --side2=Loyalists
and I end human player turn without doing anything. First I thought, that
it's a bug in my formula AI script, but it occured even after I added
additional restriction filtering possible illegal moves:
tomap(filter(my_moves.moves, 'mov', (mov.src = mov.dst) or
(not(unit_at(mov.dst)))))
Additionaly once I got segfault, but this happened only once with that script
and I'm unable to reproduce it again.
Attached files: fai script and scenario using it
Best Regards
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sunday 04/26/2009 at 12:28 Name: 668.fai Size: 2kB By: benetnash
<http://gna.org/bugs/download.php?file_id=5707>
-------------------------------------------------------
Date: Sunday 04/26/2009 at 12:28 Name: 667-667.cfg Size: 895B By:
benetnash
<http://gna.org/bugs/download.php?file_id=5708>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13430>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs