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 > Library of Enlightenment > Thread: Mod for enabling all starting heroes?
Thread: Mod for enabling all starting heroes? This thread is 2 pages long: 1 2 · «PREV
phoenix4ever
phoenix4ever


Legendary Hero
Heroes is love, Heroes is life
posted September 28, 2018 08:14 PM
Edited by phoenix4ever at 20:20, 28 Sep 2018.

Okay so it works with original SoD, but not with HD Mod. It's gonna be a pass from me then, but thanks for your hard work any way.

Edit: I guess it's not possible to turn off quick hero selection in HD Mod?

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


Admirable
Supreme Hero
posted September 28, 2018 08:30 PM

It definitely works with HDmod, you can just ignore its quick-select feature for now.

If I ever decide to finish this I can implement my own quick-select; it already exists as part of something else I have, just requires that I glue everything together.

____________
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


Legendary Hero
Heroes is love, Heroes is life
posted September 28, 2018 08:56 PM

Well that is awesome, but how do you ignore HD Mods quick select feature? I also need an older version of HD Mod as it sadly does'nt support plug-ins anymore.

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


Famous Hero
posted September 28, 2018 09:41 PM

RoseKavalier, many thanks !

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


Famous Hero
posted September 29, 2018 12:31 AM

RoseKavalier said:
It definitely works with HDmod, you can just ignore its quick-select feature for now.

If I ever decide to finish this I can implement my own quick-select; it already exists as part of something else I have, just requires that I glue everything together.



How Conflux can be excluded from list of towns ?

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


Responsible
Legendary Hero
Modding the Unmoddable
posted September 29, 2018 01:11 AM
Edited by NimoStar at 01:19, 29 Sep 2018.

Very good. Many thanks.
As this is a hack, will it be compatible online?

Also:
However why would it not matter for random maps?
You can't choose directly but:
You can create a random map, then select it from list and choose hero in advanced options.
Also it would be possible to write a plugin that enables all heroes by default in random maps :V

pagina de fotos

Own quick select would be nice if you already have it

PS: How are these plugins suppossed to be used? Sorry, Im a noob at H3 modding. Putting it into the game folder and running isnt doing anything.

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

Tavern Dweller
posted September 29, 2018 04:27 AM

Amazing to see such jobs above.
Additionly, I want to give some mod with the hdmod, reduce the ratio of the Necromancy to the half for example(like hota). Could any friend show me hou to do this? hex editing or plugins?

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


Admirable
Supreme Hero
posted September 29, 2018 04:40 AM

phoenix4ever said:
Well that is awesome, but how do you ignore HD Mods quick select feature? I also need an older version of HD Mod as it sadly does'nt support plug-ins anymore.

Do as before HDmod implemented it: use the arrows.

Ben80 said:
How Conflux can be excluded from list of towns ?

If you look at _StartingHeroesList_, I'm pretty sure the town ID is stored in there. There's a loop starting slightly before 0x583D95 that goes through all 156 heroes and checks if they are valid hero class for current town (e.g. Knight or Cleric).
You'd have to change this part to a LoHook and check against 16 for Conflux specifically.

NimoStar said:

As this is a hack, will it be compatible online?

Also it would be possible to write a plugin that enables all heroes by default in random maps :V

PS: How are these plugins suppossed to be used? Sorry, Im a noob at H3 modding. Putting it into the game folder and running isnt doing anything.

No clue about multiplayer, I only tested a random map.

From what I saw, all heroes tied to current faction are made available in random maps - see Adrienne screenshot.

Installation: read this page and the next - same process.

sandruse said:
Amazing to see such jobs above.
Additionly, I want to give some mod with the hdmod, reduce the ratio of the Necromancy to the half for example(like hota). Could any friend show me hou to do this? hex editing or plugins?

Refer to this thread, all information about plugin creation and hex editing is described. The address for Necromancy is in the very first post. Read a few pages for explanations - Maurice and AlexSpl provide a lot of details and how-tos.
____________
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
NimoStar
NimoStar


Responsible
Legendary Hero
Modding the Unmoddable
posted September 29, 2018 06:59 AM
Edited by NimoStar at 07:06, 29 Sep 2018.

What am I doing wrong?



PS:

Ok, I had to creater a subfolder for the dll. This wasnt specified and only took it because I installed other plugins and they made folders.

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


Famous Hero
posted September 29, 2018 07:06 AM
Edited by Ben80 at 08:25, 29 Sep 2018.

RoseKavalier said:


Ben80 said:
How Conflux can be excluded from list of towns ?

If you look at _StartingHeroesList_, I'm pretty sure the town ID is stored in there. There's a loop starting slightly before 0x583D95 that goes through all 156 heroes and checks if they are valid hero class for current town (e.g. Knight or Cleric).
You'd have to change this part to a LoHook and check against 16 for Conflux specifically.



