| How to edit HoMM 1 | This thread is pages long: 1 2 3 4 5 · «PREV |
|
silly_idea

 
Tavern Dweller
|
posted July 25, 2024 07:46 PM |
|
|
|
The colors of the enemy Lords and Queen are predetermined only in the Windows version. They are random in the DOS version.
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted July 25, 2024 07:51 PM |
|
|
|
I checked, at least, for the first scenario. They are always the same colors as Lords' flags in the menu.
|
|
silly_idea

 
Tavern Dweller
|
posted July 25, 2024 08:00 PM |
|
|
|
I made a mistake, they're random only in scenarios 5-7, where there is only one enemy. For some reason I thought it was in all of them.
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted July 25, 2024 10:16 PM |
|
Edited by AlexSpl at 19:04, 26 Jul 2024.
|
I suppose the developers intended to keep consistency of Lords colors throughout the campaign. It's interesting that they are random due to the aforementioned bug Even in the Windows version of the game.
Btw, you can use cheat codes by running the game with /d1 key (or /d2-9 for debug purposes, not interesting for a casual player).
Windows version
---------------
F3 - win scenario
F5 - loose scenario
F6 - give every spell (5 of each)
F7 - give 800 experience points
F8 - give 1 Troll and 1 Dragon
F9 - give 10 resources and 1,000 gold
F11 - give 2,999 movement points
F12 - open the entire map for a current player
DOS version
---------------
F2 - win scenario
F3 - loose scenario
F4 - (??? better to not press)
F6 - give every spell (5 of each)
F7 - give 800 experience points
F8 - give 1 Cavalry, 1 Unicorn, 1 Griffin, and 1 Dragon
F9 - give 10 resources and 1,000 gold
F10 - open the entire map for a current player
F11 - give 2,999 movement points
Also in debug mode you will be able to see some internal info about the tile you right clicked on and its coordinates.
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted July 26, 2024 07:27 PM |
|
Edited by AlexSpl at 19:46, 26 Jul 2024.
|
How to run Heroes 1 from GOG in debug mode.
First, if you play under DOS, you just have to type HEROES.EXE /d1
If you want to skip intro videos, type HEROES.EXE /i0 (or HEROES.EXE /i0 /d1 to skip intro and start the game in debug mode).
For owners of GOG version.
Open dosboxHOMM1_single.conf and change 'loadfix -4 heroes.exe' to 'loadfix -4 heroes.exe /i0 /d1'.
Now you can try cheat codes mentioned above.
Don't need fullscreen mode? Open dosboxHOMM1.conf and change 'fullscreen=true' to 'fullscreen=false'.
* * *
Quote: I suppose the developers intended to keep consistency of Lords colors throughout the campaign. It's interesting that they are random due to the aforementioned bug 
Btw, I checked and, indeed, Lords should have had unique colors. Red for Knight, Green for Barbarian, Yellow for Sorceress, and Blue for Warlock. You can verify it by studying corresponding data of starting conditions structures. But because of the bug I found some time ago, the game reads the first byte of wood resources, which indirectly triggers randomizing of colors in Lords scenarios.
|
|
heymlich

 
   
Famous Hero
|
posted July 26, 2024 10:38 PM |
|
|
thanks for the infos, I actually have the GoG version. My DOS version stopped working in Win11 for some reason and I was too lazy to sort it out
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted July 29, 2024 04:28 PM |
|
Edited by AlexSpl at 16:26, 31 Jul 2024.
|
Here's a fix resolving issues caused by the bug mentioned above, namely, the bug with 0 amount of wood, which causes freezes and randomization of flag colors (which never should have been random) in the Lords scenarios even with standard amount of wood.
3EFE4: 50 -> 4F
7A927: 50 -> 4F*
3EFDB: 53 -> 52
7A939: 53 -> 52*
I suppose you don't need the following (these fixes are for a function that seems to be never called), but to be sure -
42241: 50 -> 4F
86B66: 50 -> 4F*
42238: 53 -> 52
86B78: 53 -> 52*
*) These fixes may also be skipped, but it needs testing. [UPD] DOS4/GW uses some kind of a relocation table, so even if you change instruction's operand, which points to a memory location, to any (even random) address, the game will work anyway, as this operand is read from that relocation table. Still, it's better to be safe and change both addresses.
|
|
HAZUMU

 
Tavern Dweller
|
posted August 13, 2024 05:13 AM |
|
|
AlexSpl said: Here's a fix resolving issues caused by the bug mentioned above, namely, the bug with 0 amount of wood, which causes freezes and randomization of flag colors (which never should have been random) in the Lords scenarios even with standard amount of wood.
3EFE4: 50 -> 4F
7A927: 50 -> 4F*
3EFDB: 53 -> 52
7A939: 53 -> 52*
I suppose you don't need the following (these fixes are for a function that seems to be never called), but to be sure -
42241: 50 -> 4F
86B66: 50 -> 4F*
42238: 53 -> 52
86B78: 53 -> 52*
*) These fixes may also be skipped, but it needs testing. [UPD] DOS4/GW uses some kind of a relocation table, so even if you change instruction's operand, which points to a memory location, to any (even random) address, the game will work anyway, as this operand is read from that relocation table. Still, it's better to be safe and change both addresses.
I'd like to ask you how to implement remaining health on Gog, and how to make Grid and replace Hero tent on Gog
____________
|
|
AlexSpl

   
    
