Search found 130 matches
- August 2nd, 2006, 7:55 am
- Forum: WML Workshop
- Topic: How to specify a python AI in a scenario ?
- Replies: 4
- Views: 1188
How to specify a python AI in a scenario ?
I am trying to apply one of the simple python AI I got to a selfmade scenario. But it does not work. Even if I try to specify the python AI as distributed with wesnoth (sample.py), the same error message occurs. From the information got in the WML reference page of the wiki, I have tried the lines: ...
- July 30th, 2006, 7:54 am
- Forum: Scenario & Campaign Development
- Topic: A New Order.
- Replies: 543
- Views: 157840
I would rather have campaigns working on 1.1
Last (for now) remark: do you intend to try and port for Wesnoth 1.1 ? I would rather have campaigns working on 1.1 (I don't know what amount of work this represent, I think I've seen somewhere a script automatically translating units cfg from 1.0 to 1.1 but I don't know how much of WML for campaig...
- July 29th, 2006, 4:06 am
- Forum: Users’ Forum
- Topic: Why deleted my Chinese post?
- Replies: 18
- Views: 3419
Maybe you can help me... Do you know how I could type in Chinese using linux? You can use xim as an input method and scim tools for chinese caracter input. More info: http://www.scim-im.org/ Working well but may require you switch to a quite new version of Linux (SuSE 8.2 could not run it for me, f...
some data about how the functions work
If you do not want to analyse every function, you can start by using only the most simple ones. An example use of these can be found at http://www.wesnoth.org/wiki/PythonTestScript. As the interface is still under construction, you can report problem or ask for answer on the page: http://www.wesnoth...
Where can I get "wesnoth.py" ?
If I get your question, I can say there is no wesnoth.py. Thus it is impossible to call directly python AI from a python session. The only way to start it is by running wesnoth, the script will be automatically called by wesnoth at AI's turn. All the objects/definitions used by the AI are initialize...
- April 14th, 2006, 7:15 am
- Forum: Coder’s Corner
- Topic: Any C++ <-> Python programmers interested in contribut
- Replies: 39
- Views: 13542
The python interface won't compile at all with current SVN. I don't want to go back to an older version, so I'll watch memory consumption in my AI once it works again. I understand. I can wait - no problem. Thanks for your help. Have you tried to skip the call to get_destinations_by_unit? What happ...
- April 13th, 2006, 9:16 am
- Forum: Coder’s Corner
- Topic: Any C++ <-> Python programmers interested in contribut
- Replies: 39
- Views: 13542
Is there any other known bugs in the python API ?
I am currently facing a problem of memory leak when running the python AI. On any subject, I would think I am doing things wrong rather than expecting a bug. However the memory allocation in python is supposed to be completely transparent. I just can not see a way to mess up things to introduce this...
- March 14th, 2006, 3:26 am
- Forum: Coder’s Corner
- Topic: Any C++ <-> Python programmers interested in contribut
- Replies: 39
- Views: 13542
get_destinations_by_unit question
I have created a wiki page http://www.wesnoth.org/wiki/GetDestinat ... itQuestion where I describe a - according to me - strange behaviour of the function get_destinations_by_unit(). Could you check and help me understand what is happening.
Thanks for your time.
Thanks for your time.
- March 6th, 2006, 1:28 am
- Forum: Coder’s Corner
- Topic: Any C++ <-> Python programmers interested in contribut
- Replies: 39
- Views: 13542
Re: someone else working on a python AI
.. although, right now mine would not have much chance. It can usually only defend for a few turns against ai2 until my leader gets assassinated :P This story you tell us is painfully familiar to me :x I must say it is the same for me. If you want a quite real benchmark(*) of my python AI for now, ...
- March 1st, 2006, 3:22 am
- Forum: Coder’s Corner
- Topic: Any C++ <-> Python programmers interested in contribut
- Replies: 39
- Views: 13542
Add HP properties in ai_python
Hi to all, here is a small patch adding the health points (HP) in the ai_python.cpp file. This way you can access to two new properties that are : * unit.hitpoints - remaining HP * unit.max_hitpoints - HP of the unit at creation I find it to be highly needed properties in order to try to keep the py...