Topic: More settings for AI players?
Mr.Ravi Topic Opener |
Posted at: 2024-06-25, 17:13
Hello! For a game that is built around building instead of destroying, the Normal AI is such a jerk! May I know why is it that the AI player ALWAYS attacks me when it can, except for when I defeat it multiple times, weakening it so much that it is "unable" execute another successful attack? The Normal AI refuses all diplomacy requests unless it is at gross military disadvantage or when it is far from my borders, making alliance and neutrality pointless. it also breaks all alliances once it establishes some military power and gains ability to attack. I am not asking for a peaceful game, but I really think constant war is pointless, draining, and unpleasant; also it keeps me from actually playing, I can't do stuff if I have to constantly worry about my 5 borders' being attacked by an AI that can't be reasoned with! There should really be an option to allow real players to kick AIs and also the ability to make permanent teams. It would be really nice if we could set a level of aggression for each AI player! If You Have Lost Heart In The Path Of Love, Flee To Me Without Delay, I Am A Fortress, Invincible. |
kaputtnik |
Posted at: 2024-06-25, 18:10
In general the ai code is not really maintained because widelands is lacking developers. The AI code regarding diplomacy is pretty new and minimal, same for the ai code regarding naval warefare. I am glad that the ai works under most circumstances, although it seems sometimes very stupid... Defining permanent teams should be possible in the game setup menu. Don't know if you have to forbid diplomacy if teams are predefined. The option to forbid diplomacy can also be found in the game setup menu, a bit hidden below the button "Show more options": Top Quote |
Mr.Ravi Topic Opener |
Posted at: 2024-06-26, 14:04
Okay, thanks. So how can I make this AI stop attacking me? Can't I just bribe it or something?! -_- If You Have Lost Heart In The Path Of Love, Flee To Me Without Delay, I Am A Fortress, Invincible. |
kaputtnik |
Posted at: 2024-06-26, 16:16
AFAIK the AI starts attacking if the ai player is stronger than you. So just focus on gaining military strength until you meet an ai-player. And keep some distance to ai players, where distance means don't expand your territory to the border of the ai-player, seeing his border is a good distance. This is just my experience, gained while play testing the map Amoebae. In the first test game all ai players starts attacking me, during other test games i used the tactics mentioned above and than it was much easier to win. But i think on most other maps you have time enough to gain some military strength and other ai-players are far away, or, you can catch one after the other. Top Quote |
mxb2001 |
Posted at: 2024-06-26, 17:59
Actual artificial intelligence is likely centuries away. I like to call them AO Automated Opponents or more rudely AS Art. Stupidity. : ) But hey, no complaints. I can actually beat them. Uh, sometimes. -- |
hessenfarmer |
Posted at: 2024-06-27, 21:27
If you don't wan't the AI to attack we have the option to play a peacefull match. Top Quote |
MarkMcWire |
Posted at: 2024-06-28, 14:13
I have a lua code for my own tribe that maybe can used for this problem. I programmed a ban on certain buildings into my starting conditions. These buildings are only unlocked gradually over the course of the game. This way I wanted to get the AI to not waste too many building materials at the beginning of the game. In particular, the unnecessary upgrades of buildings should be prevented in the first few hours of the game. This method can also be used to limit military buildings. The AI actually only needs small Sentry / Guardhouse to expand territory. It cannot launch a successful attack with these buildings because they can only accommodate a maximum of 2 soldiers. On the other hand, we could simply ban the AI from building training sites so that it cannot produce heroes. This would quickly put it at a disadvantage in military statistics and it would no longer attack. However, this would have a significant impact on the way the AI organizes its economy, since without training sites certain wares would no longer be needed and thus the production chains would be disrupted. The AI would simply produce weapons and armor until the warehouses were full and then the smithies would no longer produce anything. This would mean that there would no longer be a need for metal and the smelting works and mines would also eventually stop producing, meaning that food would no longer be needed either. This would give the AI a signal not to build any more buildings, because quantity-limits of severals wares. Edited: 2024-06-28, 14:14
My widelands addons: https://drive.google.com/file/d/1jopANlODo41T2reHJ0zaCOMYxq_rxXP-/view?usp=sharing Top Quote |
MarkMcWire |
Posted at: 2024-06-28, 14:19
The entire game mechanics is designed to collect as many wares as possible in order to produce armor and weapons in order to recruit and train soldiers and thus defeat the other players. The game's economy is very linear. There are no complex dependencies and therefore no realistic economic simulation. There is not even a "population" that needs to be fed and clothed. What you are looking for is probably more in the direction of "Anno" or "Civilization" and less in the direction of "Settlers". My widelands addons: https://drive.google.com/file/d/1jopANlODo41T2reHJ0zaCOMYxq_rxXP-/view?usp=sharing Top Quote |
Mr.Ravi Topic Opener |
Posted at: 2024-06-28, 14:48
Nice job with the AI. You have had more than "some" success, the game is really pleasant with the AIs in it. The point of an alliance is to keep countries from tearing each other apart so that they can reach a common goal, if a country was to make and break 5 alliances per minute, its behavior wouldn't have been tolerated by others. But, as I said, I wish not for a peaceful game, I just thought this behaviors were worth mentioning. If You Have Lost Heart In The Path Of Love, Flee To Me Without Delay, I Am A Fortress, Invincible. |
Mr.Ravi Topic Opener |
Posted at: 2024-06-28, 14:50
Thank you so much! I don't think I'll be using it though, I've given that map up. I've started a new one : "Europe" If You Have Lost Heart In The Path Of Love, Flee To Me Without Delay, I Am A Fortress, Invincible. |