Topic: The AI vs. fleets and shipyards
tothxa Topic Opener |
Posted at: 2024-01-19, 00:56
While tweaking the Only tangentially related, but I don't want to start 2 topics: I also saw that the AI is explicitly not meant to build more than one shipyard. However that makes it extremely slow to defend ports. (it's already too slow starting up an economy to the point of building ports and ships) I haven't checked why it is prevented from building more, but I intend to. What should I watch out for that made this necessary? Is there any chance we could allow it to build 2 shipyards when it's strong enough (e.g. has 2 ports) without too much complication? (meaning in v1.2) I'm willing to give it a try, and will probably attempt it, I'd just like to know what to expect. Edited: 2024-01-19, 01:01
Top Quote |
hessenfarmer |
Posted at: 2024-01-19, 10:32
Well I made some precautions to make the AI aware of building a ship in an ocean where it has no port, but this were only workarounds, as the AI is not aware of fleets (and I don't know how to make it aware of that). The restriction for one shipyard is more ancient then me starting to dig into the AI code. I believe it was a precaution of preventing it from building endless shipyards as no measure was implemented to determnine the needed amount. for v1.2 I beleive we won't get to the point of the AI handling naval warfare very well. my only goal was to make it build some ships and distribute them to enable single players to get an impression of the new feature. But if you would try to implement such measures, feel free to do so. Top Quote |
tothxa Topic Opener |
Posted at: 2024-01-19, 13:47
Thank you!
Well, I guess it should just do what it does now, but for each fleet separately. Are there any known obstacles to that? Top Quote |
hessenfarmer |
Posted at: 2024-01-19, 20:05
Well it does simply not have the concept of the fleet. It does not have any concept of the map as well, so it does not knopw about continents, oceans, mountains and similar concepts. Top Quote |
tothxa Topic Opener |
Posted at: 2024-01-19, 22:36
Yes, but ships, ports (through portdocks), and I believe shipyards too know their fleet, so we can easily create a Top Quote |