Skip to content

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

4.8 (4 ratings)
User Avatar
16 years ago
Auto-translated
I once shared an algorithm for obtaining secondary skills on the community forum. I propose a slightly adapted version of the GetSecSkill() procedure, which is responsible for generating secondary skills in the game (H3). Comments are included.
User Avatar
16 years ago
Auto-translated
// Exception #2. Magic Schools (15, 16, 17, 18 - school numbers)
Why does the numbering suddenly start from one in the comments? :)
The initial value of R depends on the tree number N and the hero's level.
The most mysterious phrase in the provided file.
Please explain what this "tree number" is. Is it a pseudo-random number R that existed when the hero was level 1, or something else?

Also, a reasonable question: does visiting objects, as we used to say, that "reset" the skill tree, leave R unchanged? If so, what does the phrase "...and the hero's level" mean?

P.S. Thank you for the excellent work! It's a pity that I don't know how to find the necessary parts of the code myself.
User Avatar
16 years ago
Auto-translated
Why did the numbering suddenly start from one in the comments?
I smiled, thank you :)
Please explain what this "beast" is - the tree number?
This is my name for it (it's more convenient). It's used to obtain the Seed, in simpler terms.

Seed = 343FDh * Hero_Level + 26497h * N + 259DFh
Yes, and a logical question: does visiting objects, as we used to say, that "reset" the skill tree, leave R unchanged?
Yes, a new skill is simply added. Accordingly, the sum SUM_W changes, and other skills are generated (i.e., the tree is broken). The algorithm works in this case as well.
User Avatar
16 years ago
Auto-translated
Therefore, now, to know the entire skill tree, you only need to know this tree number N, which must be stored somewhere in the save file (and you probably already know where!).
Soon, the old skill tree viewer will be sent to a museum under glass. :)

To complete the analysis, we just need to explain where the bug with the broken "first aid" skill comes from, as clicking on it causes the game to crash. Could it be that this mysterious, broken, first aid skill is the 28th pseudo-skill?
User Avatar
16 years ago
Auto-translated
Soon, the old skill tree builder will be sent to a museum, displayed behind glass.
It's already been done (scroll back in the thread). Download the latest version. It builds skill trees and also searches for the desired skill set. You need a log file + the game data - and there you go.

In addition, there is an exploration mode, i.e., you can build any of the 255 skill trees.

Added 2 minutes later
To complete the analysis, we just need to explain where the bug comes from that causes the game to crash when clicking on the "first aid" skill.
I haven't heard of that. Describe the issue.

The game sometimes crashes, seemingly for no apparent reason. The last time I noticed it was when I tried to place the second Grail.
User Avatar
16 years ago
Auto-translated
Download the latest version.
Yeah, thanks. I somehow missed it :)
I just didn't understand how to view the tree there. Or does it only work in 4.0?
It’s not easy to figure out this program: some commands are in the menu, and others are in the context menu. It looks like a Chinese keychain with everything from a corkscrew to a toothpick built into it :).

Regarding the mentioned bug, I found an old post by Vbn:
/topic/at/148639/
I encountered this 1-2 times, but I couldn't find any saves with this skill.
User Avatar
16 years ago
Auto-translated
2Kluka: The tree building feature is activated by double-clicking on the hero's number in the list for versions 3.2 EN, 4.0 EN, and 4.0 RU.
It's not easy to figure out the program: some commands are in the menu, others are in the context menu.
And some are not in either place :) Consider it a test of intuition.
User Avatar
16 years ago
Auto-translated
LM Oracle 3.13.9.0 FE

LMOracle 3 FE

Supported versions:
HoMM III 3.2 EN (heroes3.exe)
HoMM III 4.0 EN (heroes3.exe)
HoMM III 4.0 RU (heroes3.exe)
HoMM II 2.1 RU (hmm2pl.exe)
HoMM I 1.1 RU (heroes.exe)

Instructions:
1) Launch your copy of HoMM that is supported by this program;
2) Launch this program;
3) In the "Options -> Version" menu, select your HoMM version;
4) Click "Start".

The context menu opens with a right-click on the list.

You can, for example:
1. Search for heroes that meet certain requirements (e.g., belonging to the blue player, having the Logistics secondary skill, etc.);
2. View their remaining movement points;
3. Create skill trees for any hero (double-click on the hero's number in the list);
4. Plan the recruitment of neutral creatures using Diplomacy Oracle (double-click on the hero's name in the list);
5. View the available spells in any city on the map.

You can read about the other functions in this thread.
In reply to AlexSpl
User Avatar
16 years ago
Auto-translated
2AlexSPL: The link to the program is broken. :(
User Avatar
16 years ago
Auto-translated
dimis (Heroes Community forum) wrote an interesting article on the topic of leveling up secondary skills:
http://www.math.uic.edu/~diochnos/research/publications/heroes-fun-10.pdf
He will present it at the Fifth International Conference FUN WITH ALGORITHMS, which will be held from June 2nd to 4th this year in Italy. The conference will be attended by representatives of well-known universities and scientific societies, including a representative from MIT, Erik Demaine. Heroes will definitely become more popular :)
http://fun2010.dia.unisa.it/index.html
15 years ago
Auto-translated
Please provide the LM Oracle program version for Windows 7, hosted on rghost/Google Drive or any other hosting service.
15 years ago
Auto-translated
Downloaded it from a foreign site, but I can't use the program because there is no start button. UAC is disabled, and Nod is happy with everything.



I don't know how to increase the window size; it's a fixed size and the start button isn't visible
User Avatar
15 years ago
Auto-translated
I don't know how to increase the window size; it has a fixed size, and the start button is not visible.
Change the font size to Normal (100%) (right-click -> Resolution).
15 years ago
Auto-translated
And yet, gentlemen, I couldn't find a single working link for this program, which I am extremely disappointed about....(((((
In reply to Zuzuka
User Avatar
15 years ago
Auto-translated
Zuzuka
Gentlemen, I haven't found a single working link for this program, which is very disappointing...(((((
If only you knew how disappointed I am...
The author of this wonderful program is a talented programmer and an interesting person, AlexSpl.
To my great regret, at the beginning of this summer, he decided to erase his personal history... The only thing I know is that AlexSpl is, fortunately, still alive. But I still can't get in touch with him...

Statistics

Welcome our newest member: recijeb