|
Thread: Editing heroes globally. (HOMM3) | |
|
phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted December 10, 2015 12:56 AM |
|
|
Editing heroes globally (HOMM3)
I have a map I made myself where I applied these changes to the heroes:
* All heroes start with spellbook
* All magic heroes start with 6 statpoints (Not only elementalists)
* All heroes starting with artillery also starts with ballista
* Edited a few heroes starting skills or spells (Particularly Thunar and Erdamons)
Is it possible to make these rules for all maps or do I have to edit the maps individually?
|
|
Galaad


Hero of Order
Li mort as morz, li vif as vis
|
posted December 10, 2015 01:26 AM |
|
|
Why the Library?
____________
|
|
potmdehex

 
  
Known Hero
professional ERM™ scripter
|
posted December 10, 2015 02:39 AM |
|
|
There are several ways to achieve what you want, the two ways I would personally use and recommend are:
1:
Make a Heroes3 mod which applies the changes you want e.g when a map is started (or when you desire). This is easy because all the data you mention you wish to change is stored in the same data structure in memory, the hero structure (one for each hero).
2:
Make a map editor mod which can apply the changes you want by editing the h3m data. There are other ways to mod the map editor to achieve the same behavior, but simply having it edit the h3m data directly would be the easiest and should be extremely easy with h3mlib. It could for example be made so that whenever a map is saved, the desired changes are applied (e.g all heroes are given spellbook etc).
Galaad said: Why the Library?
Why not? Clearly best location in my opinion as the question makes no mention of anything related to WoG and MapHaven Guild doesn't really cover the range of possible answers well.
|
|
phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted December 10, 2015 09:19 AM |
|
|
Thank you potmdehex.
Could you be any more specific though? Which program(s) do I need? How do I make the mod? etc. I have have no experience with modding...
And yes I believe the library was the best place for this thread.
|
|
Salamandre

     
       
Admirable
Omnipresent Hero
Wog refugee
|
posted December 10, 2015 10:32 AM |
|
|
Frankly, all those changes are done in 3 seconds using wog-erm, and will be coded as stand alone mod which you will activate at each map and will not affect your game when you don't want it.
The other way proposed here is reversed engineering, which is something you will need years to learn. It is how Hota works. I have no idea why one would choose that if he only wants minor things. Is like trying to eat soup with a fork.
|
|
phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted December 10, 2015 10:57 AM |
|
|
Hmm WoG/ERM again eh?
Sadly they still don't work with HotA, so I don't know...
|
|
Salamandre

     
       
Admirable
Omnipresent Hero
Wog refugee
|
posted December 10, 2015 11:13 AM |
|
|
Because you think reverse engineering will create a miracle patch which will be compatible with Hota and future Hota modified exes releases? Then you didn't specify in your post that you want it for Hota, otherwise I bet answers would be different.
|
|
frostymuaddib

  
    
Promising
Supreme Hero
育碧是白痴
|
posted December 10, 2015 11:22 AM |
|
|
@Phoenix4ever
As Sal said, your best bet is ERM. There is something called plugin for HoMM3 HD Mod, that should allow you to mke changes to gameplay (at least that is how I understood that). However, I have no clue how to make therm, so maybe someone who knows will pop in and explain 
But still, just go with ERM
____________
"Occam's shuriken: when the answer is elusive, never rule out ninjas." -- Dr. Gordon Freeman (Freeman's Mind)
"lol" -- VERRIKER VON ERWINSSEN
|
|
phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted December 10, 2015 12:04 PM |
|
|
Well I assumed it would be possible in HotA too, even if I have to do it over again with each update.
I could just edit maps individually, but would of course be easier if it affected all maps.
|
|
Laser70

 
 
Adventuring Hero
|
posted December 11, 2015 07:46 PM |
|
Edited by Laser70 at 19:51, 11 Dec 2015.
|
If you have no experience with reverse engineering then you would want to use a script engine like Sal said. Script engines creates "bridges" into the game engine which lets you manipulate them at an easier language than using raw opcodes and mnemonics. If you have no reverse engineering experience then learn to use those scripts.
If you're only changing a few numbers in the game, then you can achieve that without scripts using a simple hex editor, but it's not something you would want to share with the community, the community probably want to have it customizeable. So if you're doing it for yourself, you could play around with a hex editor and try to change those numbers.
I have a more practical example for you. Download AutoHotKey and make a script in AutoHotKey with the capacity to edit things in all maps on your harddrive at the same time. there is no limit to what AutoHotKey can do when you learn to use it well.
|
|
phoenix4ever

 
     
Legendary Hero
Heroes is love, Heroes is life
|
posted December 11, 2015 08:34 PM |
|
|
AutoHotKey, hmm maybe I should check that out.
Well I don't want to reinvent the wheel, so reverse engineering seems a little too much. HotA is far better at that, but a few scripts or a hex editor might do the trick.
|
|
tax_375

 

Hired Hero
|
posted December 16, 2015 11:51 AM |
|
|
I have a similar question, is it possible to edit the original game files or HOTA files to enable heroes by default for example Galthran. If the answer yes, then which files should I edit, which files include these "rules" for default heroes?
|
|
Baronus

 
     
Legendary Hero
|
posted December 16, 2015 03:35 PM |
|
Edited by Baronus at 15:38, 16 Dec 2015.
|
|
tax_375

 

Hired Hero
|
posted December 16, 2015 04:49 PM |
|
|
Thank you, this is what I was looking for!
____________
I love getting Vampire's Cowl, but only when I am not with Necropolis
|
|
|