Page 1 of 1

AI gone mad((

PostPosted: 22 Sep 2009, 13:31
by Thanatos
I was testing my new map and after 1:30 since I started the game. AI started making strange things. AI was mowing its troops from one def point to another without a reason. And 10 minutes later, behaved like it was attacked. Soldiers were screaming and running around all the map. :shock: One more strange thing was that my archers and watchtowers didn't shoot at enemyes.

What the hell they were doing? I have no idea about why... Does anybody know the reason? Heelp!... :cry:

I would put screenshots of that nightmare here but i can't load images from my computer.

Re: AI gone mad((

PostPosted: 22 Sep 2009, 14:14
by Lewin
Soldiers were screaming and running around all the map. :shock:
Cool! I didn't know that soldiers could run around screaming in KaM!
Seriously though, I think I know what this is. It's called the "Drunk Soldiers" bug. It is caused by having too many units in the game, and is thought to be a bug in the KaM engine.
To fix it, reduce the number of units on the map. (e.g. delete a team or use the AI Max. Troops setting to restrict the number of troops the AI trains)
There is a more detailed explanation in the help file for my editor. Go to Help -> Help under the menu and then look under Appendix -> Game Bugs.

PostPosted: 22 Sep 2009, 16:14
by Thanatos
Thank you, Lewin. At first I thought my dat.file is damaged(if i can use this term) and will always work incorrectly. My 10 hours of scripting won't be lost! Though I probably have to decrease number of men in each troop and delete all animals. Yeah... action may not be so cool as i imagined at first.... But i'll work with the mission more. In 2-3 days I send you a beta-version of it. I hope, It will be an interesting thing.....

Oh! One more question. I've read help file of your editor and discovered that number of all of repeating attacks is limited(10 times) I know it's imbossible for AI to make 15 AI attacks with 100 men. It take a lot of time and gold. but though if I want to make this can I create 2 similar(may be a wrong word) scripts with the same Repeating attacks(70 men in 4 ranged and 3 melee troops, for example) It'll be 20 times. So... will it work?

That isn't all! :lol: I still can't understand what the difference between Repeating Combo and Repeating attack using random units?

PostPosted: 23 Sep 2009, 08:14
by Thunderwolf
@Lewin: sure they can scream, at least the infantry. they can scream "CHARGE!!!" and stuff...

PostPosted: 27 Sep 2009, 23:31
by Lewin
Oh! One more question. I've read help file of your editor and discovered that number of all of repeating attacks is limited(10 times) I know it's imbossible for AI to make 15 AI attacks with 100 men. It take a lot of time and gold. but though if I want to make this can I create 2 similar(may be a wrong word) scripts with the same Repeating attacks(70 men in 4 ranged and 3 melee troops, for example) It'll be 20 times. So... will it work?
You completely misunderstood me. As far as I know attacks will continue to repeat forever. The limit is that you can only have 10 individual attacks. But each attack will continue to happen for the whole game. (I think) By individual attacks I mean the number of items (commands) under the attack heading in the treeview.
That isn't all! :lol: I still can't understand what the difference between Repeating Combo and Repeating attack using random units?
Firstly, I am only going on what people say and what I have experienced. I made up the names repeating and repeating combo. In the script they are just numbers.
The difference between repeating and repeating combo:
1. Repeating combo only works in TPR, but Repeating will work in both.
2. Repeating combo allows for a time to be set. Say you have set the time to be 10 minutes (which is 6000 in KaM time) This means that the AI will wait ten minutes, then if they have enough men they will attack. After that they will continue to attack without delay if they have enough troops. So it just puts a delay before the first attack.
With just Repeating attacks they will start without delay if they have enough troops.

PostPosted: 02 Nov 2009, 22:52
by Categoricus
In original 015th mission "drunk soldiers" effect often comes forward at the south-east black village but I don't remember they would have stopped it even when I "limited":) their number.

EDIT: I was wrong when writing 016 so I corrected it to 015.