|
|
BTB
Famous Hero
Moist & Creamy
|
posted February 22, 2020 11:58 PM |
bonus applied by Maurice on 04 May 2020. |
Edited by BTB at 21:23, 28 Jul 2023.
|
Heroes 3 Hacking Reference Guide (Upd: July 28, 2023)
http://btb2.free.fr/mods/h3/hacking.txt
This is a reference guide that I've cultivated over the last several years of relevant information for hacking this game. It's written to be accessible to beginners, but contains many examples of custom code that will be of value to intermediate and advanced modders alike.
As of this point, the guide is effectively finished. I've accomplished all that I set out to do with the game and feel that there is nothing more I have to add to it. I'll keep touching it up here and there and fixing any errors that are found, but no more information is planned to be added.
|
|
FirePaladin
Promising
Legendary Hero
DoR Modder
|
posted February 23, 2020 12:33 AM |
|
|
BTB said: Hi there, everybody! I want to take a moment to thank everyone in this community for all of the knowledge that they've shared and helped me on my path to modding this game myself. Unfortunately, none of this information is particularly centralized or easy to find, and searching through that massive "How to Edit HotA" thread is... well, a pain in the ass, to put it lightly. And so I've taken it upon myself to compile everything I learned from this forum into a handy reference manual.
http://abusemynipples.biz/misc/h3_hacking.txt
Hopefully, everyone here will find it useful, as well.
If you happen to give it a read - especially if your username happens to be RoseKavalier - maybe you can respond by answering a few of the outstanding questions that I was not able to in the guide:
• Can we reduce the Statue of Legion bonus rather than eliminating it?
• Something is clearly wrong about the data I have for specifying the creature IDs for horde buildings
• Where can the creature IDs for the "damper" effect be specified?
• Where can the creature IDs and the magnitude of the (Arch)Mage MP discount ability be specified?
• We know where the table for Enchanter spells is located; do we know where the one for Master Genies is?
• We know where to specify the probability of the Ghost Dragon "aging" ability - do we know where the probability of other creature abilities is stored?
• Can Angelic Alliance/Damned Armor spells be removed by setting the spell ID to FF?
• I made a few assumptions about creature bitflag settings (marked as "needs testing"); would appreciate it if someone more familiar with the code could verify them
Thanks to everyone who takes the time to look this over, and I hope someone finds it helpful.
Now this is actually amazing. I myself can't answer your questions, but thanks for the guide.
|
|
BTB
Famous Hero
Moist & Creamy
|
posted February 23, 2020 12:37 AM |
|
|
|
Bersy
Honorable
Supreme Hero
|
posted February 23, 2020 01:33 AM |
|
|
|
Hero_of_Light
Responsible
Supreme Hero
|
posted February 23, 2020 01:13 PM |
|
|
Can these changes be implemented via an ERA plugin, rather than exe manipulation? And if so, how?
____________
Not idly do the leaves of Lorien fall.
|
|
Bersy
Honorable
Supreme Hero
|
posted February 23, 2020 02:00 PM |
|
|
|
RoseKavalier
Admirable
Supreme Hero
|
posted February 23, 2020 03:12 PM |
|
|
Several of your questions are answered in the 'How to edit hota' thread.
e.g.
http://heroescommunity.com/viewthread.php3?TID=42152&PID=1437944#focus
http://heroescommunity.com/viewthread.php3?TID=42152&PID=1439697#focus
When I was still active in that thread I collated every page in a single offline html to search quickly for answers to repetitive questions. Maybe I posted it at some point, the last page I have offline is 48. Another downside of not having a modern forum architecture
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2
|
|
BTB
Famous Hero
Moist & Creamy
|
posted February 23, 2020 03:22 PM |
|
Edited by BTB at 17:37, 23 Feb 2020.
|
RoseKavalier said: Several of your questions are answered in the 'How to edit hota' thread.
http://heroescommunity.com/viewthread.php3?TID=42152&PID=1439697#focus
I did see how to edit the growth and tiers of the individual components, but I don't see anything about lowering the 50% bonus of the assembled statue in that post - just skipping the procedure.
Thank you, by the way. A *lot* of what is in that guide I wrote came from you.
(EDIT: I've updated the initial post to remove the questions that were answered and add a few new ones)
|
|
BTB
Famous Hero
Moist & Creamy
|
posted March 13, 2020 05:44 PM |
|
|
I've updated the guide again with a few things. Still hoping for some more answers to the questions in the initial post (also updated)
|
|
SergejBewbtits
Tavern Dweller
|
posted March 25, 2020 08:02 AM |
|
|
Hi, what a great guide. I started modding hota recently and I'm a complete looser in matters of programing and coding. This source of knowledge shows up in perfect timing!
I noticed that the creature id for gorgons seems to be 66 instead of 6a, therefore dragon flys and basilisks getting mixed up as well.
|
|
BTB
Famous Hero
Moist & Creamy
|
posted March 26, 2020 05:01 AM |
|
|
SergejBewbtits said: Hi, what a great guide. I started modding hota recently and I'm a complete looser in matters of programing and coding. This source of knowledge shows up in perfect timing!
I noticed that the creature id for gorgons seems to be 66 instead of 6a, therefore dragon flys and basilisks getting mixed up as well.
Correct. The indexes for Fortress creatures are out of order.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted March 26, 2020 07:07 AM |
|
|
Should'nt you perhaps fix them then?
|
|
BTB
Famous Hero
Moist & Creamy
|
posted March 26, 2020 07:23 AM |
|
Edited by BTB at 07:24, 26 Mar 2020.
|
Oh, I see what you mean.
Sorry, the language barrier is a snow sometimes. I'll fix it.
(EDIT: ...snow? I think the profanity filter here is on crack)
|
|
NimoStar
Responsible
Legendary Hero
Modding the Unmoddable
|
posted March 26, 2020 07:54 AM |
|
|
BTB, will you add the new stuff you learned from here to the guide? It would be neat to have most things known in one place rather than having to hunt for posts across forums.
____________
|
|
BTB
Famous Hero
Moist & Creamy
|
posted March 26, 2020 06:01 PM |
|
|
I will update it as I discover new things, yes.
|
|
avatar
Promising
Supreme Hero
|
posted March 26, 2020 07:59 PM |
|
|
BTB said:
Correct. The indexes for Fortress creatures are out of order.
Indexes of mixed Fortress creatures are:
102 - Gorgon
103 - Mighty Gorgon
104 - Serpent Fly
105 - Dragon Fly
Rest is in order
____________
|
|
BTB
Famous Hero
Moist & Creamy
|
posted March 26, 2020 09:01 PM |
|
Edited by BTB at 21:07, 26 Mar 2020.
|
More specifically:
68 = Serpent Fly
69 = Dragonfly
6A = Basilisk
6B = Greater Basilisk
66 = Gorgon
67 = Mighty Gorgon
I've updated the guide.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted March 27, 2020 08:50 AM |
|
|
BTB do you know if it would be possible to let a creature be immune to only level 3 spells or level 2 and 3 spells?
Or if it's possible to give a creature Armageddon immunity, but not Fire immunity? (Like Earth/Magma Elementals)
|
|
BTB
Famous Hero
Moist & Creamy
|
posted March 27, 2020 09:42 PM |
|
|
To your first question, no. your only flags are "immune to 1-3", "immune to 1-4", and "immune to all".
To your second question... sort of. For some reason, the "lightning immunity" flag also includes immunity to Armageddon as far as I'm aware (although this is untested).
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted March 27, 2020 11:49 PM |
|
|
Yeah the Armageddon immunity probably comes with Lightning Bolt and Chain Lightning Immunity as well sadly.
|
|
|