Skip to content

Posts from A program for determining luck/morality in Heroes 3! Auto-translated

4.8 (4 ratings)
In reply to AlexSpl
User Avatar
#665
Auto-translated
AlexSpl
LM Oracle 3.95

[HoMM I]
1. Now, hero names in the list have the color of their kingdom's flag;
2. Double-clicking on a hero's name displays the composition of their army;
3. You can view the progression of any hero from the list by double-clicking on their number (first, set the calculation depth).

To refresh the list, use Refresh (F5) as always.
It's interesting to observe how many troops the AI loses on neutral creatures. And, of course, the program will speed up the search for a hero with the maximum starting army.

Thank you so much! Now, playing Heroes 1 in tournaments will be a real pleasure!:smile01:
I'll be testing it tomorrow ;)
P.S. Even though Heroes 1 is the first part of the series, it has truly become my favorite game! :smile13: And the more I play it, the more it captivates me. The most interesting thing is that there are so many nuances in this game that it will take a very, very long time to explore them all, and that's great!
P.S.S. The AI's behavior on the battlefield turns out to be very complex…

Sincerely, VDV_forever

Added 15 minutes ago
AlexSpl

I'm not very good at writing help files...

I'll add Diplomacy Oracle for HoMM I, which allows you to view chests, campfires, etc. for the first and third games.

Diplomacy Oracle is a dream come true for any "scout"; for the first game, the most important thing is to know the loyalty of the monsters;) I'm sitting here and dreaming about it:o
Regarding help files, I will definitely add it to the reference guide;
AlexSpl

That's all for now. I'm tired (honestly).
That's more than enough, in my opinion, it's the last absolutely essential thing for tournaments.;) We will be waiting with great anticipation:o

P.S. I loaded the starting save: looked at the loyalty of the monsters, the most "overpowered" heroes, then looked at the fastest heroes, buildings in the castles, determined the minimum, and off we go :D :smile49:

P.S.S. Although, there is, of course, another idea, but it's just that...:o And so much has already been done that we couldn't even dream of it 2 years ago:smile01:

Sincerely, VDV_forever
Единый справочник по Героям Меча и Магии

ТУРНИРЫ ПО ГЕРОЯМ 1!:smile13:
User Avatar
#666
Auto-translated
Although, there is another idea, but it's just a thought...
Share it, otherwise it might be too late! ))))

Temporarily removed the program (until the new version is released)
In reply to AlexSpl
User Avatar
#667
Auto-translated
AlexSpl
Share it, otherwise it might be too late!
Show which heroes are in the tavern of the AI players:smile49: For example, they could be displayed with a corresponding color when displaying heroes with MP.

P.S. In the 6th stage of the Kanighem Tournament (currently ongoing), I only experimentally determined which hero is in the tavern of the AI player.
AlexSpl

Temporarily removed the program (until the new version is released)
I managed to download it:D

Best regards, VDV_forever
Единый справочник по Героям Меча и Магии

ТУРНИРЫ ПО ГЕРОЯМ 1!:smile13:
User Avatar
#668
Auto-translated
LM Oracle 3 FE

[HoMM I]
1. A full-fledged Diplomacy Oracle has been added;
2. Hero names in taverns are now displayed in the list in italics (in square brackets, highlighted in color).

Diplomacy Oracle

Three options:

1) Neutrals will never join:
Example message: N = 24, Hostile!;

2) Neutrals will join if the hero is strong enough:
Example message: N = 6, k = 57005/34326 = 1.66 [3066]
Numerator - the strength of your army,
Denominator - the strength of the neutral army,
The number in square brackets - the number of AI_Value units that are missing for them to join. If this number is zero, the neutrals will still not join (there would be enough 1 AI_Value unit to join. Add a peasant, and everything will be OK);

3) Neutrals will join:
Example message: N = 35, k = 57005/16870 = 3.38 [Will join]

To run the Diplomacy Oracle, double-click on the hero's name in the list (the one you will use to recruit). The Diplomacy Oracle works in real time (this does not apply to the window with army numbers), so there is no need to worry about, for example, your hero's army changing. Information about neutrals is displayed when you hover over them.

Note:
The computer recruits neutrals according to its own rules. It can even recruit stronger neutrals! For a human player, the ratio is 1.75. That is, the condition for joining is Hero_Army_Power > 1.75 * Neutrals_Power.

I decided not to bother with campfires, resource piles, etc.

