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 112 pages long: 1 10 20 30 40 50 60 70 80 90 100 ... 101 102 103 104 105 ... 110 112 · «PREV / NEXT»
FfuzzyLogik
FfuzzyLogik


Known Hero
posted August 13, 2023 05:50 PM
Edited by FfuzzyLogik at 17:54, 13 Aug 2023.

Hello here,

Quite a time I haven't been here and it looks activity decreases a bit. On these times, more things are happening on other support than sites...

I was searching to mod luck and Morale.
Both of them works in a way samely and I'd like to make them different.

This paragraph is just a comparison of both moral and luck and will say "luck is generally weaker than moral"... You can skip it...
- First of all, why I find its "quite the same" ? Because basically, one does something around doble damage and other makes you an unit play twice so we can siplify and say "it also makes a new attack so doble damage too". Other point, probabilities are the same.
- The only "good point" of luck over morale is when you attack a stack and (almost) kill it because of the lucky strike, the creature stack you attack will die so no counterattack. With morale you'd be counterattacked then you could kill the stack...
- In all other cases, get moral to some unit is stronger because it makes you moove again (so reach some unit if you could not, luck cannot allow you to do that) and/or replace your army to a better position (even attack, then back to not be attacked again) or eventually cast a spell for some special units can be very interesting... So it offers wayyyy more than a bit of damage.

So the idea was to change a bit probabilities to make the two things working a bit more differently.
=> For luck.
Idea was to increase the probability to occur and decreases the effect.
With the already documented datas we can change the probabilities :
For melee : 04154E and for range : 03F66C the probabilities of good luck (1/24 per luck bonus = 4,2%).
- I intend to change them to 1/12 (so 8,33% per luck bonus). At +3 it will get a 25% chances to get a lucky strike.
- I also want to get the max bonus to 6 so 50% chances if you get there (its quite hard to get +6 but it will give some interest in getting the skill to not cap max too soon).
To change the max cap, the localisation is 03F658/03F65F for ranged and 04153A/041541 for melee.

> For negative luck, it was impelmented only on HoTa.
Idea is to do some modifications on probabilities there but I have not the adresses.
- For negative luck : 1/9 per point of luck so 11,1% per lacking luck. At -3 luck you'll have 33,3% to get unlucy.

> Other point is (as these changes are huge) to diminish the luck effect because if you get 50% to have a lucky strike (for +6 luck), its often ! And here is the main question.
- I'd like lucky strike makes you add +50% damage (instead of "doble" it even if doble is not totally accurate description).
- I'd also like the "unlucky strike" does 2/3 damage instead of 1/2.
And here I'm struck ^^

=> If you're interested, for morale my intentions are to :
- Get also -3 to +6 (adresses to change the max : 064586 and 0645A0, for the min value its here : 064754 and 06477C).
- Replace 1/24 per 1/30 (3,33% per morale point so max +20% with +6) can be changed at 0645AA.
- Replace 1/12 per 1/15 (6,67% per bad morale point so -20% with -3) can be changed at 06479E.

These changes have an other minor but hoped effect, to make a modding of some "luck/morale" and "unluck/unmorale" spells to get a better place in game as in standard game you'd better to cast "bless/curse/stone skin/shield" for damaging effects.

So luck will happen far more freqently but will have less effects. The probabilities are going to be more than twice the "moral" effect to compensate the +50% damage instead of "doble".
And morale will do something similar but caps to +6 means (for both skills) two things : artifacts of morale/luck will have more interest for heroes with leardership/luck skill and getting leadership/luck can lead you to better results.

Have a good day,

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

Tavern Dweller
posted August 24, 2023 08:56 PM

Hello modding specialists.
A question about the images of the hero Giselle.
Please tell me where Giselle's avatar is stored?
____________

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


Legendary Hero
Heroes is love, Heroes is life
posted October 04, 2023 06:37 PM

Does anyone know how to allow 10 skills? (I know the graphics does'nt support it, but I don't really care.)

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


Responsible
Supreme Hero
posted October 04, 2023 06:51 PM
Edited by AlexSpl at 18:55, 04 Oct 2023.

There are well-known mods on 10+ secondary skills even with a scrollbar. Just google them. You don't have to use them, but you can see their code to borrow for your purposes.

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


Legendary Hero
Heroes is love, Heroes is life
posted October 04, 2023 07:07 PM
Edited by phoenix4ever at 19:08, 04 Oct 2023.

Thanks, but even if I download such a mod, where do I find the code?
(It would be awesome if I could also get the scrollbar to see all skills.)

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


Responsible
Supreme Hero
posted October 04, 2023 07:12 PM
Edited by AlexSpl at 19:18, 04 Oct 2023.

http://heroescommunity.com/viewthread.php3?TID=44682

Of course, it's ERM, but you can always rewrite it as a plugin or just see which addresses are used. Note, that ERM uses decimal addresses.

It's even possible to show only small pictures of secondary skills to make room for all possible skills.

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


Legendary Hero
posted October 04, 2023 07:17 PM

Not my cup of tea but you are going to hate the ten skills, unless you find a way to give AI's heroes the right ones...
You will be reducing the luck factor for yourself, while keeping it almost equal for AI. You will still find heroes without Wisdom or any magic school even if they all will have Logistics, Estates and possibly Navigation or Pathfinding, depending on the map. To affect that you would need to change the priorities AI uses.
____________

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


Responsible
Supreme Hero
posted October 04, 2023 07:21 PM
Edited by AlexSpl at 19:22, 04 Oct 2023.

Quote:
Not my cup of tea but you are going to hate the ten skills, unless you find a way to give AI's heroes the right ones...

