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 > Heroes 3.5 - WoG and Beyond > Thread: Heroes 3 Hacking Reference Guide
Thread: Heroes 3 Hacking Reference Guide This thread is 2 pages long: 1 2 · NEXT»
BTB
BTB


Adventuring Hero
posted February 22, 2020 11:58 PM
Edited by BTB at 17:43, 13 Mar 2020.

Heroes 3 Hacking Reference Guide

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

We know where the table for Enchanter spells is located; do we know where the one for Master Genies is?

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

Can map objects be made to increase luck/morale by more than +1?

Can spells be made to cost 0 at basic/advanced/expert/whatever level? Making this change in SPtraits.txt doesn't seem to work.

Can the effects of the grail buildings be edited?

Can resource silo production be edited?

Can the "Titan's Thunder" spell be removed?

Can "mass effect" spells be made to require basic or advanced level rather than expert?

Finally, there are several creature abilities that we still do not know how to set/edit, including:

Hate
+1 Morale (Angels)
-1 Luck/Morale (Devils/Bone Dragons
2nd/Infinite Retaliations (Griffins)
Weakness (Dragonflies)
Jousting/Immunity (Cavaliers/Pikemen)
Deathblow (Dread Knights)
Immunity to blind (Troglodytes)
No ranged penalty (Sharpshooters)
Magic channel  (Familiars)
Rebirth (Phoenixes)
Aura of Resistance (Unicorns)

(Hate is probably the most important of the above, as I've interest in fixing it so that Giants and Red/Black Dragons all hate each other properly)

Thanks to everyone who takes the time to look this over, and I hope someone finds it helpful.

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


Famous Hero
Making map for HotA then WoG
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.

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


Adventuring Hero
posted February 23, 2020 12:37 AM

You're welcome!

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


Honorable
Supreme Hero
posted February 23, 2020 01:33 AM

Thank you for nicely categorized work!
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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

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


Honorable
Supreme Hero
posted February 23, 2020 02:00 PM

HoL, it's a reference for hex-editing. ERM manual has most of its information in decimal form.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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

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


Adventuring Hero
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)

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


Adventuring Hero
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)

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

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


Adventuring Hero
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.

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


Legendary Hero
Heroes is love, Heroes is life
posted March 26, 2020 07:07 AM

Should'nt you perhaps fix them then?

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


Adventuring Hero
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)

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


Responsible
Supreme 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.
____________
Discover H4 Greatest Mod!
https://www.moddb.com/mods/greatest-mod/downloads
(Also biggest of only two 2 mods for HOMM IV)

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


Adventuring Hero
posted March 26, 2020 06:01 PM

I will update it as I discover new things, yes.

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


____________

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


Adventuring Hero
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.

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


Legendary Hero
Heroes is love, Heroes is life
posted March 27, 2020 08:50 AM
Edited by phoenix4ever at 11:50, 27 Mar 2020.

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)

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


Adventuring Hero
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).

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

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 2 pages long: 1 2 · NEXT»
Post New Poll Post New Topic Post New Reply

Page compiled in 0.0456 seconds