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 42 pages long: 1 10 ... 11 12 13 14 15 ... 20 30 40 42 · «PREV / NEXT»
BTB
BTB


Famous Hero
Moist & Creamy
posted May 09, 2021 05:39 AM

Was looking into making Resistance artifacts require the skill like the other skill boosters do, and I believe I've found the culprit: the short jump at 4E496E (to 4E49AC) needs to be a long jump to 4E4A87. Annoyingly, this can't be fixed easily in-line, so the easiest solution is probably just to jump to free space from 4E4964 to free up the space for a longer jump.

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


Responsible
Supreme Hero
posted May 09, 2021 11:22 AM
Edited by AlexSpl at 11:23, 09 May 2021.

Quote:
Could you give us a brief introduction on how to use those plugins?

Unpack a plugin (.dll file) from .zip to _HD3_Data\Packs\{Your plugin folder}, then add it in the launcher -


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


Famous Hero
Moist & Creamy
posted May 10, 2021 03:02 AM

I'm gonna need to update this guide again; knocked out a LOT in the last week and also found a few errors with what's in there... so I apologize in advance for those. Let me know in the meantime if something doesn't work as expected.

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


Famous Hero
Moist & Creamy
posted May 15, 2021 03:06 PM
Edited by BTB at 08:30, 18 May 2021.

Starting resources for each difficulty level:

Easy

278170 Wood
278174 Mercury
278178 Ore
27817C Sulfur
278180 Crystal
278184 Gems
278188 Gold

Normal

27818C Wood
278190 Mercury
278194 Ore
278198 Sulfur
27819C Crystal
2781A0 Gems
2781A4 Gold

Hard

2781A8 Wood
2781AC Mercury
2781B0 Ore
2781B4 Sulfur
2781B8 Crystal
2781BC Gems
2781C0 Gold

Expert

2781C4 Wood
2781C8 Mercury
2781CC Ore
2781D0 Sulfur
2781D4 Crystal
2781D8 Gems
2781DC Gold

Impossible

2781E0 Wood
2781E4 Mercury
2781E8 Ore
2781EC Sulfur
2781F0 Crystal
2781F4 Gems
2781F8 Gold

Got two more things...

One, we can branch away from the code for Catapult and Arrow Tower imitative to also grant initiative to the Ballista. Makes it act first and also grants combat initiative to heroes with Ballistcs (and a ballista).

Two, I had an idea for having the First Aid skill instead increase the health of the tent rather than its (kinda snowty) normal effect... just set it to always heal 100 HP. Another idea would be to have it increase the health of all units... say by the tier of the unit or something. both sets of code would look similar and I'm basically sitting on the finished product, just kinda looking for some input on which one sounds like the better idea.

EDIT: three, I understand this is something HotA already does, but I figured out how to make the Inferno Castle Gate take you to ANY town.

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


Legendary Hero
Heroes is love, Heroes is life
posted May 18, 2021 09:18 AM

BTB said:
I understand this is something HotA already does, but I figured out how to make the Inferno Castle Gate take you to ANY town.

