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 ]
New Server | HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info 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 11 pages long: 1 2 3 4 5 6 7 8 9 10 11 · «PREV / NEXT»
OxFEA
OxFEA


Promising
Famous Hero
feanor on DF2.ru
posted October 03, 2016 09:39 PM

Maurice said:
Byte 57, 58 and 59: appear to have something to do with being recruitable or not, but changing these doesn't seem to matter anything ingame. Probably leftover from earlier designs?

Allowed in RoE, Allowed in AB and SoD, campaign only hero. And one byte for structure alignment.
Maurice said:
Bytes 60 - 92: always zero, probably unused.

It's used in runtime.
Unknown dword, name pointer, six dwords with army initial stack quantities.


And specialities are in 0x278420, 156 structures, 40 bytes each. Format - as in ERM command HE:X, speciality type and nine dwords for its parameters.

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

Hero of Order
Part of the furniture
posted October 03, 2016 09:47 PM

OxFEA said:
Allowed in RoE, Allowed in AB and SoD, campaign only hero. And one byte for structure alignment.


Duh, that's too obvious . I wonder why I didn't identify them before, as especially Lord Haart is a clear indicator.

Quote:
Maurice said:
Bytes 60 - 92: always zero, probably unused.

It's used in runtime.
Unknown dword, name pointer, six dwords with army initial stack quantities.



Yeah, I figured as much. I suspect something similar happens with the Town data structure, right? I saw that the map data only holds the necessary information, often in the form of bit masks (at least for structures disabled and built, as well as for spells disallowed and required).

Quote:
And specialities are in 0x278420, 156 structures, 40 bytes each. Format - as in ERM command HE:X, speciality type and nine dwords for its parameters.


Thanks . I am guessing there's a 1-on-1 relation with the data within the HeroSpec.txt? That file has 156 data entries as well.

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


Supreme Hero
Heroes is love, Heroes is life
posted October 03, 2016 09:57 PM
Edited by phoenix4ever at 21:59, 03 Oct 2016.

Thanks again guys.
I don't suppose you know where to find the Cove heroes? (and Beatrice, Ranloo, Kinkeria)

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

Hero of Order
Part of the furniture
posted October 03, 2016 10:06 PM
Edited by Maurice at 22:25, 03 Oct 2016.

Not me, as I have yet to explore the HotA expanded section.

As for the Hero specialties, as I don't know ERM , it's luckily not that hard to decipher:

Byte 1 - 4 determine the type of specialty:
0 = Skill bonus
1 = Creature bonus per level
2 = Resource bonus
3 = Spell bonus
4 = Static Creature bonus
5 = Creature Speed Bonus (exclusive to Sir Mullich)
6 = Creature Conversion bonus
7 = Static Dragon bonus (exclusive to Mutare in both her shapes)

As for the parameters of each:

Skill bonus
Bytes 5 - 8: Skill ID.

Creature bonus
Bytes 5 - 8: Creature ID.

Resource bonus
Bytes 5 - 8: Resources ID (0 = Wood, 1 = Mercury, 2 = Ore, 3 = Sulfur, 4 = Crystal, 5 = Gems, 6 = Gold), amount appears hard-coded, not listed as a parameter.

Spell bonus
Bytes 5 - 8: Spell ID.

Static Creature bonus
Bytes 5 - 8: Creature ID.
Bytes 9 - 12: Attack bonus.
Bytes 13 - 16: Defense bonus.
Bytes 17 - 20: Damage bonus.

Creature Speed Bonus
Bytes 5 - 8: The bonus value.

Creature Conversion bonus
Bytes 5 - 8: First Creature ID allowed for conversion.
Bytes 21 - 24: Second Creature ID allowed for conversion.
Bytes 25 - 28: Resulting Creature ID after conversion.
I wonder if the intermittent bytes allow for other Creature IDs as well ...

Static Dragon bonus
Bytes 9 - 12: Attack bonus.
Bytes 13 - 16: Defense bonus.

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


Promising
Famous Hero
feanor on DF2.ru
posted October 04, 2016 12:04 PM

phoenix4ever said:
Thanks again guys.
I don't suppose you know where to find the Cove heroes? (and Beatrice, Ranloo, Kinkeria)

hota.dat

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


Hired Hero
posted October 04, 2016 09:52 PM
Edited by tax_375 at 07:56, 05 Oct 2016.

Guys do you know where I can find Ranloo the new death knight hero in hota? Or do you know its address in the exe file? It would be a great help. Ohh sorry I missed the previous reply


OxFEA: I have sent you a PM

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


Promising
Famous Hero
feanor on DF2.ru
posted October 05, 2016 11:58 AM

