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 32 pages long: 1 10 ... 11 12 13 14 15 ... 20 30 32 · «PREV / NEXT»
phoenix4ever
phoenix4ever


Supreme Hero
Heroes is love, Heroes is life
posted July 13, 2017 01:25 PM

Does anyone know how to edit the Berserk spell?
When I edit Berserk in SPTRAITS.TXT nothing seems to happen, I edited "None, Basic, Advanced and Expert" from 0/0/1/2 to 0/0/1/1 assuming it was the area it affects, but changing the values does'nt seem to affect anything?

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

Hero of Order
Part of the furniture
posted July 14, 2017 12:20 AM

Those values affect the "effect" portion of the spell. I'd have to dig into the exe itself and see the subroutine that handles the spell to see what the "effect" for Berserk really does. Maybe I'll have a bit of time tomorrow to do so, but no promises.
____________
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 July 14, 2017 08:37 AM

It would be great if you would look into it, but only if you want to.

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

Hero of Order
Part of the furniture
posted July 14, 2017 06:53 PM

I took a quick look, but I realise it's been a while since I last looked at it. It's kinda time consuming to trace out the paths that I once knew - and time is in kinda short supply for me at the moment. While I'd like to be able to answer your question, I simply lack the time to sink my teeth into it right now.
____________
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 July 14, 2017 06:59 PM
Edited by phoenix4ever at 19:02, 14 Jul 2017.

That's okay Maurice, thanks for taking a quick look at least.

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


Responsible
Supreme Hero
posted July 15, 2017 12:26 AM
Edited by AlexSpl at 06:43, 15 Jul 2017.

2Maurice: Look @ sub_59FBB0: [59FA67h] call sub_4E52F0 (get magic school level, radius* depends on it) -> eax -> [ebp-8] -> edx -> [59FBD5h] [ebp-20h], sub_5A4B20, sub_5A4740; sub_44A1A0 (immunities), and maybe sub_444610 will be of some interest.

* You can change the table with radius values manually (offsets in the executable):

Fire Magic Level | Offset | Radius
-----------------+--------+-------
None             | 242274 | 0
Basic            | 242278 | 0
Advanced         | 24227C | 1
Expert           | 242280 | 2


But beware, big radius values (greater than 2) cause graphic glitches.

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


Supreme Hero
Heroes is love, Heroes is life
posted July 15, 2017 08:38 AM
Edited by phoenix4ever at 11:13, 15 Jul 2017.

Thank you Alex, I gotta try this today.
I was'nt intending to make radius bigger, but Expert Berserk smaller...

Edit: It works, that's great.

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


Adventuring Hero
posted July 21, 2017 09:16 AM

I read these posts with great intrest ! I'll try when I'll be back from holidays, lack of time for now... I'm working on graphics, equilibration and changing creatures who look a bit rusty (like ogres, vampires, ...).

Just a question, is it not too hard to change size for creature ?
For example, I'll change troll by some other creature but size is 1 hex (and not two). Some very nice creatures are on library and could be better than the old ugly troll but are big... For a lv5 creature that's nice. And the boar (lv2) or nomad (lv3) are 2 hex but lower creatures... So I have to search big low creature or small high creature...

Is it very hard to change (with hex) too : creature level, no melee penality, fly ability and maybe "shooting" for creature ?
For shooting, I know it requires projectiles (and projectile def) too...  
I hoped by any chance if all creatures are coded in a "list" one by one or if the storage of the ability they have is more "random" before I start...

Thanks for the efforts done to search to share your knowlege.
____________
FfuzzyLogik.

If I'm crazy ? Sure, because its madness to be normal...

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

Tavern Dweller
posted July 21, 2017 05:54 PM

Quote:
Is it very hard to change (with hex) too : creature level, no melee penality, fly ability and maybe "shooting" for creature ?


It's quite easy.

Since lane 002703b8 (pikeman-first unit) begins units code one by one (halberdier -0027042c, marksman- 002704a0 etc.)
Code for each unit takes 20 pairs of digits.
example of pikeman code :
00 00 00 00 00 00 00 00 0C 55 67 00 00 55 67 00 10 00 00 00
formula :
0A 00 00 00 0B 00 00 00 xx xx xx 00 yy yy yy 00 DE FG HI JK

0A – unit belong to castle (00- Castle, 01 – Rampart etc.)
0B- unit level (00 for lvl 1, 01, for lvl 2, 02 for lvl 3 etc.)
D – ability ( To set unit ability type digit of given ability or their amount)
1-Unit is alive
2- attack siege walls
4- unit is war machine
8 –
E – ability
1-Unit takes 2 hexes
2- Unit can fly
4- unit can shoot
8- dragon breath ( attacks 2 hexes)
F- ability
1-no melee penalty
2-
4-fire magic immunity
8-attack twice
G –ability
H-ability
I-ability
1-enemies no retaliate
2-morale doesn’t works (such like undead I guess)
4-decrease enemies morale
8-attacks all around (such like hydra)
xx yy- doeasn't matter here

