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: Change Starting Troops
Thread: Change Starting Troops
Winox
Winox

Tavern Dweller
posted May 31, 2019 01:12 AM

Change Starting Troops

I have been changing starting troops for the heroes by editing ''HOTRAITS'' but all i can do is change the number/quantity of the unit.
how do i for example change Clancy starting troops to be unicorns instead of centaurs. or Vokial have vampires instead of skeletons.
____________

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

Hero of Order
Part of the furniture
posted June 01, 2019 12:16 PM
Edited by Maurice at 12:17, 01 Jun 2019.

Winox said:
I have been changing starting troops for the heroes by editing ''HOTRAITS'' but all i can do is change the number/quantity of the unit.
how do i for example change Clancy starting troops to be unicorns instead of centaurs. or Vokial have vampires instead of skeletons.


You need to change that in the .exe file itself. It requires hex editing of the exe file. Starting from address 0x279DD0h in the original HoMM3 exe (not HotA), you get byte strings for each Hero, each being 92 bytes long. Bytes 37-40 in the byte string detail the Creature ID of the first creature stack, bytes 41-44 detail that of the second Creature ID and bytes 45-48 are for the third creature ID.

You can find a lot more information on hex editing in the "How to edit HotA" thread.
____________
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
Winox
Winox

Tavern Dweller
posted June 01, 2019 07:00 PM
Edited by Winox at 17:36, 02 Jun 2019.

Maurice said:
Winox said:
I have been changing starting troops for the heroes by editing ''HOTRAITS'' but all i can do is change the number/quantity of the unit.
how do i for example change Clancy starting troops to be unicorns instead of centaurs. or Vokial have vampires instead of skeletons.


You need to change that in the .exe file itself. It requires hex editing of the exe file. Starting from address 0x279DD0h in the original HoMM3 exe (not HotA), you get byte strings for each Hero, each being 92 bytes long. Bytes 37-40 in the byte string detail the Creature ID of the first creature stack, bytes 41-44 detail that of the second Creature ID and bytes 45-48 are for the third creature ID.

You can find a lot more information on hex editing in the "How to edit HotA" thread.


where do you find adress/line 0x279DD0h ?
using search function didnt find the line either, mine looks like this:
https://imgur.com/a/LQPRf1k
____________

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

Hero of Order
Part of the furniture
posted June 02, 2019 11:35 AM

I can't see the image in your post.

Anyway, you'll need to open the .exe file in a hex editor. Hex editors will usually show you the address of the starting byte of each line shown. Do you have any familiarity or experience with hex editing?
____________
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
Winox
Winox

Tavern Dweller
posted June 02, 2019 05:40 PM

Maurice said:
I can't see the image in your post.

Anyway, you'll need to open the .exe file in a hex editor. Hex editors will usually show you the address of the starting byte of each line shown. Do you have any familiarity or experience with hex editing?


i updated previous post with a link to the picture, i just can't find the line/adress im supposed to edit. no i have not used hex editing before but it looks really easy to learn.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0329 seconds