No, it does'nt.
Castle Gate is pretty much useless, when your main hero has Advanced TP, also in HotA. (Part of the reason why I don't like OP TP.)

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


Known Hero
posted May 18, 2021 05:05 PM

BTB said:
Another idea would be to have it increase the health of all units... say by the tier of the unit or something


This.
How about, basic-expert can also resurrect lvl1-3 units.. ? (since their HP are so low)

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


Famous Hero
Moist & Creamy
posted May 18, 2021 06:54 PM
Edited by BTB at 18:55, 18 May 2021.

Phoenix4ever said:
BTB said:
I understand this is something HotA already does, but I figured out how to make the Inferno Castle Gate take you to ANY town.

No, it does'nt.
Castle Gate is pretty much useless, when your main hero has Advanced TP, also in HotA. (Part of the reason why I don't like OP TP.)


Oh. Well...

(HD_SOD.dll) 03AD36: 75 5D -> EB 34

There you go, then.

purerogue said:
How about, basic-expert can also resurrect lvl1-3 units.. ? (since their HP are so low)


Resurrection is a bit more complicated and actually kind of unnecessary - a boost of just a few HP is effectively a 50% health boost to many T1 units, so we don't need it to be any more effective on them.

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


Legendary Hero
Heroes is love, Heroes is life
posted May 18, 2021 08:18 PM

BTB said:
Oh. Well...

(HD_SOD.dll) 03AD36: 75 5D -> EB 34

There you go, then.

Thanks and sorry if that came of a bit harsh.
So from the Castle Gate you will be able to travel to any town you own? That certainly is an Inferno buff.

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


Famous Hero
Moist & Creamy
posted May 18, 2021 08:30 PM
Edited by BTB at 21:31, 18 May 2021.

No offense taken, m'dude o/

And yes, it will let Castle Gates teleport you to any town you own.

EDIT: does anyone care to know how to code a plugin-less Witch Hut Refusal patch?

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


Famous Hero
Moist & Creamy
posted May 18, 2021 11:04 PM

0E5593 is where the minimum spell cost (1) is set; set this to 0 and it will respect spell costs of 0 in SPTraits.txt (handy for View Air/Earth).

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


Legendary Hero
Heroes is love, Heroes is life
posted May 18, 2021 11:26 PM

How are you able to figure out all this so fast?, soon you will have cracked the code of the entire game.
Next start working on HotA.

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


Famous Hero
Moist & Creamy
posted May 18, 2021 11:43 PM

Disassemblers are REALLY helpful.

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


Responsible
Supreme Hero
posted May 19, 2021 01:37 AM

Quote:
EDIT: does anyone care to know how to code a plugin-less Witch Hut Refusal patch?

There is no easy way to do so, but a plugin is technically a patch, so you may find addresses you need by looking at its code (link). Then you have to find enough space in the code to write your own commands.

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


Famous Hero
Moist & Creamy
posted May 19, 2021 03:23 AM

AlexSpl said:
Quote:
EDIT: does anyone care to know how to code a plugin-less Witch Hut Refusal patch?

There is no easy way to do so, but a plugin is technically a patch, so you may find addresses you need by looking at its code (link). Then you have to find enough space in the code to write your own commands.


Sorry if I was unclear... I did code it myself, pretty easily. Was just asking if anyone wanted to know how.

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


Responsible
Supreme Hero
posted May 19, 2021 04:54 PM

Well, in the case of Witch's Hut, you indeed don't need much code. But I'm interested in your implementation, particularly in that how you handle user's choice (pressing OK, Cancel buttons).

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


Famous Hero
Moist & Creamy
posted May 19, 2021 08:17 PM

AlexSpl said:
Well, in the case of Witch's Hut, you indeed don't need much code. But I'm interested in your implementation, particularly in that how you handle user's choice (pressing OK, Cancel buttons).


0A7E64: 01 > 02 ; add cancel button

0A7E85:

E9 EF A2 FF FF  jmp 4A2179 (free space from Fountain of Fortune object)

0A2179:

8B 0D D0 92 69 00     mov ecx,[006992D0]
81 79 38 05 78 00 00  cmp [ecx+38],00007805
0F 85 03 5D 00 00     jne 004A7E8F
6A 01                 push 01
56                    push esi
8B CB                 mov ecx,ebx
E9 F4 5C 00 00        jmp 004A7E8A

I did some playing around and it looks like any time the player makes a choice - at least a yes/no one - the answer always goes to the same address. So those first two lines show up a lot in the code to check for responses.

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


Responsible
Supreme Hero
posted May 19, 2021 11:11 PM

If you need free space (I assume you optimized the code of Fountain of Fortune), it's better to create your own code section. Then you will be able to jump there without creating free space in the original code.

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


Famous Hero
Moist & Creamy
posted May 19, 2021 11:14 PM

I got rid of the randomization on the Fountain of Fortune and set it to always +1 Luck.

Having my own free space would be nice, but there's plenty of code-hungry things I've been all too happy to get rid of (Eagle Eye, Armor of the Damned, the Aurora Borealis effect... etc.)

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


Responsible
Supreme Hero
posted May 19, 2021 11:22 PM

You can optimize the original code, there is plenty of code you can rewrite leaving the space for your own code, of course. But it's a lot of work. Creating your own code section is simpler than that. You even can do it manually by adding actual free space in the original executable and editing the header of the executable, but there are programs which allow you to automatize this process.

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


Famous Hero
Moist & Creamy
posted May 19, 2021 11:31 PM

AlexSpl said:
You can optimize the original code, there is plenty of code you can rewrite leaving the space for your own code, of course. But it's a lot of work. Creating your own code section is simpler than that. You even can do it manually by adding actual free space in the original executable and editing the header of the executable, but there are programs which allow you to automatize this process.


Is adding free space to the original executable something that would work in an .ips patch?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 42 pages long: 1 10 ... 11 12 13 14 15 ... 20 30 40 42 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0767 seconds