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 20 ... 26 27 28 29 30 ... 40 42 · «PREV / NEXT»
Parascus
Parascus


Adventuring Hero
posted October 07, 2022 10:56 PM

Hi Pheonix4Ever

I agree. I now make copies of my changes so I have a history of everything.

I played HOMM3 back in the early '90 ... And now I play it with my son. Great game!

If you find the reason why the speed is only 1 allthough I want 2, I appreciate any hint.

Best regards

Parascus
____________

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


Legendary Hero
Heroes is love, Heroes is life
posted October 07, 2022 11:36 PM
Edited by Phoenix4ever at 23:38, 07 Oct 2022.

Nice that you teach your son good values.
I sometimes play the game with a friend I have known for about 30 years, we also started playing in the late 90's.
Great memories with this game.

I don't really know about the issue you have with speed bonus, maybe BTB can help.

Have you heard about Horn of the Abyss or HotA? It's a fanmade addon that adds a lot of content, rebalancing and bugfixing to the game. Things relating to the new content can be hard to mod yourself though.
There is also HD Mod which adds a lot of quality of life changes to the game.
Might be nice for you and your son to check out.


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


Adventuring Hero
posted October 08, 2022 12:09 AM

I've heard about HotA but never tried it because until now I liked vanilla most. in the early 2000s i tried WoG but it might have been to early because the quality was not really high in my opinion.

I just installed the HD mod some days ago and I'm really suprised by the new possibilities. Some things i have to et used to (no dialogs but a display on the lower right). But it is great stuff and I try to mod this. I have replaced all hero pictures (some from the internet and some from my family). And now I try to "fix" things, e.g. skills and specialities which neither my son nor I would chose to play with (scounting, learning, etc.) Also I want to get rid of the nautical items/spells because we always play without water.

We have also some ideas regarding new spells like propaganda/bribe (spell to steal untis a´of a enemy hero nearby), moking bird (spell which attracts enemy units to a certain own unit), speciality mana vortex (like the wraith propertiy which steals mana from enemy hero), and so on. But I think this is something I only can dream of because allthough I can code in higher language and already have programmed in assambler (C64 in the eighties, yes I am old), I donÄt know if I ever can understand this program good enough to code.

Have a nice time

Parascus
____________

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


Famous Hero
Moist & Creamy
posted October 08, 2022 12:50 AM
Edited by BTB at 00:52, 08 Oct 2022.

Phoenix4ever said:
Okay, I think I have discussed static creature bonus with BTB before, but then we could'nt figure out how to add the speed bonus. But maybe BTB figured it out later and added it to his guide?


Yeah, that's exactly what I did. I rewrote the static bonus code to allow customizeable speed, health, and damage bonuses. Just check yon guide.

@Parascus

If you have a way of posting your .exe file, I can look at it. And if you say it's crashing, HD mod should be generating a crash log.

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


Famous Hero
Moist & Creamy
posted October 08, 2022 12:55 AM
Edited by BTB at 00:55, 08 Oct 2022.

Parascus said:
Supplementals:
1. I now have redone some of my changes, among those a change of the speciality of Valeska and Edric to static unit improvement. So far no crashes.
2. I have checked speed again and allthough I tried to increase it by to it only gives one more speed point. Don't know way.
3. Every hero adds some points to attack and defense additionaly. Is this because castle heroes are on castle ground with castle units?


So, just to clarify...

Assuming you're checking the unit's stats out of battle, this will add the native terrain bonus (+1 Attack and Defense) as well as the Attack and Defense of the hero AND any artifact bonuses to speed. However, it will NOT factor in any speed bonuses from the hero specialty or the native terrain speed bonus until you're actually in battle.

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


Legendary Hero
Heroes is love, Heroes is life
posted October 08, 2022 08:37 AM

I don't think so, but BTB can you tell me if a Leadership or Tactics specialty would be possible? (If Leadership is, it probably needs a morale cap increase as well.)