This task belongs to elementary ones. You have to just intercept a decision of AI when leveling-up and write as big decision-maker as you want instead. Really a simple task.

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


Legendary Hero
Heroes is love, Heroes is life
posted October 04, 2023 07:24 PM
Edited by phoenix4ever at 19:31, 04 Oct 2023.

bloodsucker said:
Not my cup of tea but you are going to hate the ten skills, unless you find a way to give AI's heroes the right ones...
You will be reducing the luck factor for yourself, while keeping it almost equal for AI. You will still find heroes without Wisdom or any magic school even if they all will have Logistics, Estates and possibly Navigation or Pathfinding, depending on the map. To affect that you would need to change the priorities AI uses.

Maybe, but 8 skills just does'nt cut it. There are many heroes that NEED 10 skills to get an optimal build.
Besides you are always forced to pick Logistics, Earth, Air, Wisdom, Offense and Armorer. (Boring)
Your hero might start with 2 non-ideal skills, leaving zero room for custumization. How will you ever fit Fire or Water Magic in there or how about Archery at least for Tower and ranged creature specialists?

Besides there are other ways to make sure AI get good skills.

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


Responsible
Supreme Hero
posted October 04, 2023 07:29 PM
Edited by AlexSpl at 19:31, 04 Oct 2023.

Btw, you can forget skills you don't want anymore with this plugin. Source code is in this post. Right-click and say good-bye to Eagle Eye It's even not a cheat, as you loose a skill.

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


Legendary Hero
Heroes is love, Heroes is life
posted October 04, 2023 07:34 PM

AlexSpl said:
http://heroescommunity.com/viewthread.php3?TID=44682

Of course, it's ERM, but you can always rewrite it as a plugin or just see which addresses are used. Note, that ERM uses decimal addresses.

It's even possible to show only small pictures of secondary skills to make room for all possible skills.

ERM is like chinese to me, I don't understand any of that.
I don't think plug-ins work with HotA and HD Mod either.

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


Responsible
Supreme Hero
posted October 04, 2023 07:42 PM

Quote:
I don't think plug-ins work with HotA and HD Mod either.

What have I say? They are oficially unsupported for HotA has to maintain fairness of online games. But if you use HotA locally for your purposes (mods), it can support plugins. I bet there are a couple of ways to make it support plugins which can be found even at HC.

As for "Chinese", I agree. Plugins are way too easier to master.

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


Legendary Hero
Heroes is love, Heroes is life
posted October 04, 2023 07:49 PM

Please Alex my dear god-tier modder. <Insert praying hands here>
If you know the solution for 10 skills or know where to find it, can you please help me?

I'm not familiar with ERM or plug-ins or how to make HotA and HD Mod work with plug-ins and I don't feel like learning how all that (possibly) works.

Another solution might be to remove Wisdom, I think the solution was already posted in BTB's thread. Removing Wisdom, might have some OP effects though.  

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


Responsible
Supreme Hero
posted October 04, 2023 08:05 PM
Edited by AlexSpl at 20:12, 04 Oct 2023.

Take into consideration the fact that changes of such scale require modifying pretty big chunks of code. Which is, obviously, a pain in hex. To make it more clear, you have to write your idea in assembler Then translate your code to machine language, then find out how to squize those hex-instructions into the code of the game in a way to not break anything. An output will be a page of hex codes, and, believe me, no one sane modder doesn't want to go through these steps again and again, so I usually tell people not to even start hex-editing things that are harder than adding +1 to stats, for example.

Complex problems require a different approach to keep your mind healthy and sane. So, if you want to mod further, mod complex things, you should consider to learn how to make plugins, or learn ERM (I cannot recommend this path, because basically ERM provides shortcuts to solve common modding problems but lacks freedom of coding and readability).

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


Legendary Hero
Heroes is love, Heroes is life
posted October 04, 2023 08:12 PM
Edited by phoenix4ever at 20:12, 04 Oct 2023.

Aww that's too bad, I did'nt know it was that complicated, maybe it was just changing a few digits, but I guess not.
I would be okay with graphics not supporting it, but perhaps that does'nt make things easier?

Is there an (easy) way to somehow remove unwanted skills?

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


Responsible
Supreme Hero
posted October 04, 2023 08:13 PM

Without graphics it would be much easier obviously. I see what can be done later.

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


Legendary Hero
Heroes is love, Heroes is life
posted October 04, 2023 08:16 PM

Thank you very much!

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


Responsible
Supreme Hero
posted October 05, 2023 10:04 AM
Edited by AlexSpl at 10:49, 05 Oct 2023.

You can change secondary skills limits here -
DAFCE
E256A

Write 0A to be able to learn up to 10 secondary skills, 1C - up to all 28.

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


Legendary Hero
Heroes is love, Heroes is life
posted October 05, 2023 10:57 AM

That's amazing Alex, thank you very much.

Any reason why it needs to be edited at two locations?

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


Responsible
Supreme Hero
posted October 05, 2023 11:02 AM
Edited by AlexSpl at 11:06, 05 Oct 2023.

The first address is the limit of secondary skills slots during the process of their generation at a level-up. The second one is the real limit of hero slots for secondary skills. If you don't change both of them, level-ups will be inconsistent.

Also, the second limit is needed to be able to learn new skills from Witch Huts, Universities and so on.

The graphics part cannot be easily implemented via hex-editing, so I won't even try this

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 112 pages long: 1 10 20 30 40 50 60 70 80 90 100 ... 101 102 103 104 105 ... 110 112 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.2056 seconds