For example pikeman with abilities (takes 2 hexes, can fly, attacks twice, fire magic immunity, attacks all around):
00 00 00 00 00 00 00 00 0c 55 67 00 00 55 67 00 13 c0 08 003 c0 08 00 13 c0 08 00

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


Adventuring Hero
posted July 21, 2017 06:20 PM
Edited by FfuzzyLogik at 19:02, 21 Jul 2017.

Thanks alot ! It changes totally the things I was thinking I could do... I'm surprised that was "so easy" because what I read in many posts that it was hard to change. But it requires hex editing who is not the easyest way to mod for sure.

Hmm just for better understanding :
Does it means to make a 2 hex creature fly you put 3 means "1+2" on slot E ?
So you can make fire immune troop with no melee penality in putting 5 on F ability ?
On your pikeman, what the "c" means ?
And what's the difference between "G,H,I" ? All calls same kind of ability "1 : no retaliation, 2 : no moral effects (like golems), 4 : decrease ennemy moral, 8 : attacks all around ?

I'm going in holidays when I'd like to try so many things here... Shame of wanting to be back before departure ^^
Again, thanks alot for this and I'll test it when I'm back.
____________
FfuzzyLogik.

If I'm crazy ? Sure, because its madness to be normal...

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


Supreme Hero
Heroes is love, Heroes is life
posted July 22, 2017 11:16 AM

Hmm I had a look at Arch Devil and Firebird abilities, cause I wanted to change them back to -1 Enemy Luck and Immunity to Fire Magic, like before HotA.
But it seems the code is the same for Devil and Arch Devil and for Firebird and Phoenix?, so could HotA dudes have changed it somewhere else?
I would like Arch Devil and Firebird the way they were originally.

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

Hero of Order
Part of the furniture
posted July 22, 2017 03:49 PM
Edited by Maurice at 16:11, 22 Jul 2017.

