Skip to content

Posts from Damage calculator.

No ratings yet — be the first to rate!
14 years ago
Auto-translated
Hello everyone!

While watching Heroes of Might and Magic streams, I had the idea to create a functional damage calculator that would allow for a more accurate assessment of one's strength before tackling a particular guard. I heard that such programs already exist, but the samples I found were, to put it mildly, not impressive, which gave me additional motivation to bring the idea to life.

The calculations take into account the secondary skills of heroes, spells cast on units, hero specialization (by units, by secondary skills, by spells), unit features (for example, bears or unit hatred for each other), and so on – in short, practically any factors that potentially affect damage in battle.

Here's what it looks like:



Testing was conducted on the Heroes of Might and Magic SOD version. The only rare error that occasionally occurs in the calculations is incorrect rounding (a peculiarity of the game) and is expressed in a difference between the actual and calculated damage per unit. We will think about how to overcome this :)

Here is the link to the program: https://dl.dropbox.com/u/1446115/H3Calc.zip

The source code is on GitHub: https://github.com/nickynick/H3Calc

To run the program, you need version 4 of the .NET Framework. Many people probably already have it installed, but you can download it here: http://www.microsoft.com/en-US/download/details.aspx?id=17851

Any suggestions and indications of inaccuracies in the calculations are welcome. :)
User Avatar
14 years ago
Auto-translated
The bug with the damage calculation discrepancy has been noticed for a long time. We haven't figured out how to fix it, so we decided to just ignore it. :)
The program didn't launch for me. It requires framework 4. :(
Also, it doesn't take into account that the destructive beam can accumulate its effect with repeated casts.
You could add a lucky hit. You could add an option to fire a direct shot or deal melee damage with the archer.
And if you really want to make it perfect, you need to involve experts on monsters.
But overall, thank you very much for your work! If only it would launch...
14 years ago
Auto-translated
Hmm, by the way, yes, we could try downgrading the version to 3.5 so that it works for everyone on Windows 7. I somehow didn't think about that; all the testers had version 4 installed, apparently.
In reply to nappy
User Avatar
14 years ago
Auto-translated
nappy
Hmm, by the way, yes, we could try downgrading the version to 3.5 so that it works for everyone on Windows 7. I didn't think about that; all the testers had version 4 installed, apparently.
And for those with Windows XP? Is it impossible to downgrade to version 2.0? Also, I've added some more clarifications.

We could also add basic forgetfulness from the magic system.
Also, it seems that the hatred of monsters towards each other was not taken into account: Black Dragons/Titans, Efreet/Djinn, Angels/Devils, Air/Earth, Water/Fire. And also, the damage of psychic elementals to those immune to mind magic.
In reply to Dirty_Player
14 years ago
Auto-translated
Dirty_Player
It was also not taken into account that the destructive beam can accumulate its effect with repeated casting.
I remember that, but I was just too lazy, to be honest. Although, yes, you could replace the checkbox with a counter.
Dirty_Player
You could also add an option to fire directly with an arrow or deal melee damage with the archer.
Yes, that's a good idea. Currently, the damage is calculated based on a direct arrow.
Dirty_Player
And if you really want to make it perfect, you need to include experts on monsters.
They are already taken into account.
Dirty_Player
And for those who have Windows XP? Is there no way to make it work with version 2.0?
Do you mean that 2.0 is included by default in SP3, as I understand it? I currently have XP SP3, and 4.0 installs on it without any problems.
Dirty_Player
It seems that the monsters' mutual hatred was also not taken into account: Bleaks/Titans, Angels/Devils, Air/Earth, Water/Fire. And also, the damage of psychic elementals to those immune to mind magic.
It is taken into account. :)
In reply to nappy
User Avatar
14 years ago
Auto-translated
nappy
Do you mean that 2.0 is enabled by default in SP3?
Exactly.
nappy
I currently have XP SP3, and 4.0 installs on it without any problems.
Then, if it's not too much trouble, please add a download link to the first post.
In reply to Dirty_Player
14 years ago
Auto-translated
Dirty_Player
Then, in the first post, add a link for downloading, if it's not too much trouble.
Added. :)
User Avatar
14 years ago
Auto-translated
Thank you, we will test it. For clarity and to make it accessible, I'm moving the topic to the online section, where everyone can see it, because our community tends to be a bit lazy. I'll move it back later.
In reply to nappy
User Avatar
14 years ago
Auto-translated
nappy
Does this mean that 2.0 is included by default in SP3? I think so. I currently have XP SP3, and 4.0 installs on it without any problems.
Microsoft .NET Framework 2.0 is not included in Windows XP, even with SP3! This is absolutely true because I have a new computer with Windows XP SP3 pre-installed, and, for example, to get ProspectorRT (and another program) to work, I had to find, download, and install Framework 2.0.
For some reason, there's always a fly in the ointment. :( Program developers should remember that not all users have the latest versions of operating systems and applications installed.
14 years ago
Auto-translated
Marmot
Software developers should remember that not all users have the latest versions of operating systems and applications installed.
Well, I used to be annoyed that programs required .NET Framework to run, but nowadays almost every other program uses it, so... In this case, the choice is due to the simplicity and speed of development. I could have written the same thing in MFC, but that would have been much more painful :P
In reply to Marmot
User Avatar
14 years ago
Auto-translated
Marmot
Microsoft .NET Framework 2.0 is not included in Windows XP, even with SP3! This is absolutely true, because I have a new computer with Windows XP SP3 pre-installed, and, for example, to make ProspectorRT (and another program) work, I had to find, download, and install Framework 2.0.
For some reason, there's always a fly in the ointment. Program developers should remember that not all users have the latest versions of operating systems and applications installed.

Personally, I don't see any problem – just update (install) it, what's so difficult about that?
In reply to Lider1
User Avatar
14 years ago
Auto-translated
Lider1
Personally, I don't see any problem – just update (install) it, what's so difficult about that?
Besides, a link appeared in the first post. I updated it, and everything works. Even the monster specializations are taken into account, and their mutual hatred :) All in all, respect!

P.S. You can also sort the heroes the same way as the monsters. Well, I'm just being picky.
14 years ago
Auto-translated
Fixed a silly bug related to creatures' mutual hatred. The version at the link has been updated. :)
In reply to nappy
User Avatar
14 years ago
Auto-translated
nappy
Hmm, by the way, yes, we could try downgrading the version to 3.5 so that it works for everyone on Windows 7. I didn't think about that; all the testers had version 4 installed, apparently.
For example, I don't use Windows 7 at all, and the framework, which, by the way, is not included in Service Pack 3 but is installed separately, I usually don't install above version 2.0 (there's no need). We should also remember that previously made similar utilities (although less informative) didn't require the framework at all, and the game itself, Heroes 3, was designed for Windows 98, not even XP. Of course, you can install framework 4, but I don't really want to install additional software that isn't needed for other purposes and is significantly larger than the game itself, just for one small utility. Although, it's possible that the framework makes it easier to solve some tasks, and without it, it's harder to build the calculation...
User Avatar
14 years ago
Auto-translated
The creatures lack ballistae and other siege weapons.

Statistics

Welcome our newest member: recijeb