|
|
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.
|
|
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.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted October 03, 2016 09:57 PM |
|
|
Thanks again guys.
I don't suppose you know where to find the Cove heroes? (and Beatrice, Ranloo, Kinkeria)
|
|
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.
|
|
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
|
|
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
|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted October 05, 2016 11:58 AM |
|
|
|
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?
|
|
phoenix4ever
Legendary 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.
|
|
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.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted October 07, 2016 08:07 AM |
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted October 07, 2016 12:43 PM |
|
|
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?
|
|
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.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted October 07, 2016 12:55 PM |
|
|
I think I understand, but would you care to answer my previous post OxFEA? Can't you change AI behavior for Town Portal?
|
|
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?
|
|
phoenix4ever
Legendary 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.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted October 10, 2016 10:33 PM |
|
|
Does anybody know where to edit the Navigation skill?
|
|
|