The start of the table is as follows (where I've truncated the tables that are filled during runtime, since they're all 0's in the exe anyway - just look at the starting address of each creature):

Edit: Sorry for the table layout, it's messed up. I can't see an easy fix, however. Just copy-paste it into Excel or something and it should be fine.

002703b8h: Pikeman 0 0 0 0 0 0 0 0 0C 55 67 0 0 55 67 0 10 0 0 0
0027042ch: Halberdier 0 0 0 0 0 0 0 0 F8 54 67 0 EC 54 67 0 10 0 0 0
002704a0h: Archer 0 0 0 0 1 0 0 0 E4 54 67 0 D8 54 67 0 14 0 0 0
00270514h: Marksman 0 0 0 0 1 0 0 0 D0 54 67 0 C4 54 67 0 14 80 0 0
00270588h: Griffin 0 0 0 0 2 0 0 0 BC 54 67 0 B0 54 67 0 13 0 0 0
002705fch: Royal Griffin 0 0 0 0 2 0 0 0 A8 54 67 0 9C 54 67 0 13 0 0 0
00270670h: Swordsman 0 0 0 0 3 0 0 0 94 54 67 0 88 54 67 0 10 0 0 0
002706e4h: Crusader 0 0 0 0 3 0 0 0 80 54 67 0 74 54 67 0 10 80 0 0
00270758h: Monk 0 0 0 0 4 0 0 0 6C 54 67 0 60 54 67 0 14 0 0 0
002707cch: Zealot 0 0 0 0 4 0 0 0 58 54 67 0 4C 54 67 0 14 10 0 0
00270840h: Cavalier 0 0 0 0 5 0 0 0 44 54 67 0 38 54 67 0 11 0 0 0
002708b4h: Champion 0 0 0 0 5 0 0 0 30 54 67 0 24 54 67 0 11 0 0 0
00270928h: Angel 0 0 0 0 6 0 0 0 1C 54 67 0 10 54 67 0 12 1 0 0
0027099ch: Archangel 0 0 0 0 6 0 0 0 8 54 67 0 FC 53 67 0 13 1 0 0
00270a10h: Centaur 1 0 0 0 0 0 0 0 F4 53 67 0 E8 53 67 0 11 0 0 0
00270a84h: Centaur Captain 1 0 0 0 0 0 0 0 E0 53 67 0 D4 53 67 0 11 0 0 0
00270af8h: Dwarf 1 0 0 0 1 0 0 0 CC 53 67 0 C0 53 67 0 10 0 0 0
00270b6ch: Battle Dwarf 1 0 0 0 1 0 0 0 B8 53 67 0 AC 53 67 0 10 0 0 0
00270be0h: Wood Elf 1 0 0 0 2 0 0 0 A4 53 67 0 98 53 67 0 14 0 0 0
00270c54h: Grand Elf 1 0 0 0 2 0 0 0 90 53 67 0 84 53 67 0 14 80 0 0
00270cc8h: Pegasus 1 0 0 0 3 0 0 0 7C 53 67 0 70 53 67 0 13 0 0 0
00270d3ch: Silver Pegasus 1 0 0 0 3 0 0 0 68 53 67 0 5C 53 67 0 13 0 0 0
00270db0h: Dendroid Guard 1 0 0 0 4 0 0 0 54 53 67 0 48 53 67 0 10 0 0 0
00270e24h: Dendroid Soldier 1 0 0 0 4 0 0 0 40 53 67 0 34 53 67 0 10 0 0 0
00270e98h: Unicorn 1 0 0 0 5 0 0 0 2C 53 67 0 20 53 67 0 11 0 0 0
00270f0ch: War Unicorn 1 0 0 0 5 0 0 0 18 53 67 0 0C 53 67 0 11 0 0 0
00270f80h: Green Dragon 1 0 0 0 6 0 0 0 4 53 67 0 F8 52 67 0 9B 0 0 80
00270ff4h: Gold Dragon 1 0 0 0 6 0 0 0 F0 52 67 0 E4 52 67 0 9B 0 0 80
00271068h: Gremlin 2 0 0 0 0 0 0 0 DC 52 67 0 D0 52 67 0 10 0 0 0
002710dch: Master Gremlin 2 0 0 0 0 0 0 0 C8 52 67 0 BC 52 67 0 14 0 0 0
00271150h: Stone Gargoyle 2 0 0 0 1 0 0 0 B4 52 67 0 A8 52 67 0 2 0 0 0
002711c4h: Obsidian Gargoyle 2 0 0 0 1 0 0 0 A0 52 67 0 94 52 67 0 2 0 0 0
00271238h: Stone Golem 2 0 0 0 2 0 0 0 8C 52 67 0 80 52 67 0 0 4 2 0
002712ach: Iron Golem 2 0 0 0 2 0 0 0 78 52 67 0 6C 52 67 0 0 4 2 0
00271320h: Mage 2 0 0 0 3 0 0 0 64 52 67 0 58 52 67 0 14 10 0 0
00271394h: Arch Mage 2 0 0 0 3 0 0 0 50 52 67 0 44 52 67 0 14 18 0 0
00271408h: Genie 2 0 0 0 4 0 0 0 3C 52 67 0 30 52 67 0 12 0 0 0
0027147ch: Master Genie 2 0 0 0 4 0 0 0 28 52 67 0 1C 52 67 0 12 0 0 0
002714f0h: Naga 2 0 0 0 5 0 0 0 14 52 67 0 8 52 67 0 11 0 1 0
00271564h: Naga Queen 2 0 0 0 5 0 0 0 0 52 67 0 F4 51 67 0 11 0 1 0
002715d8h: Giant 2 0 0 0 6 0 0 0 EC 51 67 0 E0 51 67 0 10 6 0 0
0027164ch: Titan 2 0 0 0 6 0 0 0 D8 51 67 0 CC 51 67 0 14 16 0 0
002716c0h: Imp 3 0 0 0 0 0 0 0 C4 51 67 0 B8 51 67 0 10 0 0 0
00271734h: Familiar 3 0 0 0 0 0 0 0 B0 51 67 0 A4 51 67 0 10 0 0 0
002717a8h: Gog 3 0 0 0 1 0 0 0 9C 51 67 0 90 51 67 0 14 0 0 0
0027181ch: Magog 3 0 0 0 1 0 0 0 88 51 67 0 7C 51 67 0 14 0 10 0
00271890h: Hell Hound 3 0 0 0 2 0 0 0 74 51 67 0 68 51 67 0 11 0 0 0
00271904h: Cerberus 3 0 0 0 2 0 0 0 60 51 67 0 54 51 67 0 11 0 9 0
00271978h: Demon 3 0 0 0 3 0 0 0 4C 51 67 0 40 51 67 0 10 0 0 0
002719ech: Horned Demon 3 0 0 0 3 0 0 0 38 51 67 0 2C 51 67 0 10 0 0 0
00271a60h: Pit Fiend 3 0 0 0 4 0 0 0 24 51 67 0 18 51 67 0 10 0 0 0
00271ad4h: Pit Lord 3 0 0 0 4 0 0 0 10 51 67 0 4 51 67 0 10 0 0 0
00271b48h: Efreeti 3 0 0 0 5 0 0 0 FC 50 67 0 F0 50 67 0 12 40 0 0
00271bbch: Efreet Sultan 3 0 0 0 5 0 0 0 E8 50 67 0 DC 50 67 0 12 40 0 0
00271c30h: Devil 3 0 0 0 6 0 0 0 D4 50 67 0 C8 50 67 0 10 1 1 0
00271ca4h: Arch Devil 3 0 0 0 6 0 0 0 C0 50 67 0 B4 50 67 0 10 1 1 0
00271d18h: Skeleton 4 0 0 0 0 0 0 0 AC 50 67 0 A0 50 67 0 0 4 6 0
00271d8ch: Skeleton Warrior 4 0 0 0 0 0 0 0 98 50 67 0 8C 50 67 0 0 4 6 0
00271e00h: Walking Dead 4 0 0 0 1 0 0 0 84 50 67 0 78 50 67 0 0 4 6 0
00271e74h: Zombie 4 0 0 0 1 0 0 0 70 50 67 0 64 50 67 0 0 4 6 0
00271ee8h: Wight 4 0 0 0 2 0 0 0 5C 50 67 0 50 50 67 0 2 4 6 0
00271f5ch: Wraith 4 0 0 0 2 0 0 0 48 50 67 0 3C 50 67 0 2 4 6 0
00271fd0h: Vampire 4 0 0 0 3 0 0 0 34 50 67 0 28 50 67 0 2 4 7 0
00272044h: Vampire Lord 4 0 0 0 3 0 0 0 20 50 67 0 14 50 67 0 2 4 7 0
002720b8h: Lich 4 0 0 0 4 0 0 0 0C 50 67 0 0 50 67 0 4 4 16 0
0027212ch: Power Lich 4 0 0 0 4 0 0 0 F8 4F 67 0 EC 4F 67 0 4 4 16 0
002721a0h: Black Knight 4 0 0 0 5 0 0 0 E4 4F 67 0 D8 4F 67 0 1 4 6 0
00272214h: Dread Knight 4 0 0 0 5 0 0 0 D0 4F 67 0 C4 4F 67 0 1 4 6 0
00272288h: Bone Dragon 4 0 0 0 6 0 0 0 BC 4F 67 0 B0 4F 67 0 83 4 6 80
002722fch: Ghost Dragon 4 0 0 0 6 0 0 0 A8 4F 67 0 9C 4F 67 0 83 4 6 80
00272370h: Troglodyte 5 0 0 0 0 0 0 0 94 4F 67 0 88 4F 67 0 10 0 0 0
002723e4h: Infernal Troglodyte 5 0 0 0 0 0 0 0 80 4F 67 0 74 4F 67 0 10 0 0 0
00272458h: Harpy 5 0 0 0 1 0 0 0 6C 4F 67 0 60 4F 67 0 12 0 0 0
002724cch: Harpy Hag 5 0 0 0 1 0 0 0 58 4F 67 0 4C 4F 67 0 12 0 1 0
00272540h: Beholder 5 0 0 0 2 0 0 0 44 4F 67 0 38 4F 67 0 14 18 0 0
002725b4h: Evil Eye 5 0 0 0 2 0 0 0 30 4F 67 0 24 4F 67 0 14 18 0 0
00272628h: Medusa 5 0 0 0 3 0 0 0 1C 4F 67 0 10 4F 67 0 15 10 0 0
0027269ch: Medusa Queen 5 0 0 0 3 0 0 0 8 4F 67 0 FC 4E 67 0 15 10 0 0
00272710h: Minotaur 5 0 0 0 4 0 0 0 F4 4E 67 0 E8 4E 67 0 10 0 0 0
00272784h: Minotaur King 5 0 0 0 4 0 0 0 E0 4E 67 0 D4 4E 67 0 10 0 0 0
002727f8h: Manticore 5 0 0 0 5 0 0 0 CC 4E 67 0 C0 4E 67 0 13 0 0 0
0027286ch: Scorpicore 5 0 0 0 5 0 0 0 B8 4E 67 0 AC 4E 67 0 13 0 0 0
002728e0h: Red Dragon 5 0 0 0 6 0 0 0 A4 4E 67 0 98 4E 67 0 9B 0 0 80
00272954h: Black Dragon 5 0 0 0 6 0 0 0 90 4E 67 0 84 4E 67 0 9B 4 0 80
002729c8h: Goblin 6 0 0 0 0 0 0 0 7C 4E 67 0 70 4E 67 0 10 0 0 0
00272a3ch: Hobgoblin 6 0 0 0 0 0 0 0 68 4E 67 0 5C 4E 67 0 10 0 0 0
00272ab0h: Wolf Rider 6 0 0 0 1 0 0 0 54 4E 67 0 48 4E 67 0 11 0 0 0
00272b24h: Wolf Raider 6 0 0 0 1 0 0 0 40 4E 67 0 34 4E 67 0 11 80 0 0
00272b98h: Orc 6 0 0 0 2 0 0 0 2C 4E 67 0 20 4E 67 0 14 0 0 0
00272c0ch: Orc Chieftain 6 0 0 0 2 0 0 0 18 4E 67 0 0C 4E 67 0 14 0 0 0
00272c80h: Ogre 6 0 0 0 3 0 0 0 4 4E 67 0 F8 4D 67 0 10 0 0 0
00272cf4h: Ogre Mage 6 0 0 0 3 0 0 0 F0 4D 67 0 E4 4D 67 0 10 0 0 0
00272d68h: Roc 6 0 0 0 4 0 0 0 DC 4D 67 0 D0 4D 67 0 13 0 0 0
00272ddch: Thunderbird 6 0 0 0 4 0 0 0 C8 4D 67 0 BC 4D 67 0 13 0 0 0
00272e50h: Cyclops 6 0 0 0 5 0 0 0 B4 4D 67 0 A8 4D 67 0 34 0 0 0
00272ec4h: Cyclops King 6 0 0 0 5 0 0 0 A0 4D 67 0 90 4D 67 0 34 0 0 0
00272f38h: Behemoth 6 0 0 0 6 0 0 0 88 4D 67 0 7C 4D 67 0 91 0 0 0
00272fach: Ancient Behemoth 6 0 0 0 6 0 0 0 74 4D 67 0 68 4D 67 0 91 0 0 0
00273020h: Gnoll 7 0 0 0 0 0 0 0 60 4D 67 0 54 4D 67 0 10 0 0 0
00273094h: Gnoll Marauder 7 0 0 0 0 0 0 0 4C 4D 67 0 40 4D 67 0 10 0 0 0
00273108h: Lizardman 7 0 0 0 1 0 0 0 38 4D 67 0 2C 4D 67 0 14 0 0 0
0027317ch: Lizard Warrior 7 0 0 0 1 0 0 0 24 4D 67 0 18 4D 67 0 14 0 0 0
002731f0h: Gorgon 7 0 0 0 4 0 0 0 10 4D 67 0 4 4D 67 0 11 0 0 0
00273264h: Mighty Gorgon 7 0 0 0 4 0 0 0 FC 4C 67 0 F0 4C 67 0 11 0 0 0
002732d8h: Serpent Fly 7 0 0 0 2 0 0 0 E8 4C 67 0 DC 4C 67 0 12 0 0 0
0027334ch: Dragon Fly 7 0 0 0 2 0 0 0 D4 4C 67 0 C8 4C 67 0 12 0 0 0
002733c0h: Basilisk 7 0 0 0 3 0 0 0 C0 4C 67 0 B4 4C 67 0 11 0 0 0
00273434h: Greater Basilisk 7 0 0 0 3 0 0 0 AC 4C 67 0 A0 4C 67 0 11 0 0 0
002734a8h: Wyvern 7 0 0 0 5 0 0 0 98 4C 67 0 8C 4C 67 0 13 0 0 0
0027351ch: Wyvern Monarch 7 0 0 0 5 0 0 0 84 4C 67 0 78 4C 67 0 13 0 0 0
00273590h: Hydra 7 0 0 0 6 0 0 0 70 4C 67 0 64 4C 67 0 91 0 9 0
00273604h: Chaos Hydra 7 0 0 0 6 0 0 0 5C 4C 67 0 50 4C 67 0 91 0 9 0
00273678h: Air Elemental 8 0 0 0 1 0 0 0 48 4C 67 0 3C 4C 67 0 0 4 2 0
002736ech: Earth Elemental 8 0 0 0 4 0 0 0 34 4C 67 0 28 4C 67 0 0 4 2 0
00273760h: Fire Elemental 8 0 0 0 3 0 0 0 20 4C 67 0 14 4C 67 0 0 44 2 0
002737d4h: Water Elemental 8 0 0 0 2 0 0 0 0C 4C 67 0 0 4C 67 0 1 4 2 0
00273848h: Gold Golem FF FF FF FF 4 0 0 0 F8 4B 67 0 EC 4B 67 0 0 4 2 0
002738bch: Diamond Golem FF FF FF FF 5 0 0 0 E4 4B 67 0 D8 4B 67 0 0 4 2 0
00273930h: Pixie 8 0 0 0 0 0 0 0 D0 4B 67 0 C4 4B 67 0 12 0 0 0
002739a4h: Sprite 8 0 0 0 0 0 0 0 BC 4B 67 0 B0 4B 67 0 12 0 1 0
00273a18h: Psychic Elemental 8 0 0 0 5 0 0 0 A8 4B 67 0 9C 4B 67 0 0 4 0B 0
00273a8ch: Magic Elemental 8 0 0 0 5 0 0 0 94 4B 67 0 88 4B 67 0 0 4 0B 0
00273b00h: NOT USED (1) 8 0 0 0 FF FF FF FF 80 4B 67 0 80 4B 67 0 0 0 0 0
00273b74h: Ice Elemental 8 0 0 0 3 0 0 0 78 4B 67 0 6C 4B 67 0 5 4 2 0
00273be8h: NOT USED (2) 8 0 0 0 FF FF FF FF 64 4B 67 0 64 4B 67 0 0 0 0 0
00273c5ch: Magma Elemental 8 0 0 0 2 0 0 0 5C 4B 67 0 50 4B 67 0 0 4 2 0
00273cd0h: NOT USED (3) 8 0 0 0 FF FF FF FF 48 4B 67 0 48 4B 67 0 0 0 0 0
00273d44h: Storm Elemental 8 0 0 0 1 0 0 0 40 4B 67 0 34 4B 67 0 4 4 2 0
00273db8h: NOT USED (4) 8 0 0 0 FF FF FF FF 2C 4B 67 0 2C 4B 67 0 0 0 0 0
00273e2ch: Energy Elemental 8 0 0 0 4 0 0 0 24 4B 67 0 18 4B 67 0 2 44 2
00273ea0h: Firebird 8 0 0 0 6 0 0 0 10 4B 67 0 4 4B 67 0 9B 40 0 0
00273f14h: Phoenix 8 0 0 0 6 0 0 0 FC 4A 67 0 F0 4A 67 0 9B 40 0 0
00273f88h: Azure Dragon FF FF FF FF 6 0 0 0 E8 4A 67 0 DC 4A 67 0 9B 0 0 80
00273ffch: Crystal Dragon FF FF FF FF 6 0 0 0 D4 4A 67 0 C8 4A 67 0 91 0 0 80
00274070h: Faerie Dragon FF FF FF FF 6 0 0 0 C0 4A 67 0 B4 4A 67 0 93 0 0 80
002740e4h: Rust Dragon FF FF FF FF 6 0 0 0 AC 4A 67 0 A0 4A 67 0 9B 0 0 80
00274158h: Enchanter FF FF FF FF 5 0 0 0 98 4A 67 0 8C 4A 67 0 14 10 0 0
002741cch: Sharpshooter FF FF FF FF 3 0 0 0 D0 54 67 0 80 4A 67 0 14 0 0 0
00274240h: Halfling FF FF FF FF 0 0 0 0 78 4A 67 0 6C 4A 67 0 14 0 0 0
002742b4h: Peasant FF FF FF FF 0 0 0 0 64 4A 67 0 58 4A 67 0 10 0 0 0
00274328h: Boar FF FF FF FF 1 0 0 0 50 4A 67 0 44 4A 67 0 11 0 0 0
0027439ch: Mummy FF FF FF FF 2 0 0 0 3C 4A 67 0 30 4A 67 0 0 4 6 0
00274410h: Nomad FF FF FF FF 2 0 0 0 28 4A 67 0 1C 4A 67 0 11 0 0 0
00274484h: Rogue FF FF FF FF 1 0 0 0 DC 52 67 0 10 4A 67 0 10 0 0 0
002744f8h: Troll FF FF FF FF 4 0 0 0 8 4A 67 0 FC 49 67 0 10 0 0 0
0027456ch: Catapult FF FF FF FF 0 0 0 0 F4 49 67 0 E8 49 67 0 65 4 2 0
002745e0h: Ballista FF FF FF FF 4 0 0 0 E0 49 67 0 D4 49 67 0 45 14 3 0
00274654h: First Aid Tent FF FF FF FF 0 0 0 0 CC 49 67 0 C0 49 67 0 41 4 2 0
002746c8h: Ammo Cart FF FF FF FF 0 0 0 0 B8 49 67 0 AC 49 67 0 40 4 2 0
0027473ch: Arrow Tower FF FF FF FF 0 0 0 0 60 12 69 0 60 12 69 0 44 4 2 0


Each creature byte array is 116 bytes long. As said, most of these are 0's and filled during runtime, but the first bytes are interesting:

Bytes 1 - 4: the Town type (0 = Castle, 1 = Rampart, 2 = Tower, 3 = Inferno, 4 = Necropolis, 5 = Dungeon, 6 = Stronghold, 7 = Fortress, 8  Conflux, FF = not aligned with any Town)
Bytes 5 - 8: Creature Tier
Bytes 9 - 12: Not entirely sure, but I think this is a picture reference to another location within the .exe
Bytes 13 - 16: same, but there is a small and large image for each creature; not sure which is which;
Bytes 17 - 20: Bit-wise ability flags

To get the bitwise ability flags, convert the HEX values to binary and once you've made changes, convert the binary back to HEX.

Translating them in Big Endian, the bits have the following meaning:

Bit 1: Unsure, it's 1 for all Dragons, Behemoth and Ancient Behemoth, Hydra and Chaos Hydra, Fire Bird and Phoenix. It's 0 for all other creatures. I haven't found a link between these creatures;
Bit 2: Is this unit a War Machine?
Bit 3: Can this unit attack Walls?
Bit 4: Is this a Living Unit (i.e. susceptible to healing spells and Death Ripple)?
Bit 5: Unsure, does this unit's attack hit 2 hexes?
Bit 6: Does this unit use a ranged attack?
Bit 7: Is this unit a Flying unit?
Bit 8: Does this unit occupy 2 hexes?

Bit 9: Does this unit attack twice?
Bit 10: Does this unit have Fire Immunity?
Bit 11: Unused (always 0).
Bit 12: Is this unit's melee attack as effective as its ranged attack?
Bit 13: Does this unit suffer no Ranged penalty (or suffer no Siege Wall Ranged attack penalty, not sure)?
Bit 14: Unsure. It's 1 for all Golems, the Giant and Titan, the Gold Dragon and all Undead, Elemental and War Machine units. It's 0 for all other units.
Bit 15: Unsure; is only 1 for Giant and Titan, 0 for all other units.
Bit 16: Unsure; is only 1 for Angel, Arch Angel, Devil and Arch Devil, 0 for all other units.

Bit 17, 18 and 19: Unused (always 0)
Bit 20: Does this units' Ranged attack have an area effect?
Bit 21: Does this units' Melee attack have an area effect?
Bit 22: Is this unit an Undead unit?
Bit 23: Is this unit not affected by Morale?
Bit 24: Does this unit not provoke enemy retaliation on its attack?

Bit 25: Is this unit a Dragon?
Bit 26-32: Unused (always 0).

____________
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
RoseKavalier
RoseKavalier


Honorable
Famous Hero
posted July 23, 2017 02:51 PM
Edited by RoseKavalier at 14:54, 23 Jul 2017.

phoenix4ever said:
I would like Arch Devil and Firebird the way they were originally.


I could look through code to find it but from the little time I've looked at HotA code in general, any change is implemented through hota.dll, meaning it will appear normal before you actually launch hota.exe and any changes you do at patched locations will be overwritten.

@Maurice
They are the Monster Flags, see ERM help file for complete list. The order is a bit mixed around in your list comparatively, as ERM one is presented in hex and yours in bin.
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

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


Supreme Hero
Heroes is love, Heroes is life
posted July 24, 2017 03:19 PM

@RoseKavalier Yeah they must have changed it somewhere else, cause the code of Devil/Arch Devil and Firebird/Phoenix seems the same to me.
Guess only the HotA guys can change it then, too bad.

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


Honorable
Famous Hero
posted July 24, 2017 04:05 PM

phoenix4ever said:
@RoseKavalier Yeah they must have changed it somewhere else, cause the code of Devil/Arch Devil and Firebird/Phoenix seems the same to me.
Guess only the HotA guys can change it then, too bad.

Maybe could be restored with a hdmod plugin but otherwise your best bet is editing SoD/WoG to fit your needs.

____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

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


Adventuring Hero
posted August 04, 2017 10:56 PM
Edited by FfuzzyLogik at 23:03, 04 Aug 2017.

Hello there, back from my trip, I began to copy paste all heroes speciality and statistics in a file (a table).
I think it may be of use to all who wants to modify by that way heroes speciality but I don't know how to share this table here.

Its build like that : Line 1 hero speciality, Line 2 name, line 4 to 95 that's heroes caracterisics (as explained by Baronus or Maurice at page 1 of this modding guide) then I copy pasted hero speciality (as explained by some persons at different pages of this guide).


Then, in an other page I made a "copy paste" of colums
Archery                Archers                 Griffon
Orrin                   Valeska                 Edric
Hero ori 1   Hero mod 1 Hero ori 2  Hero mod 2 Hero ori 3  ...
00 00 00 00             01 00 00 00             00 00 00 00
07 00 00 00             07 00 00 00             07 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
06 00 00 00             06 00 00 00             06 00 00 00
01 00 00 00             01 00 00 00             01 00 00 00
01 00 00 00             01 00 00 00             17 00 00 00
01 00 00 00             01 00 00 00             01 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
ff ff ff ff             ff ff ff ff             ff ff ff ff
00 00 00 00             02 00 00 00             00 00 00 00
02 00 00 00             02 00 00 00             04 00 00 00
04 00 00 00             02 00 00 00             04 00 00 00
44 f1 67 00             24 f1 67 00             04 f1 67 00
34 f1 67 00             14 f1 67 00             f4 f0 67 00
01 01 00 00             01 01 00 00             01 01 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
Archery                Archers                 Griffon
00 00 00 00             01 00 00 00             01 00 00 00
01 00 00 00             02 00 00 00             04 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00
00 00 00 00             00 00 00 00             00 00 00 00

The first column have original values ; the second column is empty for now but is here to place the changes you want. Then, on other place on table these values are assembled to "one column" just have to copy paste ALL heroes caracteristics once and all heroes speciality once. With hex editor, just two copy paste and all your modifications for this may be done.
So if someone can tell me how to give this to community I shall share with pleasure. For now the table is in excel but convert it to other kind of table shall be easy.

Remember : You have to change descriptions and icons (in UN44.def and UN32.def) for players can know what are new specialities. The hex editing changes what does speciality (no matter what's written in description). So even if you don't change icons, abilities will be changed.

Reading these values, I was thinking about Master of Puppets creature editor. I'd like to know if its possible to adaptate his editor to change heroes caracteristics and speciality and adaptate his creature editor for a "standard SoD" game... I'll ask to him if he has patience and time to answer.
Anyways thanks a lot for your nice posts, I'm still reading and reading again to understand better...
____________
FfuzzyLogik.

If I'm crazy ? Sure, because its madness to be normal...

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


Honorable
Legendary Hero
Jonny Come Sometime
posted August 04, 2017 11:04 PM

FfuzzyLogik said:
Reading these values, I was thinking about Master of Puppets creature editor. I'd like to know if its possible to adaptate his editor to change heroes caracteristics and speciality and adaptate his creature editor for a "standard SoD" game... I'll ask to him if he has patience and time to answer.
Anyways thanks a lot for your nice posts, I'm still reading and reading again to understand better...


that would certainly be great stuff IMO if you can achieve that mate, I would for sure use that to have the Forge town for plain SoD if it would be on the cards cheers lol
____________

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


Adventuring Hero
posted August 05, 2017 12:16 AM
Edited by FfuzzyLogik at 01:00, 05 Aug 2017.

I was a bit too fast... The hex editor I have don't "paste" data coming from excel table. For him its a text and he won't just copy the values... I'll search how to do these modifications more fast than manually search and change one by one the file you want to.

For now, I'll think about what I'll do with this new stuff !
Delete heroes useless or very very bad speciality (like fortune for useless, many spells speciality are bad), decrease the strongest ones (logistics, offense, defense, ...) and up some not good ones (mysticism, some spells speciality...).
I'm thinking about replacing hero's ressource speciality because they don't depend of level and are "very good" for secondary hero but "not good" for fighting hero... So, you'll hope to get them (even if they are not from your faction) as "mine" and I find it's just luck to get some hero who gives you 350gold/day, in few days he gives you money instead of costing you a hero (2500 gold)...

Well, many things to do !
Ah, do someone knows where is written the % of increase growth for creatures done by citadel (actually +50%) and castle (actually +100%) ? And the ones for bonus dwelling (for skeletons, dwarves, dendroids, hell hounds, griffons, goblins) ?

Thanks alot,
____________
FfuzzyLogik.

If I'm crazy ? Sure, because its madness to be normal...

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


Responsible
Supreme Hero
posted August 05, 2017 05:45 AM

Quote:
Ah, do someone knows where is written the % of increase growth for creatures done by citadel (actually +50%) and castle (actually +100%) ?

There are no such values in the executable. To change the growth increase provided by citadel/castle you have to change machine instructions direcly. This can be done either with a binary patch, or a plugin for the HD mod.

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


Supreme Hero
posted August 05, 2017 08:01 AM

Maybe its another code not 50% but 50 and 100? Or else.
And how to remove building order? Dont want build fort, citadel, castle before capitol?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 32 pages long: 1 10 ... 11 12 13 14 15 ... 20 30 32 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0965 seconds