Topic: AI patch suggestion
Tibor Topic Opener |
Posted at:
2014-04-24, 21:16 UTC+2.0
Hi,
Well, that is all, and exact location should be in src/ai/defaultai.cc: As a proof I did some tests, here is one of them: ![]() Usually AI is able to expand for 2-3 hours of playing time. Here AI was able to grow for about 4 hours and more. Red player even managed to overtake teritory of yellow player and grow for 8 hours. And AI players now keeps their territories trees-free. I know about launchpad, I am just setting onw branch there, but still - could somebody merge this directly to trunk or so. I believe this is pretty minimal change... ![]() ![]() |
Tibor Topic Opener |
Posted at:
2014-04-25, 23:20 UTC+2.0
Hi,
![]() ![]() |
einstein13![]() |
Posted at:
2014-04-26, 00:31 UTC+2.0
Hi! I really don't know the answers for many of your questions, but I would like to suggest you something: Some months ago I've made a map "The maze" (https://wl.widelands.org/maps/the-maze-v11/) I can remember, that there was a major problem with wood for any AI player. So you can test your idea on this map. And probably you know that you can test the game without playing it: just open a new multiplayer game with only AI players. On my map there are 8 slots, so you will see lots of cases on testing Also I can test it too, but probably it has to be merged with trunk version first. Have a good weekend! einstein Ps.: you did GREAT job here!
Edited:
2014-04-26, 00:31 UTC+2.0
einstein13 ![]() ![]() |
SirVer |
Posted at:
2014-04-26, 11:51 UTC+2.0
Why do you not link to launchpad? No need to copy and paste. I cannot answer all of your questions as I am not familiar with the AI code. But some.
an economy is a connected network of flags (and ship routes) and buildings. Each building, flag and road belongs to exactly one economy.
not sure about this, but there is a ware property in the conf files with the same name. Likely this is this value. I have no idea how to interpret it though.
Not harder to navigate than other projects of similar size. ![]() ![]() |
Tibor Topic Opener |
Posted at:
2014-04-26, 23:07 UTC+2.0
Einstein,
![]() ![]() |
Tibor Topic Opener |
Posted at:
2014-04-26, 23:19 UTC+2.0
I did not know about this possibility. And can I point to specific line or just portion of a file?
I believed you are the author. BTW the author is no longer active with widelands?
All right, so usually a player have just one economy. This simplifies things...
Well, I have to say I grep-ped src directory for 'preciousness' but to no avail. You are right, it is defined some other directory and values are hardcoded. Interpretation is clear: f.e. log has preciosness 10, gold 1 - this tells that AI should build buildings producing logs and then gold.
I agree, so the fault is mine and not of the game code, but this still makes little difference to me ![]() ![]() |
hjd |
Posted at:
2014-04-27, 11:04 UTC+2.0
Yes, you can link to a specific line. On the branch page, click on Browse the code to navigate the files in the repo like in a file explorer. If you click on a file, you will see the line numbers on the left side, and these are links to that particular line. For instance, I'm able to link to the change you did in defaultai.cc : http://bazaar.launchpad.net/~tiborb95/widelands/tiborb-ai/view/head:/src/ai/defaultai.cc#L878. (Btw, I tried to place the link in the nice markdown brackets/parenthesis format, but it didn't like the second colon Ships! ![]() ![]() |
SirVer |
Posted at:
2014-04-27, 21:34 UTC+2.0
Oh no, I did nothing on the AI, except the occasional bug fixes and code cleanups. Main authors are sigra (no longer active), nasenbaer (still around) and ixprefect (still around) and a bunch of drive by contributors - all gone again.
You cannot rely on this assumption - if you split your road network into two (even temporarily) you have more than one economy. ![]() ![]() |
einstein13![]() |
Posted at:
2014-04-28, 12:24 UTC+2.0
Tibor ![]() Sorry for late response. Here is a picture of bzr6890 version and I have also tested 6958 version, but It just stucked. Maybe later I will add something ;) I can remember, that in build17 some players didn't expand at all, like the violet player here. I'm not sure if in 6958 are the woodcutter changes, but in the beggining the players make another things in both tests (6890 and 6958).
Edited:
2014-04-28, 12:26 UTC+2.0
einstein13 ![]() ![]() |
Tibor Topic Opener |
Posted at:
2014-04-28, 21:29 UTC+2.0
![]() This is based on changes I did today, I must say AI is as by now bit unbalanced, non-military buildings gets higher score and teriroty expansion is slower. I will keep working on it and make it avaiable once it works reasonable well. In few days I believe. ![]() ![]() |