Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Library of Enlightenment > Thread: Editing heroes globally. (HOMM3)
Thread: Editing heroes globally. (HOMM3)
phoenix4ever
phoenix4ever


Legendary Hero
Heroes is love, Heroes is life
posted December 10, 2015 12:56 AM
Edited by phoenix4ever at 00:59, 10 Dec 2015.

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?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Galaad
Galaad

Hero of Order
Li mort as morz, li vif as vis
posted December 10, 2015 01:26 AM

Why the Library?
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
potmdehex
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
phoenix4ever
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
phoenix4ever
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...

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
frostymuaddib
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

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
phoenix4ever
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Laser70
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
phoenix4ever
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
tax_375
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?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Baronus
Baronus


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

You can also edit exe file and herotraits.
Look at this:
http://www.celestialheavens.com/forum/7/14543

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
tax_375
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

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0397 seconds