Wake of Gods mod rewriting

Wake of Gods mod in 8.98.3 version is buggy. I decided to rewrite this mod to fix some bugs and to add some missing features (where possible). I managed to do that… partially.
This version works… strange. One day, everything is fine, there’s no crashes, freezing, random maps generate without problems. But second day, VCMI doesn’t even launch, someday I must enable HotA mod to launch the game, sometime game crashes during creating random maps.
And I don’t know why this happens. So I’m asking you for help with fixing.
Here’s my so called ‘improved’ version:
https://www.mediafire.com/file/9hqdr1afflt8emd/WoG_v9.zip/file