Skip to content

[2x2 Tournament] Double Up [SoD]

#330
Auto-translated
Ihtiandr
Can someone explain what this strange behavior with neutral creatures is?
If a hero only has neutral creatures and creatures for which a specific terrain is their native land, and if you arrange them so that all the neutral creatures are to the left of all the other creatures in the hero's window, then the hero will move across that terrain without any penalty, as if it were native land for all of his creatures (whereas with a different arrangement, the neutral creatures give a penalty on any terrain, because they don't have a native land of their own). This is a technical bug related to the fact that the coder forgot that the native land number for neutral creatures is -1 and used this number to indicate that no stack has been checked yet.
Ihtiandr
I had an idea a long time ago to write a battle simulator. Then, gather all the hero game programmers and hold a contest on AI. And the winning AI could then be integrated into the game. But I got stuck on the first stage; it's too complicated.
I think that the last point (integrating it into the game) is several times more difficult than all the others combined.
Ihtiandr
Sav, do you know how difficult it would be to simply extract the battle simulator from the game?
It's not possible to simply extract it; it's easier to write it from scratch or take it from VCMI. I can only talk about some subtle aspects of the game mechanics that are not present or are incorrectly described in the Physics Engine.