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: How to edit HotA?
Thread: How to edit HotA? This thread is 84 pages long: 1 2 3 4 5 ... 20 40 60 ... 80 81 82 83 84 · «PREV / NEXT»
AlexSpl
AlexSpl


Responsible
Supreme Hero
posted May 18, 2020 04:14 AM
Edited by AlexSpl at 04:15, 18 May 2020.

Try to set 0. You'll get two descriptions - Still Eye of the Dragon +1, and -1 Temporary until next battle. But this decription is incorrect, your Luck bonus will be permanent. It's just how the game handles extra Luck, about which it doesn't know.

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


Known Hero
posted May 18, 2020 04:27 AM

Ah, yeah, I ran into that when I was running tests while looking for the luck function in the code.

I'll think about how I'm going to end up handling it, but I've got a few options. I think the real sticking point is going to be whether or not I have to trash the Badge of Courage (due to the mind immunity bug).

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


Responsible
Supreme Hero
posted May 18, 2020 05:05 AM
Edited by AlexSpl at 05:25, 18 May 2020.

Quote:
Can I fix the bug with the Badge of Courage setting mind immunity?

4A473: EB

Quote:
Can a spell cost of 0 (specified in SpTraits.txt) be respected?

It's not doable in hex for rational amount of time, because AI algorithms use mana cost as divisor to calculate spell efficiencies, and you can't divide by 0.

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


Known Hero
posted May 18, 2020 05:37 AM

Hey, sweet, you got the big ones down for sure.

The 0 spell cost thing was mostly because I wanted to have View Earth/Air cost nothing at expert level, a 'la Wizard eye in MM7.

There still are a few more questions I've got - they're all listed in my hacking guide - but these were the most important ones at the moment and I don't want to just emtomb you in questions.

I suppose I'll go ahead and post these in the interests of the community as a whole since they are what I would consider to be legit bugfixes:

Can Death Ripple check the "living" bit instead of the "undead" bit?

Can Fear check the mind immunity bit instead of "living"?

Can Paralyze be made to check the "living" bit?"

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


Responsible
Supreme Hero
posted May 18, 2020 06:43 AM

Quote:
Can Death Ripple check the "living" bit instead of the "undead" bit?

4A372: 10 00 00 00 74

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


Legendary Hero
Heroes is love, Heroes is life
posted May 18, 2020 07:54 AM

Don't know if you guys found a solution to Still Eye of the Dragon, but otherwise it would perhaps make sense to move it from treasure -> minor? (And maybe the Eagle Eye +15% becomes treasure instead?)

What about Pendant of Courage, +3 morale and luck is very strong, can we make it +2?

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


Responsible
Supreme Hero
posted May 18, 2020 08:07 AM

It's not a simple thing to modify +1 Morale and/or +1 Luck bonuses of artifacts by hex-editing. Basically, you have to write your own code in hex, because of instruction inc, which is shorter than add. However, in case of +2 or +3 bonuses you can just replace that number.

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


Legendary Hero
Heroes is love, Heroes is life
posted May 18, 2020 08:21 AM

AlexSpl said:
However, in case of +2 or +3 bonuses you can just replace that number.

Cool, I might do that.

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


Known Hero
posted May 18, 2020 08:53 AM

So, just had a poke through the code... I see five addresses that seem to be checking the "living" flag:

0586AF
11D13F
139AA3
17DA4C
21E026

If I had to guess, I'd wager that these are the functions for Aging, Disease, Poison, Death Stare, and Resurrection, yes?

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


Adventuring Hero
posted May 18, 2020 11:54 AM

Is there a way to remove the max stack number for roaming creatures?

So that their number would grow past the 4000 cap?

Is there a way to make a new artifact, a combo artifact (Hellstorm Helmet + Breastplate of Brimstone + Sword of Hellfire + Shield of the Damned)?

And how can I make the First Aid Tent also resurrect the fallen?

Thanks.

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