P.S. I tried to speed up the process of building the secondary skill tree for Heroes 2, but it is not possible to optimize the algorithm due to the huge number of calculations performed to obtain a new pair of skills at the next level-up. This is a flaw of the NWC programmers. Just imagine: the game can perform up to 5000(!) iterations just to get 1(!) new skill. And the number of iterations is proportional to the number of secondary skills the hero already has at the expert level. Therefore, the deeper you set, the slower the tree is built. The recommended depth is 15 levels. Already at a depth of 20 levels, a noticeable slowdown is observed, not to mention the time required to build a complete development tree. Fortunately, 15 levels is more than enough to choose a starting hero.

Heroes 3 is free from this shortcoming, and a complete tree on medium-powered machines is built in less than half a minute.

Download
Re-uploaded.
In reply to AlexSpl
User Avatar
#669
Auto-translated
AlexSpl
LM Oracle 3 FE

[HoMM I]
1. A full-fledged Diplomacy Oracle has been added;
2. Hero names in taverns are now displayed in the list in italics (in square brackets, highlighted in color).


Today, your program helped me so much with the tournament that instead of the usual “half a day” spent scouting the map and making a rough pass, it took only 1 hour! That’s a real time-saver!:smile03:
Regarding Diplomacy – dreams come true! I couldn’t resist testing it (even though I’ve had a temperature for 3 days now).
I think that if I had these Diplomacy features and the ability to see heroes in taverns for the AI today morning, it would have cut the time by another 3 times!:smile24:
Honestly, I have no words! Thank you so much, AlexSPl. I really hope that now you will join the tournament players of the first game for real!;)

Really, now no player can do without this product, if they don’t want to waste their time, plus it’s just a great find for the tournament organizer! You can monitor loyalty without leaving the “cashier’s desk”! I’ll go and make my colleague Sub-Zero happy.:smile01:
AlexSpl
Note:
The AI joins neutral creatures according to its own rules. It can even join stronger neutral creatures!
Honestly, I didn’t know.:o
AlexSpl
I decided not to bother with campfires, resource piles, etc.
There is no need for that, I think that everything has been done for Heroes 1!:smile20:

During testing, I found that the buildings built by the AI are not updated in real time. Even closing and reopening the tree view (+) doesn’t help.
To display them correctly, you need to close and then reopen the window with the castle you want to view. It’s not very convenient, is it possible to make this happen in real time?


With great respect, VDV_forever
Единый справочник по Героям Меча и Магии

ТУРНИРЫ ПО ГЕРОЯМ 1!:smile13:
User Avatar
#670
Auto-translated
To see the changes in real-time, you need to close and then reopen the window with the castle you want to view. It's not very convenient; is it possible to have it displayed in real-time?
To update the buildings and army composition, double-click on the city name and the hero's name in the list, respectively. Sometimes the game simply doesn't build anything. You don't need to close the window.
To be honest, I didn't know that.
Well, I mixed up the peasants with the goblins. Probably, everything is fine with the companions too. I'll check, just in case.
In reply to AlexSpl
User Avatar
#671
Auto-translated
AlexSpl
To update buildings and the army composition, you need to double-click on the city name and the hero's name in the list, respectively. Sometimes the AI simply doesn't build anything. It is not necessary to close the window.

No, that's clear, I just assumed that this information could be displayed in real-time. So you wouldn't have to constantly click twice. That is, you load a save, take a turn, check if the AI has built magic (for example), or not. If not, you load the save again, and so on. But you can also manage perfectly well without it.
AlexSpl

Well, I confused the Peasants with the Goblins. Probably, everything is fine with the AI as well. I'll check, just in case.

Well, I've already added this to the notes with the program description in the reference manual. :D

I found a small bug: if you find all the heroes in the first column in the hero list window, and then sort by name, when viewing the heroes' primary characteristics (skill tree), there is a discrepancy. For example, for a Knight, the skill tree might be displayed as 0, 0, 3, 2, and for a Sorceress, 1, 2, 1, 1.
But if you don't sort by name, everything is fine!

I've added the updated version of the program to the reference manual, + I've completely rewritten the FAQ for it. If you have any comments or suggestions, I would be very grateful. ;)

Sincerely, VDV_forever
Единый справочник по Героям Меча и Магии

ТУРНИРЫ ПО ГЕРОЯМ 1!:smile13:
User Avatar
#672
Auto-translated
LM Oracle 3 FE

[HoMM I]
1. [New] Now, in the Diplomacy Oracle window, you can also view:

1) resource piles;
2) chests;
3) campfires;
4) external dwellings;
5) mills;
6) artifacts;
7) shrines.

