|
|
AlexSpl
Responsible
Supreme Hero
|
posted May 19, 2021 11:38 PM |
|
Edited by AlexSpl at 23:48, 19 May 2021.
|
Not actually, you don't have to touch the DOS header. Some random example - link. You add free space to the end of the executable and edit the PE header.
It works The example - WoG. Also I use this method in my patch (Heroes 1 TE with plugins support, but just to put there my loader for plugins, but you can put whatever code you want there, and make your section as big as you wish).
|
|
BTB
Famous Hero
Moist & Creamy
|
posted May 19, 2021 11:49 PM |
|
Edited by BTB at 23:50, 19 May 2021.
|
I'll keep this in mind if space ends up becoming an issue. But I've an abundance of it at the moment
|
|
Phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted May 22, 2021 09:43 PM |
|
|
BTB do you know anything about unused spell specialties?
I was thinking about changing Ash's and Inteus's Bloodlust to Curse and Misfortune instead.
I think I have tried these specialties before, but they does'nt seem to do anything, perhaps they need to be "activated" somewhere or do these specials simply not work?
Sorrow would also be an interesting spell specialty.
All damage specialties seems to work, also those not currently implemented.
|
|
BTB
Famous Hero
Moist & Creamy
|
posted May 22, 2021 11:25 PM |
|
|
All spells without specialties default to the scaling routine, which in 99% of cases does nothing since the formula does not appreciably increase the result. You would have to go to the table that specifies which spell has which specialty and set it to something else.
|
|
Phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted May 22, 2021 11:35 PM |
|
|
So if I want Curse and Misfortune I would have to replace two of the existing specialties?
|
|
BTB
Famous Hero
Moist & Creamy
|
posted May 22, 2021 11:47 PM |
|
|
Phoenix4ever said: So if I want Curse and Misfortune I would have to replace two of the existing specialties?
No.
Curse: 0E6375
Misfortune: 0E637F
Change these values from 6 to the desired bonus.
00 = +100% damage
01 = +50% damage
02 = Tier bonus (Bloodlust, Stoneskin, etc.)
03 = Static bonus (+2)
04 = Always expert (Fortune)
05 = Tier bonus (Slayer)
|
|
Phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted May 22, 2021 11:50 PM |
|
|
Oh okay, I need to try that.
Thanks.
|
|
NimoStar
Responsible
Legendary Hero
Modding the Unmoddable
|
posted May 23, 2021 01:22 AM |
|
|
Curse can't have "percent increase" since it's always minimum damage. % per level formula does nothing,
Similarly misfortune, it's always *maximum* negative luck. You can't go over that. (though I guess you can cast at expert and make it mass)
____________
Never changing = never improving
|
|
BTB
Famous Hero
Moist & Creamy
|
posted May 23, 2021 01:27 AM |
|
Edited by BTB at 01:28, 23 May 2021.
|
NimoStar said: Curse can't have "percent increase" since it's always minimum damage. % per level formula does nothing
This is incorrect. It will have the exact same effect as the Bless bonus in the original game.
NimoStar said: Similarly misfortune, it's always *maximum* negative luck. You can't go over that. (though I guess you can cast at expert and make it mass)
It is possible (and recommended) to edit the Morale and Luck formulas to raise the maximum/minimum bonuses.
|
|
Phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted May 23, 2021 09:13 AM |
|
|
Expert Misfortune only gives -2, with the specialty it would always give -3. (opposite the Fortune specialty.)
Expert Curse does minimum damage -1, so I don't see why it would'nt work. (opposite the Bless specialty.)
BTB can you perhaps give me the addresses for Sorrow and Slow too?
|
|
BTB
Famous Hero
Moist & Creamy
|
posted May 23, 2021 09:16 AM |
|
Edited by BTB at 09:17, 23 May 2021.
|
Phoenix4ever said: Expert Misfortune only gives -2, with the specialty it would always give -3. (opposite the Fortune specialty.)
BTB can you perhaps give me the addresses for Sorrow and Slow too?
All of the addresses are in my guide.
Quote:
Summon Boat 2854AC Meteor Shower 2860E4 Stoneskin 286D1C
Scuttle Boat 285534 Death Ripple 28616C Disrupting Ray 286DA4
Visions 2855BC Destroy Undead 2861F4 Prayer 286E2C
View Earth 285644 Armageddon 28627C Mirth 286EB4
Disguise 2856CC Shield 286304 Sorrow 286F3C
View Air 285754 Air Shield 28638C Fortune 286FC4
Fly 2857DC Fire Shield 286414 Misfortune 28704C
Water Walk 285864 Resist Air 28649C Haste 2870D4
Dimension Door 2858EC Resist Fire 286524 Slow 28715C
Town Portal 285974 Resist Water 2865AC Slayer 2871E4
Quicksand 2859FC Resist Earth 286634 Frenzy 28726C
Land Mine 285A84 Anti-Magic 2866BC Counterstrike 28737C
Force Field 285B0C Dispel 286744 Berserk 287404
Fire Wall 285B94 Magic Mirror 2867CC Hypnotize 28748C
Earthquake 285C1C Cure 286854 Forgetfulness 287514
Magic Arrow 285CA4 Resurrection 2868DC Blind 28759C
Ice Bolt 285D2C Animate Dead 286964 Teleport 287624
Lightning Bolt 285DB4 Sacrifice 2869EC Remove Obstacle 2876AC
Implosion 285E3C Bless 286A74 Clone 287734
Chain Lightning 285EC4 Curse 286AFC Summon Fire 2877BC
Frost Ring 285F4C Bloodlust 286B84 Summon Earth 287844
Fireball 285FD4 Precision 286C0C Summon Water 2878CC
Inferno 28605C Weakness 286C94 Summon Air 287954
(God, the formatting on this forum is ass. Pure roasted ass.)
|
|
Phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted May 23, 2021 09:17 AM |
|
|
|
BTB
Famous Hero
Moist & Creamy
|
posted May 27, 2021 02:20 AM |
|
|
Something else I did a little while ago was rewrote the scaling spell bonus formula to something a lot simpler. A scaling bonus that does more damage to LOWER-tier units seemed kinda bass-ackwards, so I simplified the formula to simply add damage equal to the unit's tier times the hero's level. It's fairly customizable to your liking since the resulting formula takes up a lot less space.
If anyone is interested, I can post it.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted May 27, 2021 05:17 PM |
|
|
BTB do you know if it is possible to make Haste/Slow and Bless/Curse remove each other, instead of countering each other?
(Example if needed: My enemy starts the round by casting Mass Haste, when I get my turn, I cast Mass Slow, but this will not mean his units have Mass Slow, but instead no spells at all, since the Slow removed the Haste.)
This is part of the reason why these spells are so strong, too strong imo.
|
|
BTB
Famous Hero
Moist & Creamy
|
posted May 29, 2021 02:25 AM |
|
Edited by BTB at 02:28, 29 May 2021.
|
I remember seeing the subject come up, but never looking into them because I wasn't interested. Off-hand, I think it's related to the spell flags, but it would have to be one of the effects I haven't documented yet. I'd suggest starting there.
EDIT: looking at it more, it might be perhaps related to the absence of this bit:
BYTE 2, BIT 2 (40)
------------------
Used on (Earth/Air/Fire) Shield, Counterstrike, Anti-Magic, Magic Mirror, and all magic resist spells.
There is no apparent link between these spells separating them from the other buff/debuff spells.
|
|
Phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted May 29, 2021 07:38 AM |
|
|
BTB said: BYTE 2, BIT 2 (40)
So this is missing from Haste, Slow, Bless and Curse?
I'm gonna need to check that out.
|
|
BTB
Famous Hero
Moist & Creamy
|
posted May 29, 2021 07:50 AM |
|
|
Phoenix4ever said:
BTB said: BYTE 2, BIT 2 (40)
So this is missing from Haste, Slow, Bless and Curse?
I'm gonna need to check that out.
Also Bloodlust, Stone Skin, Precision, Weakness...
|
|
Phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted May 29, 2021 08:13 AM |
|
|
Hmm those are not counterspells, so it might not have anything to do with that.
But I'll see if I can do anything with the Haste, Slow, Bless and Curse flags.
Edit: It would be interesting if we could fully crack the code about what the data in byte 2 and 3 does to spells.
I see you have already speculated about that and I guess it's hard to know for sure exactly what they do.
|
|
BTB
Famous Hero
Moist & Creamy
|
posted May 29, 2021 01:28 PM |
|
|
Well, I'm almost ready to update this guide... it's a little messy toward the end because I haven't gone through and cleaned things up or elaborated on a couple of things, but the information is all there.
I also feel like, slowly but surely, this thing is turning into "ASM for Dummies".
|
|
BTB
Famous Hero
Moist & Creamy
|
posted May 30, 2021 04:54 AM |
|
|
All right, I've updated the hacking guide. It's still a little messy toward the end so I'll update it again when it's all cleaned up, but the information is all there.
|
|
|