Legendary Hero
Heroes is love, Heroes is life
posted May 18, 2020 01:27 PM
Edited by phoenix4ever at 13:45, 18 May 2020.

Is it possible to make Orb of Vulnerability work the same way for both the hero and the opponent?

Also is it possible to increase the artifact slots available in the backpack, say from 64 to 96 or 128?

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


Known Hero
posted May 18, 2020 02:53 PM

SilverG said:
And how can I make the First Aid Tent also resurrect the fallen?


You can't. It's been asked a lot and the answer has always been no.

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


Adventuring Hero
posted May 18, 2020 03:18 PM

BTB said:
SilverG said:
And how can I make the First Aid Tent also resurrect the fallen?


You can't. It's been asked a lot and the answer has always been no.


Wel thanks N-E way.

And how about that pop cap for the roaming monsters; and artifact creation?

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


Responsible
Supreme Hero
posted May 18, 2020 07:29 PM
Edited by AlexSpl at 19:44, 18 May 2020.

Quote:
Can Fear check the mind immunity bit instead of "living"?

Actually it checks the "Morale has no effect" bit, not the "Living unit" bit.

It will check the "Mind magic immunity" bit instead, if you write 0A at 64934.

Quote:
Can Paralyze be made to check the "living" bit?"

This requires custom code.

Quote:
If I had to guess, I'd wager that these are the functions for Aging, Disease, Poison, Death Stare, and Resurrection, yes?

I don't think so.

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


Responsible
Supreme Hero
posted May 18, 2020 07:45 PM
Edited by AlexSpl at 19:57, 18 May 2020.

Quote:
Is there a way to remove the max stack number for roaming creatures?

So that their number would grow past the 4000 cap?

Only to FFF = 4095.

* * *

Quote:
Is there a way to make a new artifact, a combo artifact (Hellstorm Helmet + Breastplate of Brimstone + Sword of Hellfire + Shield of the Damned)?


Quote:
And how can I make the First Aid Tent also resurrect the fallen?


Quote:
Is it possible to make Orb of Vulnerability work the same way for both the hero and the opponent?

Also is it possible to increase the artifact slots available in the backpack, say from 64 to 96 or 128?

Not by trivial hex-editing. You need plugins for such non-trivial things.

* * *

Also, if you have still not grabbed your free copy of IDA, here it is: https://www.hex-rays.com/products/ida/support/download_freeware/

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


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

Thanks Alex.

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


Responsible
Supreme Hero
posted May 18, 2020 08:05 PM
Edited by AlexSpl at 20:17, 18 May 2020.

This is why it's so difficult to change +1 Morale/Luck bonuses:



We have here 3 bytes long inc instruction, whereas we need at least 4 bytes for add.

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


Adventuring Hero
posted May 18, 2020 08:25 PM
Edited by SilverG at 20:30, 18 May 2020.

AlexSpl said:
Quote:
Is there a way to remove the max stack number for roaming creatures?

So that their number would grow past the 4000 cap?

Only to FFF = 4095.



Uhm.... OK.... so there is a limit.

IDA looks awesome, but I guess I need time to learn how it works.

Thanks!

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


Known Hero
posted May 19, 2020 01:45 AM

AlexSpl said:
This is why it's so difficult to change +1 Morale/Luck bonuses:

We have here 3 bytes long inc instruction, whereas we need at least 4 bytes for add.


Curious, Alex... would this also include map objects that temporarily add luck/morale?

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


Known Hero
posted May 19, 2020 01:14 PM

AlexSpl said:
Quote:
Can a spell cost of 0 (specified in SpTraits.txt) be respected?

It's not doable in hex for rational amount of time, because AI algorithms use mana cost as divisor to calculate spell efficiencies, and you can't divide by 0.


The thought just occurred to me - how does Titan's Bolt get away with this?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 84 pages long: 1 2 3 4 5 ... 20 40 60 ... 80 81 82 83 84 · «PREV / NEXT»
Post New Poll Post New Topic Post New Reply

Page compiled in 0.0520 seconds