bruteforce.py AI does nothing under 1.3.9
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
bruteforce.py AI does nothing under 1.3.9
Installed the Windows version of 1.3.9 and setup a game which included the AI bruteforce.py, but it sat there without doing anything. Having been away from Wesnoth for a while I'm not sure if this is because it only works with certain factions, or doesn't work with this release.
It doesn't work with Windows releases as Python is not properly packaged with them. I think if you install python 2.5 from http://www.python.org on your system it will work.
Battle for Wesnoth v1.3.9
Started on Mon Oct 22 00:13:44 2007
Checking video mode: 1600x1200x32...
setting mode to 1600x1200x32
WARNING: setlocale() failed for ''.
set locale to ''
found valid cache at 'D:/Games/Wesnoth/userdata/cache/cache-v1.3.9-46d9d060818b8d936533b64060cb527ed2e8935d' using it
loadscreen: filesystem counter = 228
loadscreen: binarywml counter = 14398
loadscreen: setconfig counter = 240
loadscreen: parser counter = 232
time elapsed: 8746 ms
Loading tips of day
found valid cache at 'D:/Games/Wesnoth/userdata/cache/cache-v1.3.9-5ee461d1087120135f5b527ebab05b6247cbaf97' using it
error display: could not open image ''
'import site' failed; use -v for traceback
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
escape pressed..showing quit
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Python version: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
is in game -- showing quit message
found valid cache at 'D:/Games/Wesnoth/userdata/cache/cache-v1.3.9-46d9d060818b8d936533b64060cb527ed2e8935d' using it
quitting game...
exiting with code 0
I see. I don't know then. My expectation was if you "install" Python 2.5, it somehow is found by all Python programs, but that may be wrong.
The ideal solution of course would be to recompile Wesnoth against Python 2.5 and distribute not only the .dll but also the required support files - but I don't think we currently have anyone who knows how to do that.
The ideal solution of course would be to recompile Wesnoth against Python 2.5 and distribute not only the .dll but also the required support files - but I don't think we currently have anyone who knows how to do that.