It is the way to exclude Conflux heroes from heroes list, but it can not help to exclude Conflux from town list.


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


Legendary Hero
Heroes is love, Heroes is life
posted September 29, 2018 08:17 AM

RoseKavalier said:

Do as before HDmod implemented it: use the arrows.

Ahh of course, foolish me.
I'm confused about how you made that screenshot of all 18 Stronghold heroes though.

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

Tavern Dweller
posted September 29, 2018 01:34 PM
Edited by sandruse at 14:10, 29 Sep 2018.

Thank you RoseKavalier! That's very helpful. So lots to learn

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


Admirable
Supreme Hero
posted September 29, 2018 02:31 PM

Ben80 said:
It is the way to exclude Conflux heroes from heroes list, but it can not help to exclude Conflux from town list.




Oh that.
It could be done but I don't have time right away. If you look in the patched areas it might give you some clues where to look at.

One way I know: you can simulate AB & remove Conflux by modifying 0x67F554 (0/1/2/3); HDmod already does this... but you will lose some game functionality doing so.
cf. LodType2LoadFromPo in IDA.
____________
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
Ben80
Ben80


Famous Hero
posted September 29, 2018 04:15 PM

RoseKavalier said:
Ben80 said:
It is the way to exclude Conflux heroes from heroes list, but it can not help to exclude Conflux from town list.




Oh that.
It could be done but I don't have time right away. If you look in the patched areas it might give you some clues where to look at.

One way I know: you can simulate AB & remove Conflux by modifying 0x67F554 (0/1/2/3); HDmod already does this... but you will lose some game functionality doing so.
cf. LodType2LoadFromPo in IDA.


Thanks !

I believe actually it is quite hard to remove Conflux from town list and still generate Random map. If it would be easy possibly we could see corresponding option in HD mod.

Though it is possible to exclude Conflux from generated map, not starting list:

int __stdcall disableConfluxTowns(LoHook* h, HookContext* c) {
c->return_address = 0x538BC1;    
return EXEC_DEFAULT;
}
...
_PI->WriteLoHook(0x538BB4, disableConfluxTowns);

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


Famous Hero
posted September 29, 2018 04:33 PM

Also one can disable generation of Conflux monsters in zones.
However there is bug in original code at 538D79. Actually it denies
Fortress monsters, not Conflux ones.
Wrong pointer [edi+9Dh]

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


Admirable
Supreme Hero
posted September 29, 2018 04:59 PM

Ben80 said:

I believe actually it is quite hard to remove Conflux from town list and still generate Random map. If it would be easy possibly we could see corresponding option in HD mod.

Though it is possible to exclude Conflux from generated map, not starting list:


Disable Conflux from random maps selection
_PI->WriteByte(0x586C59 + 2, 8);
_PI->WriteByte(0x583C52 + 2, 7);
_PI->WriteByte(0x586ADA + 1, 7);
____________
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
Ben80
Ben80


Famous Hero
posted September 29, 2018 08:07 PM

RoseKavalier said:
Ben80 said:

I believe actually it is quite hard to remove Conflux from town list and still generate Random map. If it would be easy possibly we could see corresponding option in HD mod.

Though it is possible to exclude Conflux from generated map, not starting list:


Disable Conflux from random maps selection
_PI->WriteByte(0x586C59 + 2, 8);
_PI->WriteByte(0x583C52 + 2, 7);
_PI->WriteByte(0x586ADA + 1, 7);


Cool ! I have tried to change 8 to 7 in one place several days ago and then, browsing code was frightened that 8 to 7 must be changed in many places, let's say, dozen. This important address 0x586C59 I have missed.

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


Responsible
Legendary Hero
Modding the Unmoddable
posted October 01, 2018 05:40 AM

Make another thread for disabling Conflux in random map generator, please, as that has nothing to do with getting the campaign heroes as starters...

As an addendum, I have tried generating the random maps and there the campaign heroes can't be chosen unless manually unlocked. It would be nice to add a variation that unlocks them automatically when random generating. Anyone has any idea how to do that? I can do the hex editing if know what bytes to change for what.
____________
Never changing = never improving

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

Tavern Dweller
posted February 20, 2023 02:53 PM

RoseKavalier said:
Test the [url=https://github.com/RoseKavalier/h3_plugins]plugin release[/url] (just scroll down to Download section, code available in matching repository) with SoD.

What works:




What doesn't work:
HDmod quick hero selection still tries to read from the original hero list so you will get a bunch of Orrins.


It could be fixed but the fastest way is to rewrite the entire function myself. Can't be bothered rn.


Does this still work today? I tried it, tried the updated version too, and I still can't see nor choose the campaign heroes.

Please, my namesake is in the game and it looks exactly like me, but I can't use it...

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 2 pages long: 1 2 · «PREV
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0726 seconds