Topic: News about AI
Ex-Member![]() |
Posted at:
2017-08-05, 13:21 UTC+2.0
The source package contains data/ai with 4 files in it, the build package does not contain the folder, adding the folder and files manually does not help. On first run a folder ai is created in ~/.widelands but is empty, adding the 4 files manually to that folder allows the game to run. ![]() ![]() |
Tibor Topic Opener |
Posted at:
2017-08-05, 16:05 UTC+2.0
From linux perspective two folders are relevant here:
and
First one is to be created by installer with 4 mentioned files - they should be read-only (as other data files), unless you manually manipulate with them as a part of training Second one will contain files like: 2017-07-31T23.44.07_ai_player_15.wai created during ai initialization. The format is exactly the same. I am not familiar with the installer logic and locations on other platforms so cannot help with polishing this. ![]() ![]() |
kaputtnik![]() |
Posted at:
2017-08-05, 16:19 UTC+2.0
Tibor, i think the ai-folder has to be added to CMakeLists.txt? See http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/head:/CMakeLists.txt#L265 ![]() ![]() |
Tibor Topic Opener |
Posted at:
2017-08-05, 16:26 UTC+2.0
kaputnik I COULD SWEAR I added it there, probably I forget to copy updated CMakeList.txt to branch and upload. I will prepare new branch and ask for merge ![]() ![]() |
Tibor Topic Opener |
Posted at:
2017-08-05, 16:34 UTC+2.0
New branch created, and proposed for merge... BTW I will be offline next week ![]() ![]() |
kaputtnik![]() |
Posted at:
2017-08-05, 20:00 UTC+2.0
No Problem Tibor Things get overlooked some times. Also in the code review.
Close after starting a new game, i guess this the time when ai initialization is done, this folder remains empty on my system. The console output is then:
![]() ![]() |
Tibor Topic Opener |
Posted at:
2017-08-05, 20:29 UTC+2.0
Very weird, there should be line like:
going to investigate ![]() ![]() |
Tibor Topic Opener |
Posted at:
2017-08-05, 20:57 UTC+2.0
I figured it out, there is "aitrainingmode" and when it is ON, the ai files are created. By default it is OFF. So philosophical question: Should be new AI files generated only in aitrainingmode mode, or always? There is a plan for command line switch "aitrainingmode", but now it is hardcoded (recompilation needed to change it)
Edited:
2017-08-05, 20:57 UTC+2.0
![]() ![]() |
Tibor Topic Opener |
Posted at:
2017-08-06, 10:24 UTC+2.0
We have some issues with the new branch for adding AI folder to data dir: https://code.launchpad.net/~widelands-dev/widelands/ai_cmakelist/+merge/328630 Perhaps windows build needs more than changes to cmakelist. ![]() ![]() |
kaputtnik![]() |
Posted at:
2017-08-06, 11:51 UTC+2.0
I think this depends on how the AI is learning. Can you explain what the new generated AI files in ~/-widelands/ai are used for and what the difference is in regard to the shipped files? ![]() ![]() |