Don't got any.

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


Hired Hero
posted October 05, 2016 03:09 PM
Edited by tax_375 at 15:09, 05 Oct 2016.

When I get home I will resend it, something might went wrong with the HCMessenger. Or do you have a personal email where I can send my questions?

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


Supreme Hero
Heroes is love, Heroes is life
posted October 06, 2016 11:43 PM

Would it be possible to hex edit Town Portal so it does the same at advanced and expert as basic, meaning it would always take you to the nearest town?

Also do you know where I can edit Coves pirates and corsairs, I would like to nerf their speed a little.

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

Hero of Order
Part of the furniture
posted October 06, 2016 11:52 PM

The Corsair stuff is listed in the HotA.dat file. The layout is similar to creature stuff in the h3hota.exe for the standard H3 creatures.

As for Town Portal, not sure. Will have to see where it considers that spell. There's no "effect" listed for it in the spell table.

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


Supreme Hero
Heroes is love, Heroes is life
posted October 07, 2016 08:07 AM
Edited by phoenix4ever at 08:09, 07 Oct 2016.

Maurice said:
The layout is similar to creature stuff in the h3hota.exe for the standard H3 creatures.

I don't know the layout for the standard H3 creatures, they can be edited in the CRTRAITS file, so no need to edit the exe here, but for Cove creatures I guess I need to edit HotA.dat, the question is just where I find Pirates and Corsairs? I would like pirates to have speed 5 and corsairs to have speed 6.

I would be very happy if Town Portal could be edited somehow.  

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

Hero of Order
Part of the furniture
posted October 07, 2016 10:35 AM

Just open the HotA.dat file, the contents are relatively self-evident. The only things contained within the HotA.dat file are the new Hero definitions, new Creature definitions and new Map Object definitions in terms of their stats. The file isn't big and the names of each of the aforementioned entries are human readable (their stats, obviously, are in HEX format).
____________
The last Reasonable Steward of Good Game Design and a Responsible Hero of HC. - Verriker

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


Promising
Famous Hero
feanor on DF2.ru
posted October 07, 2016 10:49 AM

1D6D4: 02 - lvl, from which TP allows choosing town. Only human.

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

Hero of Order
Part of the furniture
posted October 07, 2016 11:58 AM
Edited by Maurice at 12:00, 07 Oct 2016.

OxFEA said:
1D6D4: 02 - lvl, from which TP allows choosing town. Only human.


You mean to say the AI always teleports to nearest Town with this spell? Or how does the AI logic work in that case? I admit that I never studied the AI behaviour on this particular spell. Having downloaded your IDA disassembly, I'll check out the function that handles this, see if I can make any sense out of the C-code it generated .
____________
The last Reasonable Steward of Good Game Design and a Responsible Hero of HC. - Verriker

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


Supreme Hero
Heroes is love, Heroes is life
posted October 07, 2016 12:43 PM
Edited by phoenix4ever at 12:57, 07 Oct 2016.

Yeah, can you elaborate a bit OxFEA?

Edit: Oh the 02 stands for advanced, 01 would be basic and 03 expert? What if I write 00 or 04? But it only affects human players? So it is'nt possible to change Town Portals behavior for AI?  

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


Promising
Famous Hero
feanor on DF2.ru
posted October 07, 2016 12:46 PM

Maurice said:
OxFEA said:
1D6D4: 02 - lvl, from which TP allows choosing town. Only human.


You mean to say the AI always teleports to nearest Town with this spell? Or how does the AI logic work in that case? I admit that I never studied the AI behaviour on this particular spell. Having downloaded your IDA disassembly, I'll check out the function that handles this, see if I can make any sense out of the C-code it generated .

No. If we set this byte to, e.g., 7F, player will always teleport to nearest town regardless of school, but AI will use old mechanic.

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


Supreme Hero
Heroes is love, Heroes is life
posted October 07, 2016 12:55 PM
Edited by phoenix4ever at 12:58, 07 Oct 2016.

I think I understand, but would you care to answer my previous post OxFEA? Can't you change AI behavior for Town Portal?

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


Promising
Famous Hero
feanor on DF2.ru
posted October 07, 2016 01:00 PM

If I could, I'd write the code, isn't it?

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


Supreme Hero
Heroes is love, Heroes is life
posted October 07, 2016 01:04 PM

Okay thanks. Maybe I should just allow AI that advantage then.

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


Supreme Hero
Heroes is love, Heroes is life
posted October 10, 2016 10:33 PM

Does anybody know where to edit the Navigation skill?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 11 pages long: 1 2 3 4 5 6 7 8 9 10 11 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0605 seconds