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? (started by Baronus in January 2016)
How to edit HotA? This Popular Thread is 127 pages long: 1 2 3 4 5 ... 30 60 90 120 ... 123 124 125 126 127 · «PREV
BigPig2
BigPig2


Adventuring Hero
posted October 26, 2026 09:13 PM

The short answer is I dont understand these data structures.

 View Profile
purerogue3
purerogue3


Famous Hero
posted October 26, 2026 09:25 PM

the number of registers is limited - how about just trying them all, then the stack

the first thing i see in CastSpell is
mov     eax, [ebp+spellID]

so 50 push eax at 1A874B

 View Profile
BigPig2
BigPig2


Adventuring Hero
posted October 26, 2026 09:48 PM

My understanding of asm is pretty shallow so Im not going to go into what I imagine this is but I see references to [ebp + 8] when functions nearby fetch the spell ID. I have tried to push that instead (and removing an INC edx further down to make space for it, that INC just adds 1 to the monster level for the purposes of comparison so its easy to track the consequences of removing it) but the game crashes when I try to cast any of the spells routed to the case.

I have tried eax too but I feel the check gets skipped, same if I select a number higher than the highest spell ID.

 View Profile
purerogue3
purerogue3


Famous Hero
posted October 26, 2026 10:50 PM

Can we just add a new case to the jumptable and go to free space?

 View Profile
BigPig2
BigPig2


Adventuring Hero
posted October 27, 2026 02:09 PM

You likely can if you have the free space for it somewhere but thats not necessarily easier. And this switch case is very close to what were trying to achieve, its a bit of a shame not to explore this possibility first.

 View Profile
Jump To: Next Thread » This Popular Thread is 127 pages long: 1 2 3 4 5 ... 30 60 90 120 ... 123 124 125 126 127 · «PREV
Post New Poll   Post New Topic   Post New Reply

Page compiled in 0.1114 seconds