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: Is it possible to...
Thread: Is it possible to... This thread is 2 pages long: 1 2 · «PREV
heymlich
heymlich


Famous Hero
posted May 31, 2023 02:05 AM

AlexSpl said:
According to this plugin, you can cap the number of heroes just by hex-editing -

_PI->WriteByte(0x431391, maxHeroes);
_PI->WriteByte(0x4A3BE1, maxHeroes);
_PI->WriteByte(0x52A891, maxHeroes);
_PI->WriteByte(0x5D566F, maxHeroes);
_PI->WriteByte(0x5D7E02, maxHeroes);
_PI->WriteByte(0x5D7E0B, maxHeroes);
_PI->WriteByte(0x5D860A, maxHeroes);



Can I put more than 8?

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


Responsible
Supreme Hero
posted May 31, 2023 11:54 AM

You could do it, if not the fixed size of heroes array. You still can try to raise the limit up to 10, if you don't care of tavern heroes. But any number of heroes above 8 will definitely break some aspects of the game.

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


Legendary Hero
Heroes is love, Heroes is life
posted May 31, 2023 12:02 PM

AlexSpl said:
_PI->WriteByte(0x431391, maxHeroes);
_PI->WriteByte(0x4A3BE1, maxHeroes);
_PI->WriteByte(0x52A891, maxHeroes);
_PI->WriteByte(0x5D566F, maxHeroes);
_PI->WriteByte(0x5D7E02, maxHeroes);
_PI->WriteByte(0x5D7E0B, maxHeroes);
_PI->WriteByte(0x5D860A, maxHeroes);


Hi Alex
How are we to understand this? Do we need to edit all these addresses and will it affect all difficulty modes?

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


Responsible
Supreme Hero
posted May 31, 2023 12:15 PM

Quote:
How are we to understand this

As virtual addresses (don't forget to sutract 0x400000). For example, you go to 0x52A891 - 0x400000 = 0x12A891, see there 08 and replace this number with your own.

Quote:
Do we need to edit all these addresses ...

Preferably all, some of them are for AI only though, but I don't remember which, so it's safer to change all the cases.

Quote:
... and will it affect all difficulty modes?

It will have global effect.

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


Legendary Hero
Heroes is love, Heroes is life
posted May 31, 2023 01:57 PM

Okay, thank you.

 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.0290 seconds