|
|
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.
|
|
BTB
Famous Hero
Moist & Creamy
|
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).
|
|
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.
|
|
BTB
Famous Hero
Moist & Creamy
|
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?"
|
|
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
|
|
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?
|
|
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.
|
|
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.
|
|
BTB
Famous Hero
Moist & Creamy
|
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?
|
|
SilverG
Known 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.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted May 18, 2020 01:27 PM |
|
|
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?
|
|
BTB
Famous Hero
Moist & Creamy
|
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.
|
|
SilverG
Known 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?
|
|
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.
|
|
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/
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted May 18, 2020 08:02 PM |
|
|
|
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.
|
|
SilverG
Known 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!
|
|
BTB
Famous Hero
Moist & Creamy
|
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?
|
|
BTB
Famous Hero
Moist & Creamy
|
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?
|
|
|