Linuxrocks123 Tree: https://github.com/linuxrocks123/vcmi

I also thought it strange. He is afraid to kill dragonflies and nomads. The army is there, but sits in the city. Who is afraid of? Unknown. Or is it stuck in the green monolith that he sees no reason to break?

youtu.be/jCikvM7PwFs

Now he often sit up and do not go out.
killmonster.rar (731 KB)

Pure Crash
I think this is due to the fact that the blue lost their cities and gone forever.
Strangely different, he had a very good army, but did not take a neutral city.

s1.radikali.ru/uploads/2014/10/18/c4d20968a1f93f01433b66bc7c6d5f43-prev.png радикал фото
Crash.rar (550 KB)

…so, do you clean the entries of Goals::defended_towns after town is defended sucessfully or lost?

In this picture AI can’t see neutral city at all.

Yes, I clear defended_towns each turn. It’s regenerated anew each AI turn because an enemy hero might have gotten closer to a town, etc.

Good news, I’ve been able to reproduce the Freeze AI issue with the attached file on Linux. That should make it easier to fix.

Warmonger, You surprise me. Fortress neutral city. It does not belong to anyone

yes, it’s good. while others fail?
Crash3.rar (1.46 MB)

I said AI can’t see it. Heroes have sight radius of 5 tiles by default. Town is more than 10 tiles away from any accessible area.

Hey guys!

Thanks for all the reports (especially Povelitel, good work man!) I think I’ve fixed the issues; there were three separate bugs. The one that was probably causing you guys the MOST trouble was a double free memory corruption issue. Turns out that would have made Linux crash too except I’m using a custom memory allocator (it was my master’s thesis … I should publish the code sometime but that’s way off-topic). Please update to the latest revision of my tree and see if the problems are fixed.

That’s really good news, but please, pay attention to that this link leads to compiled VCMI from main develop branch, which is obviously more stable (on Windows) than Your and doesn’t contain Your changes, linuxrocks123.
Here is the link to main develop branch, from which I’ve built this VCMI package, and here is the link to linuxrocks123’s branch, from which I’ve built VCMI packages in debug mode and in release mode.

Ok, I’m going to do it right now :wink:

Okay, I understand you. But why he did not do one of two things:
1 Do not go to attack the enemy, who selected your city
2 Do not go to open another territory. If he killed the dragonflies that he found that there is a city that you can take.

And so he just stood there until he died.

I look forward to :slight_smile:

Thank you. Very pleased that so quickly react

Okay, I understand you. But why he did not do one of two things:
1 Do not go to attack the enemy, who selected your city
2 Do not go to open another territory. If he killed the dragonflies that he found that there is a city that you can take.
And so he just stood there until he died.

Yeah, that is a little dumb. Did he really just stand there, or did he explore unknown territory? One of my AI modifications is to make the threat level of any town be “zero” for an AI player with no towns. Just like the H3 AI does, he should attack 20 titans in a garrison with 1 imp if he’s about to die, because, well, why not.

But the AI could still decide to explore instead of take a town, even if the town appears to its logic to be unguarded. But if he just stood there not moving at all … well, that’s pretty bad.

Ok, I’ve built VCMI from linuxrocks123 branch (package is here) and happily spend 1 game month without any crashes, well done linuxrocks123 :wink:

Awesome! Glad to hear it :smiley:

Hey, could you guys tell me where you’re getting those maps, btw? Some of them look pretty cool.

I guess most of them from heroesportal.net/maps.php

it’s easy
cloud.mail.ru/public/20be1fe1ca … mpaigns.7z

maps4heroes.com/heroes3/maps.php

heroesportal.net/maps.php?type=H3SD

build drive.google.com/file/d/0Bwj7Qc … V4WHc/view
Freeze AI
Freeze.rar (585 KB)

Found another bug, I’m posting it here because it’s related to Your branch, unless someone will request to move it to mantis.
Switching view to underground / surface sometimes doesn’t work properly. Here are steps to reproduce it:

  1. Start map “__1_map without underground”
  2. Quit to main menu
  3. Start map “__2_map with underground”
    At this point You should notice that button which switches surface/underground view is disabled, but shouldn’t be.

Hehe, and another one - infinite loop.
Infinite loop.zip (479 KB)
__2.h3m (9.02 KB)
__1.h3m (5.57 KB)

Heroes just closed

AI attacked AI in town.
Closed.rar (838 KB)

AI is afraid to beat the garrison. Even when he is stronger army.
Nature vs Underground.h3m (4.5 KB)

It seems to me there is something wrong

youtu.be/1llSM6vFqXo


2 variant youtu.be/CU5JO_wVlPQ
2variant.rar (378 KB)
NOATTACK.rar (469 KB)