First, run Diplomacy Oracle for any hero

2. [Diplomacy Oracle] Fixed the issue where the selected hero would reset when updating the hero list (Refresh), and also when another hero was highlighted (for HoMM I, the army of the highlighted hero, not the one selected with a double click, was taken into account).

3. Heroes found by entering a name are now immediately displayed in the correct color, rather than after updating the list (Refresh).
I found a small bug: if you find all the heroes in the first column of the hero list window, and then sort by name, there is a discrepancy when viewing the heroes' primary characteristics (skill tree). For example, for a Knight, the skill tree might be displayed as 0, 0, 3, 2, and for a Sorceress, 1, 2, 1, 1.
But if you don't sort by name, everything is OK!

The same issue as with Diplomacy Oracle, which I have now fixed. It's a pity I only saw your post now. The stats get mixed up during sorting. I will upload it later, fixing the unpleasant bug you mentioned. Thank you.

[HoMM I]
Fixed the sorting bug
LM Oracle FE v3.97 [zip: 231,357 / exe: 238,080]
In reply to AlexSpl
User Avatar
#673
Auto-translated
AlexSpl
LM Oracle 3 FE

[HoMM I]
1. [New] Now, in the Diplomacy window, Oracle can also display:

1) resource piles;
2) chests;
3) campfires;
4) external dwellings;
5) mills;
6) artifacts;
7) sanctuaries.


Thank you!:smile20: Now, for absolute happiness, only 2 things are missing: the ability to view the army size of computer-controlled heroes and in external castles :o
For example, a player needs to attack a computer-controlled castle the next day. They skip their turn, and during the computer's turn, a computer-controlled hero with a certain army emerges from the castle. This army can sometimes change, as can the castle's garrison. It's not a big deal, but before attacking this castle, it's necessary to engage in a difficult battle. As a result, it takes a lot of time :(

Sincerely, VDV_forever
Единый справочник по Героям Меча и Магии

ТУРНИРЫ ПО ГЕРОЯМ 1!:smile13:
In reply to VDV_forever
User Avatar
#674
Auto-translated
It will never end...
Sorry, I couldn't resist. Alex - respect.
Клан Homo homini

Charity suffereth long, and is kind; charity envieth not; charity vaunteth not itself, is not puffed up,
Doth not behave itself unseemly, seeketh not her own, is not easily provoked, thinketh no evil;
Rejoiceth not in iniquity, but rejoiceth in the truth;
Beareth all things, believeth all things, hopeth all things, endureth all things. Charity never faileth...
User Avatar
#675
Auto-translated
This will never end...
It already ended :) FE stands for Final Edition. Updates will only be made if critical bugs are found. Thank you all!
In reply to AlexSpl
User Avatar
#676
Auto-translated
AlexSpl
It's already finished :) FE stands for Final Edition. Updates will only be made if critical bugs are found. Thank you all!
FE - First Edition :D
In reply to VDV_forever
User Avatar
#677
Auto-translated
VDV_forever
Thank you!:smile20: Now, for absolute happiness, only 2 things are missing: the ability to view the army size of heroes in campaign and external castles :o...

Sincerely, VDV_forever

I messed up, everything is fine with the heroes.:p For complete happiness, only the display of the army in the garrisons of enemy and neutral castles is missing.:rolleyes:
But, since
AlexSPl
FE is Final Edition. Corrections will only be made if critical bugs are found. Thank you all!
, then it is not appropriate to talk about garrisons.

Thank you for your work!

Sincerely, VDV_forever
Единый справочник по Героям Меча и Магии

ТУРНИРЫ ПО ГЕРОЯМ 1!:smile13:
User Avatar
#678
Auto-translated
For complete happiness, all that's missing is the ability to display the army stationed in enemy and neutral castles.

Couldn't refuse :) Here

Now, when you double-click on the city name:
a) the number of unredeemed creatures is displayed in square brackets in the building window;
b) the garrison is displayed in the army size window.
In reply to AlexSpl
User Avatar
#679
Auto-translated
AlexSpl
Couldn't refuse :) Here

Now, when you double-click on the city name:
a) in the building window, the number of unrecruited creatures is displayed in square brackets;
b) in the army size window, the garrison is displayed.

Mega respect! Thank you!:smile44:
Tomorrow I will try to correct the FAQ and release a new version of the guide (offline).
P.S. Now it's really FE ;)

Sincerely, VDV_forever
Единый справочник по Героям Меча и Магии

ТУРНИРЫ ПО ГЕРОЯМ 1!:smile13: