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?
Thread: How to edit HotA? This Popular Thread is 111 pages long: 1 2 3 4 5 ... 20 40 60 80 100 ... 107 108 109 110 111 · «PREV / NEXT»
phoenix4ever
phoenix4ever


Legendary Hero
Heroes is love, Heroes is life
posted February 17, 2024 03:14 PM
Edited by phoenix4ever at 15:24, 17 Feb 2024.

CsArOs said:
0xe41fe e4 ea 63 00 -> 9a e8 63 00


Hmm, so I just tested this, but this time Logistics specialists does'nt get any bonus at all, that's weird.

If I can't get it to work, I might just make Kyrre a pegasi specialist, Gunnar a medusa specialist and Dessa a Stone Skin specialist...

Edit: Wait, first you said e4f1e and now you are saiyng e41fe?
I tried both and can't get them to work.

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

Tavern Dweller
posted February 17, 2024 03:28 PM

Hmmm, I don't know why the 2.5% does not work. But I'm 100% certain that the pointer I gave you is correct - I just made it reference a 10% value from some skill and sure, the bonus was 10% per level. Perhaps some values are not supported? I'll look into it further tomorrow.

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


Legendary Hero
Heroes is love, Heroes is life
posted February 17, 2024 03:36 PM
Edited by phoenix4ever at 15:38, 17 Feb 2024.

Thanks.
Or maybe you could test it yourself and see if it actually works?, when you have the time and feel like it, of course.
I would be fine with either 2,5% or 3%.

I think 2,5% might not work, because it maybe not exists anywhere else in the data?

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


Hired Hero
posted February 18, 2024 11:07 AM
Edited by Karyoplasma at 11:10, 18 Feb 2024.

2.5 exists at offset 23B8D0, so try changing the value at E41FE to D0B86300.

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

Tavern Dweller
posted February 18, 2024 12:59 PM
Edited by CsArOs at 13:47, 18 Feb 2024.

I tried for hours. I tried a few different methods. Here's what I know:
1) The 2.5% mentioned above does *not* work
2) The offset is correct
3) Changing the offset can break the game, but cannot change the value (honestly I tried so many tests and some of them seem to work but idk anymore)
4) HotA.dll probably changes the Logistics function; it does change the Logistic skill % and might probably change this as well.
5) I tried replacing some other skills values for the cdcccc3c and referencing them, and while it is stable (no crashes) it does not seem to apply the 5%.
6) I don't know how to fix it further. I might look back into it fresh in the upcoming week, but Gunnar's movement points at level 5 with expert Logistics are starting to burn into my brain.

Phoenix4ever, I hope I can help you with your problem somehow differently.

In the meantime, is anyone able to answer my questions above? HotA.dat values for the Interference Artifact bonuses, the Factory's Resource Silo and the Horn of the Abyss Fangarm raising would be particularly beneficial for me.

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


Legendary Hero
Heroes is love, Heroes is life
posted February 18, 2024 01:02 PM
Edited by phoenix4ever at 13:42, 18 Feb 2024.

Karyoplasma said:
2.5 exists at offset 23B8D0, so try changing the value at E41FE to D0B86300.

Thanks, I just tested this, but I still get the 5% bonus.

@CsArOS Don't worry mate, I suspect it might have something to do with HotA as well, their change probably overwrites ours sadly.
I just don't like HotA's 5/10/20 version of Logistics, so I think this will be the end of Logistics specialists in my game...

About your HotA modding questions, I wish I could help, but I don't know much about it. I don't think many do, except for the HotA Crew itself of course.
Personally I would like to change Interference weights for classes and also know how to change Cove and Factory's spell probabilities.
Making Horn of The Abyss artifact weaker could also perhaps allow it to actually be used.

Edit: CsArOs I recently had ALL skill specialists set to 4% per level, so I do know how to change the percentage globally, but I think I did this mostly to nerf Logistics specialists.
But as this change also affects all other skill specialists, I decided to make it 5% again, this however makes the Logistics specialists too powerful, so for now they will have to do with Pegasi, Medusa and Stone Skin specialty. (They still start with Logistics, which could already be considered powerful by itself.)

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

Tavern Dweller
posted February 18, 2024 01:46 PM

Phoenix4ever, did you alter the defs to make specialty images for Medusae? Would you mind sending these? I want to make a medusa specialist out of Mutare but I'm not good with editing graphics (i.e. I cant do it at all)

I guess you could make all specialists use 3% value globally and change all other specialists manually for 5%...

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


Legendary Hero
Heroes is love, Heroes is life
posted February 18, 2024 01:51 PM

I haven't changed their specialty icon, I think I researched some time ago how to do this, but sadly I don't think it works with HotA either.
So their specialty icon is not correct. I did change their specialty description in HeroSpec.txt though.

Hmm I suppose you are right, setting it globally to 3% and changing all other than Logistics specialty would work, but it seems like quite a big task, especially if I change my mind or HotA gets updated. (Which also resets all changes.)
So for now I will just enjoy my new Pegasi, Medusa and Stone Skin specialists.

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

Tavern Dweller
posted February 21, 2024 02:32 PM
Edited by CsArOs at 14:55, 21 Feb 2024.

Phoenix4ever, I saw your thread about your changes to the heroes 3 and I'm wondering how you achieved them. Can you just name appropriate file / offset?

1. How did you alter Town Portal's movement point cost? Do you know how to alter DD's movement points as well?

2. How did you alter banned by default artifacts, buildings heroes, etc.?

3. How did you make Eagle Eye and Archery artifacts work without skills? Speaking of Eagle Eye, how did you make it apply to up to level 5 spells?

4. How did you change Grail-seeking for AI?

5. How did you alter Wizard's Well's mana return?

6.
Quote:
Pyramid is allowed, but a Quest Gate requirering a level 18 hero is always present in front of it.
How the hell did you even come up with a way to code it in?

7. How did you add 17th available heroes for each faction? As in, how did you unban them?

8.
Quote:
* Added a new feature: War Machines no longer get destroyed permanently, they will be back after combat just like the catapult. It does not work for HotA's cannon though.
How??? I thought catapult was only ever added when a siege started...


If you still need it, I can show you some HotA.dat edits you mentioned having trouble with in that thread.

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


Legendary Hero
Heroes is love, Heroes is life
posted February 21, 2024 04:15 PM
Edited by phoenix4ever at 16:16, 21 Feb 2024.

Hi CsArOs

Wow that's a lot of questions, well better get to it then and start from:

1) Movement cost of Unskilled - Advanced Town Portal can be changed at 1D51F and Expert Town Portal at 1D534.

Regarding Dimension Door you can find something about it in BTB's Hacking Guide. I believe it is coded somewhat differently than Town Portal for some reason.
(Note that DD can actually cost less movement points, if you cast it at the end of the turn, so 300 or 200 movement points are not always true.)

2) Hmm I think I mostly did this through the map editor for a single map, not through coding.  

3) Archery artifacts without Archery can be enabled at E43EE (should be a 0F at this address) you need this patch: 7E 40 90 90 90 90.
Eagle Eye artifacts without Eagle Eye can be enabled at E46AE (should be a 0F at this address) you need this patch: 7E 40 90 90 90 90.
(I have one for the Necromancy artifacts as well, but you might not want to make undead units, unless you are actually playing Necro.)  

Eagle Eye learning level 5 spells is quite a long patch.
From 1A028A (should be a 42 at this address) you need this patch:
83 C2 02 3B 50 18 7C 47 8B 4D C4 E8 F6 43 F4 FF D8 0D 68 AC 63 00 E8 EF 7C 07 00 6A 64 5A.

4) AI searching for grail at Expert can be changed at 282330: You will see this patch 00 00 00 00 00 00 00 00 replace the last two 00 with D0 3F for AI looking for grail after 50% visited obelisks. C0 3F if you want 25%.
For Impossible AI it starts at 282338, again you will see a 00 00 00 00 00 00 00 00 patch, change the last two 00 to D0 3F for 50% or C0 3F for 25%.  

5) This is also quite a long patch and will return 10% mana per day.
From C7F5F (should be a 0F here) you need this long patch: 0E DB 45 F8 D8 0D 48 83 67 00 50 DB 1C E4 58 0F BF 1E 01 C3 90.
If you wanna disable the WW bonus entirely, it can be done at C7F5E, you need to change 74 to EB.  

6) Again this was only done in the map editor, for individual maps, not through coding.
I wish there was some way to only allow visiting the Pyramids after having Expert Wisdom, otherwise the spell is wasted.
Or the Pyramid should offer the spell again, but you would get -2 luck.

7) Again the map editor, not through coding. (I have currently only 16 heroes per faction though, with Cove and Factory there is already a lot and if there should be 17th heroes, all towns should get one imo and there is no one for Conflux sadly.)  

8) The catapult will still only be present when you attack towns, but if you for example have your First Aid Tent destroyed during battle, you will still have it after winning the battle.
At D94D0 you should see this patch: 55 8B EC, change this to C2 04 00, it will not work for HotA's cannon though.  

What have you found in HotA.dat?, im curious.
If you find a way to nerf the Horn of the Abyss artifact, I would really like to know.

I think I will update "My Gameplay changes" thread soon, because I have done some things since I last updated it.

Happy modding.  

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

Tavern Dweller
posted February 21, 2024 05:02 PM

Thanks a lot! I edited HotA.dat quite a lot for my mod, especially heroes and creatures, but also buildings. Sadly, didn't find the Horn's % yet


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


Legendary Hero
Heroes is love, Heroes is life
posted February 21, 2024 05:20 PM

You are welcome.

Have you found the cost for the Firebird/Phoenix horde building, Vault of Ashes?
I would like this to be 0 gold and 0 mercury, as this was not an expense before HotA.

I would also like to revert some things to how they were before HotA, Arch Devils giving -1 Luck, having Inferno, Tower and Conflux's old build order back and Firebirds being immune to Fire for example.

What else have you changed in HotA.dat?

Would be nice if we get a better understanding of HotA.dat and HotA.dll, as that is obviously where most of the HotA stuff are coded...

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

Tavern Dweller
posted February 22, 2024 01:37 PM
Edited by CsArOs at 13:46, 22 Feb 2024.

Creatures in HotA.dat are first written in plaintext, then their stats are written in hex one by one: cost (wood/mercury/ore, etc.), gold cost, then all stats one by one. Last 2-3 used values are reserved for pointing that its hota or smth similar, as changing them does not work (usually crashes).

Buildings are written in plain text as a list, and afterwards in hex all costs are written one by one in the order the buildings were listed. I used that to change mercury for crystal in Factory without a problem. Note that Gantry and Upg Gantry are technically special buildings, not creature dwellings.

I didn't find Vault of Ashes yet and I suspect that it may be somewhere else, because its not defined the way other hota buildings are.

Artifacts are defined mostly in plaintext as class etc. I cant find their effect values yet, I suspect they may be somewhere in HotA.dll.

Speaking of which - I'm terrified of that file. For now, I didn't look through it that much.

Edit: Do you know where % for special attacks (Blind, Petrify, Stonegaze...) is? I don't need Fear or Death Stare (already found these two)

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


Legendary Hero
Heroes is love, Heroes is life
posted February 22, 2024 05:19 PM
Edited by phoenix4ever at 17:23, 22 Feb 2024.

Ahh okay that's interesting, might be useful later.

Yeah HotA.dll seems extremely confusing, I have no idea what anything is here either. (The only things I think I have changed in HotA.dll is effects of Estates, Intelligence and Mysticism and percentages of Necromancy artifacts.)

No sorry, I don't know how to change creatures ability chance, I have'nt looked in to it.
BTB might have something about it in his guide.

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

Tavern Dweller
posted February 22, 2024 06:12 PM

Where do you have % of Necro arts in HotA.dll?

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


Legendary Hero
Heroes is love, Heroes is life
posted February 22, 2024 06:38 PM

Amulet of the Undertaker is at: 1CD09C
Vampire Cowl is at: 1CD0A0
Dead Man's Boots is at: 1CD0A4

I have returned them to 5, 10, 15% otherwise they are almost useless.

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

Tavern Dweller
posted February 24, 2024 01:30 PM
Edited by CsArOs at 12:33, 25 Feb 2024.

Thank you for help! Do you know how do you find appropriate offsets in HotA.dll? I'm looking for whatever overwrites 0x07852F and 0x7852a from h3hota HD.exe (the first aid tent min/max heal value). Also the function that overwrites 0xa4210 and 0xa4212 (rally flag bug) would be great.


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


Legendary Hero
Heroes is love, Heroes is life
posted February 24, 2024 10:37 PM

No problemo.

Hmm I'm not at home right now, so I can't check my notes, but I had First Aid heal more than HotA's version currently do. I think the always heals max amount still works though. I can find out where to enable that tomorrow.
I think it must be possible to change healing amount somewhere in HotA.dll, but I haven't looked for it.

What is this Rally Flag bug you are referring to?

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

Tavern Dweller
posted February 25, 2024 12:53 PM
Edited by CsArOs at 17:34, 25 Feb 2024.

Ideally I'd have it heal 40-50, but if only the top amount works, I'll change it to 20-50.

The rally flag bug since HotA 1.7.0 causes the rally flag to apply the morale buff, then the luck buff, then morale buff AGAIN, and then a -1 Luck effect. You end up with +2 morale +0 luck after visiting the flag instead of the intended +1 / +1. I found a fix for the morale part (I posted it on wiki a few days ago), but I can't fix the Luck part - I believe it is somewhere else entirely or in HotA.dll.

For those whom I know not yet, but might wonder into this forsaken land:
I found answers to a lot of the questions I've had before in [url=http://btb2.free.fr/mods/h3/hacking.txt]btb2's guide[/url].

Btw, in there I found the Town Portal level required to choose town offset, but it doesn't work for AI (I just tested it). Do you know the AI - appropriate offset?

Edit: I tested changing top end value of first aid - and assuming it is 0x7852a, this crashes the game whenever first aid heals smth.

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


Legendary Hero
Heroes is love, Heroes is life
posted February 25, 2024 08:00 PM
Edited by Phoenix4ever at 20:04, 25 Feb 2024.

Ah okay, I was'nt even aware there was a Rally Flag bug in HotA.
You should report it here:
heroescommunity.com/viewthread.php3?TID=39912
So maybe they can fix it soon.

Yeah it was BTB's hacking guide I have been referring to a couple of times, but maybe you did'nt know about it.

It was actually me who told BTB about the Town Portal hack, but yeah it sadly does'nt work for AI.
I guess the best solution is to just allow TP or ban it entirely or you can make it slightly less OP by making it cost more movement points like I did.

If you want First Aid to always heal max, this can be done at 7852C, change 8B D0 to EB 0A.
I believe it still works with the current version of HotA.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 111 pages long: 1 2 3 4 5 ... 20 40 60 80 100 ... 107 108 109 110 111 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1405 seconds