Maybe you can include in your guide which skills and spells are not possible to specialise in? (I don't think you have this info included anyway.)

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


Adventuring Hero
posted October 08, 2022 09:27 AM
Edited by Parascus at 09:28, 08 Oct 2022.

Hello,
@BTB: thanks for your offer to look into the exe. But I don't have an upload button. But anyway at this moment I don't have crashes and I will be careful and more scientific in future (not changing to much at one time).

I've done these changes to my code regarding static unit skill:
General change at 0E65AD:
8B 47 08 01 46 54 8B 47 0C 01 46 58 8B 47 10 8B 47 14 01 46 5C 01 46 60 8B 47 18 01 46 4C EB 1A
Valeska at 278448:
04 00 00 00 02 00 00 00 03 00 00 00 03 00 00 00 02 00 00 00 02 00 00 00 02 00 00 00 02 00 00 00 02 00 00 00 02 00 00 00
Edric at 278470:
04 00 00 00 04 00 00 00 02 00 00 00 02 00 00 00 02 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 0D 00 00 00

Here are is data I receive from the screen:

Valeska with 2/2/1/1 and no artifact out of battle with Archers:
  Attack  6(11)
  Defense 3(8)
  Damage  4-5
  Health  10(12)
  Speed   4(5)
In battle:
  Attack  6(12)
  Defense 3(9)
  Damage  4-5
  Health  10(12)
  Speed   4(6)

Edric with 2/2/1/1 and no artifact out of battle with Griffins:
  Attack  8(12)
  Defense 8(12)
  Damage  5-8
  Health  25(27)
  Speed   6(7)
In battle:
  Attack  8(13)
  Defense 8(13)
  Damage  5-8
  Health  25(27)
  Speed   6(8)

It seems that adds hero attack and defense as well as the static unit speciality already outside the battle. Also the Additional damage and health is shown outside. I do not know, why it has one speed addition outside a battle. Inside a battle it has one additional attack and defense while damage and health remains the same. The speed makes more funny things ...

@Phoenix4Ever: You can change the leadership a little bit by changing code/values at 0E3C81. As you already mentioned the max of 3 would restrict the effect. Here the section with "LUCK & MORALE" comes in handy. Also I found the addresses 064586, 0645A0, 064754, 06477C, 0645AA, amd 06479E in the hacking guide which controls maximum morale (twice), minimum morale (twice), and the divisors for morale event of positive (double strike) or negative (freeze) morale effect. But I did test it by myself at this moment.

Best Regards

Parascus


____________

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


Legendary Hero
Heroes is love, Heroes is life
posted October 08, 2022 12:24 PM
Edited by Phoenix4ever at 12:28, 08 Oct 2022.

Thanks Parascus, I know about upping the morale and luck caps. I already changed luck to +6, I'm a bit more hesitant with morale, as it might make Castle too OP. I might change the morale cap to +4 or +5 though.

No, I was thinking if it was possible to implement a Leadership or Tactics hero specialty, but probably not.

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


Adventuring Hero
posted October 08, 2022 02:20 PM

Ah, sorry. I'm sometimes confused by speciality and skill. Unfortunatelly I don't know how to implement this.

Best regards

Parascus
____________

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


Famous Hero
Moist & Creamy
posted October 08, 2022 03:53 PM
Edited by BTB at 15:57, 08 Oct 2022.

Phoenix4ever said:
I don't think so, but BTB can you tell me if a Leadership or Tactics specialty would be possible? (If Leadership is, it probably needs a morale cap increase as well.)

Maybe you can include in your guide which skills and spells are not possible to specialise in? (I don't think you have this info included anyway.)


It's theoretically possible to specialize in any skill, really. But your question is more "which skills already have the necessary infrastructure written into the code?" and the answer is most of them, including Leadership. Every skill listed in the "Skill Specialties" section has a check in the code for a specialist, many of which are just unused. For Leadership, it would just be a simple matter of rewriting the scaling level bonus part into whatever you want (+1, double effect, etc.) just as I did with Logistics specialists.

Tactics is just a question mark because I've never looked into that routine at all and, for that matter, what exactly would a Tactics specialty even do?

@Para

Your speed bonus isn't working because you swapped the positions of two opcodes. Look at your code again and then look at my example.

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


Adventuring Hero
posted October 08, 2022 04:15 PM
Edited by Parascus at 16:21, 08 Oct 2022.

@BTB: Thanks! Now it's working. I had missed a row of your code in:

8B 47 08 01 46 54 8B 47 0C 01 46 58 8B 47 10 01 46 50 8B 47 14 01 46 5C 01 46 60 8B 47 18 01 46 4C EB 1A

Have a nice day

Parascus
____________

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


Legendary Hero
Heroes is love, Heroes is life
posted October 08, 2022 05:24 PM
Edited by Phoenix4ever at 17:25, 08 Oct 2022.

@BTB The Leadership specialty should just add +1 to morale.
I guess a Luck specialty that adds +1 luck should also be possible then, might be useful for Melodia.

I guess a Tactics specialist would just add +1 to the range, so 4/6/8 instead of 3/5/7, might not be very useful though.

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


Famous Hero
Moist & Creamy
posted October 08, 2022 05:32 PM

Phoenix4ever said:
@BTB The Leadership specialty should just add +1 to morale.


0E3C6F > 43 EB 2C

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


Legendary Hero
Heroes is love, Heroes is life
posted October 08, 2022 05:33 PM

Thanks!

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


Famous Hero
Moist & Creamy
posted October 08, 2022 05:47 PM

For luck:

0E3A19 > FF 45 0C EB 28

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


Adventuring Hero
posted October 09, 2022 11:55 AM

Hi BTB,

I now decided to remove the Fear-Spell of azure dragon because I haven't seen this creature for a long long time. So I have some free bytes for the frist aid tent expansion without removing diplomacy which I use frequently. Right now my first aid tent removes spell effects but I only get one damage point removed and I asume that is because I still do not have the "FIRST AID HEALTH BUFFS" implemented. I want to put this where the Fear-Spell was and could easily insert it at 064923. But I also want to have the defense of the Pikemen whose code would be at the same place. That brings up my question to the following section of your guide:

------ -------------------------------------------------------------------------
0790C3 ; 2x DEFENSE BONUS WHEN DEFENDING
------ -------------------------------------------------------------------------
E8 5BB8FEFF call 464923 ; -> free space (Fear)

--------- -------------------------------------------------------------------------
064923~31 ;  (EXPANDED SPACE - OVERWRITES FEAR)
--------- -------------------------------------------------------------------------
83 7B 34 01 cmp [ebx+34],01 ; is unit ID <= 01? (Pikeman or Halberdier)
...

I see that 464923 is 064923 with the executable offset. But how do you calculate the address to 5BB8FEFF?

Best regards

Parascus
____________

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


Famous Hero
Moist & Creamy
posted October 09, 2022 04:09 PM

Parascus said:
I see that 464923 is 064923 with the executable offset. But how do you calculate the address to 5BB8FEFF?


I use Cheat Engine. Calculating ASM jumps by hand is just pure insanity.

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


Adventuring Hero
posted October 09, 2022 07:31 PM

Hi BTB,

after several attemps I managed to get Cheat Engine 7.4 installed ... but I have no clue what to do. I thought there would be a function where I can put my 464923 and I would get my address. Did I miss this functionality or is it something I would have to sync with the running application and than trace via debugging?

Best Regards

Parascus
____________

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


Famous Hero
Moist & Creamy
posted October 10, 2022 12:05 AM

First click on the button in the upper left (the magnifying glass) to attach Cheat Engine to Heroes 3. And then click on the button that says "memory view". From here, you can edit the assembly commands directly, which the program will then assign the correct hex code for.

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


Adventuring Hero
posted October 10, 2022 08:52 PM

Hi BTB,

thanks for the tip. But I'm now a little lost ... maybe because I'm no nativ speaker. I tried to implement the First Aid Skill as described in your guide but I don't get the expected results.

The first aid skill is only working on advanced level and there is no health improvement but a single HP regenerated.

My changes are:
Remove Fear to get free space
064920: C2 04 00

First Aid Skill (these are the spells to heal?)
23ea98: 2A 2D 34 36 32 3B 3D 3E 46 47 49 4A 4B 00 00 00

First Aid Always On Target (for convenience)
07391B: 09
074605: 75

Healing of Magical Effects allthugh no HP missing (?)
07387A: 00
07609B: 00

Revoke spell effects:
0E4B86: D8 05 DC B9 63 00 8B E5 5D C3 55 8B EC 83 EC 08 57 85 F6 74 58 0F BE 81 E4 00 00 00 84 C0 74 4D 3C 01 74 32 3C 02 74 17 31 FF 0F BE 87 98 EA 63 00 50 8B CE E8 71 F6 F5 FF 47 83 FF 04 7C EB 31 FF 0F BE 87 9C EA 63 00 50 8B CE E8 5A F6 F5 FF 47 83 FF 04 7C EB 31 FF 0F BE 87 A0 EA 63 00 50 8B CE E8 43 F6 F5 FF 47 83 FF 05 7C EB C7 45 FC 40 40 00 00 5F EB 89 90 90 90


First Aid Adding Health:
0E671D: E8 01 E2 F7 FF 5F
064923: B9 B8 03 67 00 8A 44 39 10 C0 E8 04 A8 01 74 15 8A 44 39 04 40 8B 4D FC 50 8A 81 E4 00 00 00 59 0F AF C1 01 C3 8B 46 4C 01 D8 C3

As you can see I have changed the space to the area where the fear spell was. I think i figured out how to calculate the target address: (fix target address - (fix caller address + 5)) and the result in hex in reverse (big/little endien).

Do you have a clue what I have done wrong? Is the information sufficient?

Kind regards

Parascus
____________

 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 20 ... 26 27 28 29 30 ... 40 42 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0952 seconds