Skip to content

Posts from I was itching to play. Autosave. Main artifact. Friendly monsters. Perl+

No ratings yet — be the first to rate!
15 years ago
Auto-translated
If you don't understand anything at all, at least understand this: the main artifact is on every map.
I've loved Heroes 2 for a long time and with great passion. I'm proving it.
Because of it:
I wasted a lot of time - probably a whole year.))\br>I messed up my brain.
I missed several sessions.
I ruined a great love.
A lot of sex.
But that's just a side note, and we won't discuss it, right?:o

All the utilities are written in Perl, so if you don't have it yet, you will need a distribution.
Utility #1. Show the main artifact. For simple and extended versions.
You can specify the file path as a parameter; it will output the coordinates and number to the console. You can link the coordinates to the terrain in the map editor.
Example:
showshift.pl az01.GM1
9-12-1-az01.GM1
Utility #2. Save autosaves. For simple and extended versions.
Saves each autosave with a unique name.
Example:
zm01_w1_d1.gm1
zm01_w1_d2.gm1
zm01_w1_d3.gm1
zm01_w1_d4.gm1
zm01_w1_d5.gm1
zm01_w1_d6.gm1
zm01_w1_d7.gm1
zm01_w2_d1.gm1
zm01_w2_d2.gm1
zm01_w2_d3.gm1
zm01_w2_d4.gm1
zm01_w2_d4ver1.gm1
zm01_w2_d4ver2.gm1
zm01_w2_d4ver3.gm1 - ver - means that I completed this day several times, that is, I replayed it.

If anyone needs it, there is a separate version that allows you to autosave autosaves from any game where they exist.:)

Utility #3. Delete autosaves. For simple and extended versions.

Utility #4. Rename newgame.g** based on the position of the main artifact in the cycle For simple and extended versions.
Sometimes I want a specific main artifact on the map. And sometimes I want it to be closer.
Simply editing the save in the editor is very unsportsmanlike and lame.
But generating the map several times and saving it to newgame is not lame.:o
Examples:
d_11-52-6-VIKINGS.MP2.gm1
d_21-50-6-VIKINGS.MP2.gm1
d_28-49-2-VIKINGS.MP2.gm1
d_35-56-2-VIKINGS.MP2.gm1
d_9-28-2-VIKINGS.MP2.gm1

Utility #5. Show friendly monsters and the main artifact For simple and only Medium (I'll get around to making a universal one).
The map name is passed as a parameter.
Stupid black faces - evil monsters.
Stupid white faces - good monsters.))\br>The number is the location and number of the main artifact on the screenshot - 1.
The left part is linked to the terrain, the right part is without linking to make it easier to find them (the good ones).

Do you recognize the Vikings map?))\br>
And! *Drumroll!*
The culmination of idiocy.
Utility #6. Automatic clicker for Heroes to create new games and save them to Newgame. Add the extension ".au3" to the file. Made to work in conjunction with the newgame renaming utility (#4). To run it, you need the autoit program.
Create a map, run the scripts (6 and 4), and go to sleep.

That's it. Something like that.
It is possible that my tools will not work with your version of Heroes. With mine, everything is fine.
It is possible that there are errors in the tools.
All tools are script-based. That is, you can open them in any editor and see how they are arranged. And middle school students can even modify them to their liking because everything is simple)).
The most important thing:
All tools must be copied to the folder with the saves and run from there.
It is best to do this from Far. After launching, press ALT+F9, and it will stretch to the entire screen (all the coolest hackers do that, haha).
Write all questions here.
If something needs to be fixed, I will change this post.

Added 10 minutes ago
Yes, by the way, I know that many of the above have already been implemented.
But, I did it "for myself" :D. Exactly as I need it.
I got a lot of fun and experience when I wrote all this, and next time I will do everything even faster and better. And that's much more interesting than the thousandth time (no exaggeration) conquering the Vikings.
And also, I'm afraid to download executable Windows files and run them (yesterday I tried to download a rare music torrent, and there was an exe file of 90MB with a RAR icon, but not a RAR file) and I advise you not to)), - it's better to write your own.))

Statistics

Welcome our newest member: recijeb