Responsible
Supreme Hero
|
posted August 13, 2024 03:18 PM |
|
Edited by AlexSpl at 15:31, 13 Aug 2024.
|
Quote: ... how to make Grid and replace Hero tent on Gog
You may try this version of h1grid for the original Windows version of the game. But first, replace H1Palette.bmp with this one (unzip first). Probably it will solve the problem with heroes/tents as well.
Quote: I'd like to ask you how to implement remaining health on Gog
I'll probably take a look at it later, but patching DOS version of the game is not my priority, otherwise I would have made TE patch for DOS version instead of Windows version Besides there are no convenient tools (at least, I know of) for DOS version of the game which can do the same things as patcher_x86 can.
|
|
unplayer

 
Tavern Dweller
|
posted March 26, 2026 07:47 PM |
|
|
translate
I would also like to translate it into my language [Portuguese-BR] to increase the Brazilian audience that knows almost nothing about this wonderful game. The only thing I can't do is change the strings inside heroes.exe. I would like some help as I am new to modding. Editing by HxD is not viable, as the characters in the Portuguese line are always larger than in English and there are also no accent characters, they need to be added. Anyone to teach me and help with the project?
____________
|
|
baronus

 
     
Legendary Hero
|
posted April 05, 2026 04:04 PM |
|
|
|
You dont need edit exe only txt files to replace eng. text.
|
|
Sandbird

 
Tavern Dweller
|
posted July 18, 2026 02:03 PM |
|
Edited by Sandbird at 15:21, 18 Jul 2026.
|
[Release] Heroes of Might and Magic 1 - Master Save Game Editor (Python)
[Release] Heroes of Might and Magic 1 - Master Save Game Editor (Python)
Hey everyone!
I’ve put together a fully automated, interactive Python command-line save editor.
Unlike older tools or static cheat tables, this script doesn't rely on brittle, hardcoded file offsets. Campaign (.CGM) and custom scenario (.GM1) files dynamically shift their data layouts depending on map assets and player colors. This editor fixes that by using a dynamic dynamic-anchor search system. By asking you for small bits of verification data (like your exact current gold or your hero's first stack quantity), it aligns itself perfectly to your unique save layout every single time.
🌟 Key Features:
-Global Economy Editor: View your live resources (Gold, Wood, Ore, Sulfur, Mercury, Crystals, Gems) directly on screen and alter any of them safely up to 65,535.
-Smart Character Search: Skips ghost tracking profiles inside campaign maps and hooks directly into your active hero data block.
-Dynamic Troop Adjustments: Update individual troop counts or batch-update all active slots to a custom value (with a built-in safety cap of 1,000 units to prevent integer combat overflows).
-Infinite Movement Points: Boosts maximum and active map movement to 32,000 points (FF 7C FF 7C), giving you unlimited map travel for the day.
-All Spells Unlocker: Automatically populates your magic book with all 29 Combat and Adventure spells sequentially, setting the cast counters to 99 each.
-Custom Artifact Spawner: Scans your hero's 14 item slots, lists what they are currently wearing, and lets you inject any legendary item (like the Ultimate Sword of Dominion) directly into any slot.
-Safe Automatic Backups: Automatically creates a .bak backup copy of your save file before executing any modifications.
💻 How to Install & Configure:
1. Download and install Python on your machine.
2. Create a new text file in your root game directory, paste the script code inside it, and name it editor.py.
3. Run: python editor.py
- The script will list all .CGM files in the "games" folder.
- Enter the number of the save you want to edit.
4. Follow the on‑screen menus to edit.
📖 Step-by-Step Tutorial Guide:
Before doing anything, completely close and exit out of Heroes 1 / DOSBox. If the game is left suspended in the background while you run the editor, it will instantly overwrite your file modifications with the legacy numbers stored in your PC's active RAM when you alt-tab back in.
Launch the Editor
Open your Command Prompt or Terminal, navigate to your script directory, and execute:
python editor.py
You will be greeted by the Master Modification Menu.
When you are done tweaking your wealth and characters, navigate back to the Master Modification Menu and select option 3 (Write Changes and Save File).
The code changes will translate down to your save file, a .bak file will be generated for security, and you are ready to launch your map!
Script: https://gist.github.com/Sandbird/1ad5ac02d0c60993a05e2c370b99b977
|
| |
|
|