Topic: "Northmen" Tribe Page
Tibor |
Posted at: 2017-08-13, 23:41
for the AI all buildings are just inputs, outputs, performance, count of such buildings, is/not basic building, is output needed, count of stocked inputs/outputs..... this info is pretty generic. Probably per tribe training would provide some benefits but I dont think that big. But I am not explicitly against this, but the amount of training would grow up... Top Quote |
Ex-Member |
Posted at: 2017-08-15, 10:53
Does the AI cosider the work area of buildings when adding them? This can affect the productivity of a building, it is highlighted in ther Frisians as they have a number of small buildings that have large work areas that are only effictive if keep free, like the claypit and berry farm. Top Quote |
Tibor |
Posted at: 2017-08-15, 12:16
Indirectly, there is "space_consumer" flag in ai_hints section..... Top Quote |
Nordfriese Topic Opener |
Posted at: 2017-08-15, 12:36
… but the AI doesn´t always seem to consider that. In training games, I often see a barbarian AI build a reed yard and surround it with roads, so the productivity stays at 0%. Could you please provide a list with the flags the AI currently considers? Which flags are needed to make it understand the pairing of buildings such as berry_farm/collectors_house or clay_pit/aqua_farm? And can the AI understand buildings like the reindeer farm now (recruits workers and produces wares) so I can remove it from the basic economy? On the frisians graphics development side, I finished drawing images for all the buildings now. No animations, workers, ships; the buildings still need some improvement. I tried and failed to make better images for flags and fences; I did make new road textures as well as images for ponds and wares. Graphically, I´ve done all I can for the frisians. There was a remark about the wooden tower´s buildcost. This is difficult. It now has a buildcost of 5 logs and 1 reed. If it were more expensive, it would be nearly useless. Cheaper, it would be too good with its high vision range. I am now working on finding better amounts for starting wares. When this has been improved, I think there is nothing left to do except some minor fine-tweaking. Top Quote |
Tibor |
Posted at: 2017-08-15, 13:25
Building of roads is stupid, AI picks only starting and end flags and let the inner algorithm connect them. And it does not consider space consumers here at all, f.e. because he does not know where the road will be placed. Space consumers are considered only when building new buildings and perhaps when dismantling buildings.
Probably some housekeeping here would be needed. I can run grep through conf files and provide some list, but cannot do it now.
no flags. AI pairs "renews_map_resources" flag with outputs of a productionsite and a match constitutes pairing...
No, the change in the code would be needed. Top Quote |
king_of_nowhere |
Posted at: 2017-08-15, 16:22
but the tribes still are completely different, with totally different wares. I can't believe there is only one AI for all of them. Even those wares that are equal in all tribes have very diifferent price and demands, like barbarian meat being dirt cheap and empire meat being expensive, or atlanteans needing lots of wood and frisians needing little of it. The algorithms may be the same, but the numbers have to be very different for all tribes. Top Quote |
Tibor |
Posted at: 2017-08-15, 16:55
At the end, everything is just numbers and similiar stuff:
This is kind of information AI needs and should be able to proceess to make decisions. What further inputs would you suggest? Top Quote |
GunChleoc |
Posted at: 2017-08-15, 18:39
There is a list of flags (sort of) in this file: http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/head:/src/ai/ai_hints.cc It's undocumented though. Edited: 2017-08-16, 06:59
Busy indexing nil values Top Quote |
hessenfarmer |
Posted at: 2017-08-15, 21:19
Hi everybody,
sorry for starting the discussion. I now have tested the Ai values from Nordfriese with empire and barbarians on crater against me playing babarians. Although there were slight differences the two tribes acted pretty much the same. So it may be related to my scenario map. As I am trying to understand the principle of Tibors work I think that the one AI fits all depend on the configuration of the tribes buildings. Perhaps after we established a pretty good AI we could tweak the values to make the tribes even more balanced regarding AI performance. @ Tibor: As my babrians had lots of building material in their HQ and were not building anything else than military buildings the amount of building material available could be a factor that will allow more constructionsites and a surplus of buildings than actuallyy needed to outproduce an opponent. Just my five cents Top Quote |
Tibor |
Posted at: 2017-08-15, 21:52
@hessenfarmer Did you take concept of basic economy into consideration? Perhaps some of basic buildings is still missing so building of other productionsites is prohibited (except for foresters or so...). There should be some hints in logs... Top Quote |