Skip to content

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

4.8 (4 ratings)
User Avatar
#542
Auto-translated
2Monza: Interesting...
If you launch the game using a shortcut, check the shortcut's properties (it might not be launching heroes3.exe). Also, check the Task Manager: is heroes3.exe actually running? And does it detect the processes heroes.exe and hmm2pl.exe? If not, what operating system are you using?
#543
Auto-translated
I've tried both, and different versions of Heroes (English 3.2, Russian 3.1 and 4.0) - nothing helps. It used to work, but it stopped working around version 1.0. Even like this: first, version 1.0 also worked, and then it stopped, only 0.6 works. P.S. I understand it's silly, but it doesn't work, I've tried reinstalling Heroes, with and without the patch, and tried running it with a batch file and directly. The only thing I haven't tried is running it in fullscreen mode. Added after 11 minutes: I tried putting the "traffic light" in the same folder - still no effect. To AlexSpl: I've run it both with a shortcut and directly with heroes3.exe. Of course, it's in the processes. I've selected all possible versions in the menu - it doesn't work. But I haven't tried h1 and h2.
User Avatar
#544
Auto-translated
By the way, AmberSoler has an incorrect formula for converting land MP to sea MP :) It turns out that with the Admiral's Hat, you can get over 10000(!) sea MP.

2Monza: I tried using FindWindow and GetWindowTask (GetWindowThreadProcessId)! But the latter functions return an incorrect PID.

Added after 1 hour 9 minutes
I found the bug :) I'll fix it tomorrow (as soon as I download winnt.h).
#545
Auto-translated
Why is it only working so poorly for me?
Is there a way to work around it in the meantime?
How does the error manifest itself?
User Avatar
#546
Auto-translated
2Monza: Try this version.
1) Replaced GetLastError=0 with hProcess<>0;
2) Improved the speed of Hero search.

If it doesn't help, although it should, I'll send you a debug version by email.
#547
Auto-translated
Seems to be working. Thanks.
Another suggestion: calculate MP for the next day.

A couple of bugs:
After starting and searching for the process, the form doesn't automatically resize to fit the hero table; I had to uncheck and recheck the box in the menu.
Found a hero, Verdish - MP = 2162688, MaxMP = 1114447
How do I interpret this? ))

Loaded another map, hero Broghild MP=1114112, MaxMP = 11114214 (such large values can be ignored, as MP lies in the range from 0 to, let's say, 2000)
Moved one step to the right along the road, clicked twice with the mouse on the hero's name, MP = 1485, MaxMP = 1560.
Moved one more step to the right, MP = 1410 - seems to be working)).
User Avatar
#548
Auto-translated
Not just an idea, but it actually works :) I implemented a filter for "bad" values. Ideally, MP can be any large number (<=DWORD), but in practice, you're unlikely to encounter that. However, for example, the "Cheats" menu's infinite turns actually give 299999 MP.

You could also monitor: primary and secondary skills, the skill tree for secondary skills, the quantitative and qualitative composition of the army, the level and class of the Hero, morale and luck, the Hero's alignment, but that's already bordering on cheating, so I won't implement it.

I'm all for understanding the mechanics of Heroes... I'd be happy to implement hiding the MP of other Heroes, but... all Heroes are present in RAM: Gelu, Kilgor, Dracon, etc. You can also monitor the starting army, but it seems like you can already see everything from the MP value.
#549
Auto-translated
Hmm, what’s wrong with monitoring the skill tree for secondary skills? Besides, such a program already exists: /topic/2397/
User Avatar
#550
Auto-translated
The secondary skills tree is a great addition. It's especially interesting when it comes to the second set of heroes...

Орден Фениксахаризматический :) лидер
#551
Auto-translated
It would be best to stop further development.
Otherwise, it will be impossible to play online (because you can determine the army composition, the amount of mana, and so on).
A few suggestions, requests, and comments.
1. Add instructions, as I don't remember which button to hold down to display morale.
2. Remove all the "angelic" words (const).
3. Is it possible to automatically recognize the version of Heroes? (for this, a separate move monitor needs to be created for H1, H2, and H3).
4. The Heroes window and the traffic light don't fit on my monitor; can it be made a little narrower?
5. Search for Heroes not by file name but by window title (the new patch will create another exe, but with a different name, so the traffic light will not work).
6. Allow re-searching for Heroes (now, if you restart Heroes, you need to restart the traffic light as well - it's inconvenient).

That's all.
User Avatar
#552
Auto-translated
2Qwerty: I have fulfilled your request.

I present to your attention the Skill Tree for HoMM II + everything else, only better :)

The program includes:
1) Morality and Luck Indicator 2.81;
2) MP Monitor for HoMM I-III;
3) Skill Tree Planner for HoMM II.

To use the Planner, in the "Settings" menu, select the "HoMM II (2.1)" version and click "Start". A new item "Calculation Depth" will appear in the "Settings" menu. Select the desired depth (5, 10, 15 levels - OK, but 20 levels - about 8-10 minutes!)

Enter the Hero's name, click "Find". If you find "garbage" instead of the Hero (although I installed a filter), double-click on the Hero's name in the list until the correct one appears. To display the Skill Tree, double-click on the Hero's NUMBER. Wait a little. The Skill Tree will appear in another window.
User Avatar
#553
Auto-translated
1) Now, the skill tree can be refreshed by double-clicking on the hero's number again; 2) Other bugs have been fixed. I will implement the search for the desired skill later.
In reply to AlexSpl
User Avatar
#554
Auto-translated
AlexSpl;197788


The program includes:
2) MP Monitor for HoMM I-III;


Dear AlexSpl, would it be possible to improve the program as follows:

1. It would be very convenient if the program could automatically find all heroes and display their MP and maxMP in a table. (by clicking the "Find All" button)

2. It would also be very convenient if there was an option to remove all heroes from the list (with one "Delete All" button), and also to activate a "Delete" button for this purpose, but for one hero at a time.

3. The program does not currently find the following heroes:
Actirius, Crag Hack, Troyan, Rasmont (tested on several maps)

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

ТУРНИРЫ ПО ГЕРОЯМ 1!:smile13:
User Avatar
#555
Auto-translated
The new version (see the previous post) should find all heroes (I fixed the name check). Any hero can be removed from the list by first selecting them in the list and then clicking "Delete".

2VDV_forever: Thank you. Trojan and Rasmont are indeed not found. And Actirius is actually Arturius, Crag Hag is Crag Hack. Trojan and Rasmont have garbage left by the localizers after their names, which is why they are not found, but I will fix it anyway.

In version 2.82, unfortunately, I forgot to include the MP monitor for the First and Third Heroes. I will also fix that. As they say, we find some things, and we lose others :)
User Avatar
#556
Auto-translated
Version 2.9
1) Implemented the search for the desired skill (see the image);
2) Now all Heroes must be present;
3) All Heroes can be removed from the list by right-clicking to open the context menu.

P. S. The plan is to create a third version, which will include:
1) A skill tree for Heroes III (hello vbn);
2) A predictor of primary skill growth for Heroes I;
3) A morality and luck indicator for Heroes I.

The version will be released early next week. This will conclude the project. I just want to play my favorite Game.