Editing
Hex Editing - Guide
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Hero Data == {| class="wikitable" |- ! colspan=99 | Hex String (Start: 0x279DD0, End: 0x27D5DF, Bytes per hero: 0x5c = 92) |- | colspan=99 | <span style="color:orange">GG</span>000000 <span style="color:orange">RR</span>000000 <span style="color:blue">HH</span>000000 <span style="color:green">SO</span>000000 <span style="color:green">OL</span>000000 <span style="color:lightgreen">ST</span>000000 <span style="color:lightgreen">TL</span>000000 <span style="color:brown">SB</span>000000 <span style="color:brown">SP</span>000000 <span style="color:gold">U1</span>000000 <span style="color:gold">U2</span>000000 <span style="color:gold">U3</span>000000 <span style="color:teal">PS</span>000000 <span style="color:teal">PL</span>000000 <span style="color:silver">R0 AS CO</span> 00 |- ! colspan=99 | Description {{HEXrow|c=orange |GG| Gender: 00: male, 01: female.}} {{HEXrow|c=orange |RR| [[Hero race|Race]]. These are listed alphabetically, from Demon to Vampire. This has no in-game effect or visibility and the extensions preferred to default everyone to human, except [[Gelu]] who gets to be an elf.}} {{HEXrow|c=blue |HH| [[Hero class|Class]]: Classes go in order of factions, and within a faction the might class is listed first. Therefore, 00: Knight, 01: Cleric, 02: Ranger, 03: Druid, etc. Note, that HotA classes essentially "follow" this encoding.}} {{HEXrow|c=green |SO| 1st [[Secondary skill]] ([[Reference IDs#Secondary Skill Reference IDs|ref. ID]]).}} {{HEXrow|c=green |OL| 1st [[Secondary skill]]'s proficiency level (00: Basic, 01: Advanced, 02: Expert).}} {{HEXrow|c=lightgreen|ST| 2nd [[Secondary skill]] ([[Reference IDs#Secondary Skill Reference IDs|ref. ID]]). If there is no second skill, instead, FFFFFFFF is used, replacing ST and the zeroes following it.}} {{HEXrow|c=lightgreen|TL| 2nd [[Secondary skill]] level. If there is no second skill, 00 is used (Basic).}} {{HEXrow|c=brown |SB| Spell Book. 00: absent, 01: present.}} {{HEXrow|c=brown |SP| Starting [[Spell]] ([[Reference IDs#Spell Reference IDs|ref. ID]]). If no spell is present, FFFFFFFF is used instead.}} {{HEXrow|c=gold |U1<br>U2<br>U3| Starting [[creature]] reference IDs.}} {{HEXrow|c=teal |PS| Small Portrait DWORD pointer, which leads to plain text name of the portrait in the H3bitmap.lod.}} {{HEXrow|c=teal |PL| Large Portrait, same as above.}} {{HEXrow|c=silver |R0| Present by default in all RoE maps. 00: false, 01: true.}} {{HEXrow|c=silver |AS| Present by default in all non-RoE maps. 00: false, 01: true.}} {{HEXrow|c=silver |CO| Campaign-only. 00: false, 01: true.}} |} === Editing HotA Heroes === Hota heroes are coded in the HotA.dat. Names written in quotes are coded in plain text. Note, that for editing text itself it's best to use programs such as [https://github.com/sake12/HotA-editor/releases HotA Editor], instead of a direct hex-editing. {| class="wikitable" |- ! colspan=99 | Hex String (Start: 2406, End: 0x9886) |- | colspan=99 | <span_stle="color:blue">"<Length1>"</span> <span style="color:orange">"hero<ref_id>"</span><span_stle="color:blue">"<Length2>"</span> <span style="color:red">"Heroes\hero_<ref_id>.str"</span> <span style="color:orange">FACTION</span> <span_stle="color:blue">"<Length3>"</span> <span style="color:teal">"#large_portrait_file_name.pcx"</span> <span_stle="color:blue">"<Length4>"</span> <span style="color:teal">"#small_portrait_file_name.pcx"</span> <span_stle="color:blue">"<Length5>"</span> <span style="color:turquoise">"Specialty_Name"</span> <span_stle="color:blue">"<Length6>"</span> <span style="color:turquoise">"Specialty Bonus: Object"</span> <span_stle="color:blue">"<Length7>"</span> <span style="color:turquoise">"{Full Object}"</span> 0d 0a 0d 0a (number of 0a 0d repetitions may differ, and they correspond to line spacing in text) <span style="color:turquoise">"specialty_description"</span> <span style="color:blue">Length8</span> <span style="color:orange">"HeroName"</span> <span style="color:blue">Length9</span> <span style="color:orange">"Biography"</span> 00 00 00 00 01 5C <span style="color:red">GG</span>000000 <span style="color:red">RR</span>000000 <span style="color:red">HH</span>000000 <span style="color:red">SO</span>000000 <span style="color:red">OL</span>000000 <span style="color:red">ST</span>000000 <span style="color:red">TL</span>000000 <span style="color:red">SB</span>000000 <span style="color:red">SP</span>000000 <span style="color:red">U1</span>000000 <span style="color:red">U2</span>000000 <span style="color:red">U3</span>000000 <span style="color:red">PS</span>000000 <span style="color:red">PL</span>000000 <span style="color:red">RR AS C0 00</span> 00000000 00000000 <span style="color:gold">1m</span>000000 <span style="color:gold">1M</span>000000 <span style="color:gold">2m</span>000000 <span style="color:gold">2M</span>000000 <span style="color:gold">3m</span>000000 <span style="color:gold">3M</span>000000 08000000 <span style="color:orange">I8</span>000000 <span style="color:red">TT</span>000000 <span style="color:red">ID</span>000000 <span style="color:red">AA</span>000000 <span style="color:red">DD</span>000000 <span style="color:red">DM</span>000000 <span style="color:red">U4</span>000000 <span style="color:red">U5</span>000000 |- ! colspan=99 | Description {{HEXrow|c=blue |Length1| Length of the hero<ref_id> string}} {{HEXrow|c=orange |hero<ref_id>| The hero's reference id in decimal, f.e. hero154}} {{HEXrow|c=blue |Length2| Length of the Heroes\hero_<ref_id>.str.string}} {{HEXrow|c=red |Heroes\hero_<ref_id>.str| {{unk}}}} {{HEXrow|c=orange |FACTION| Cove heroes: 09 000000 00000000 <br>Factory heroes: 09 000000 00000000 00000000 }} {{HEXrow|c=blue |Length3| Length of the large hero portrait name (including the .pcx extension) {{HEXrow|c=teal |#large_portrait_file_name.pcx| # and the appropriate file name, e.g. #HPLP06.pcx. Note that some heroes don't have the portraits specified in the hero data, and instead in the portrait sections, described below.}} {{HEXrow|c=blue |Length4| Length of the small hero portrait name (including the .pcx extension)}} {{HEXrow|c=teal #small_portrait_file_name.pcx| # and the appropriate file name, e.g. #HPLP06.pcx. Note that some heroes don't have the portraits specified in the hero data, and instead in the portrait sections, described below.}} {{HEXrow|c=blue |Length5| Length of the specialty name}} {{HEXrow|c=turquoise |Specialty_Name| e.g. "Sea Dogs" or "Nix"}} {{HEXrow|c=blue |Length6| Length of the specialty bonus}} {{HEXrow|c=turquoise |Specialty Bonus: Object| Refers to the following types of text: "Spell Bonus: Air Shield", "Creature Bonus: Sea Dogs", etc.}} {{HEXrow|c=blue |Length7| Length of the Full Object and specialty description strings, including the line-spacing coded using "0Dh 0Ah"}} {{HEXrow|c=turquoise |{Full Object}| Text in curly parentheses {} stating again the specialty, e.g. "{Estates}", or "{Pirates, Corsairs and Sea Dogs}".}} {{HEXrow|c=turquoise |specialty_description| Text string describing the hero specialty.}} {{HEXrow|c=blue |Length8| Hero's name's length.}} {{HEXrow|c=orange |HeroName| Text string of the hero's name.}} {{HEXrow|c=blue |Length9| Hero's biography's length.}} {{HEXrow|c=orange |Biography| Text string containing the hero's biography.}} {{HEXrow|c=orange |GG| Gender: 00: male, 01: female.}} {{HEXrow|c=orange |RR| [[Hero race|Race]]. These are listed alphabetically, from Demon to Vampire. This has no in-game effect or visibility and the extensions preferred to default everyone to human, except [[Gelu]] who gets to be an elf.}} {{HEXrow|c=blue |HH| [[Hero class|Class]]: Classes go in order of factions, and within a faction the might class is listed first. Therefore, 00: Knight, 01: Cleric, 02: Ranger, 03: Druid, etc. Note, that HotA classes essentially "follow" this encoding.}} {{HEXrow|c=green |SO| 1st [[Secondary skill]] ([[Reference IDs#Secondary Skill Reference IDs|ref. ID]]).}} {{HEXrow|c=green |OL| 1st [[Secondary skill]]'s proficiency level (00: Basic, 01: Advanced, 02: Expert).}} {{HEXrow|c=lightgreen|ST| 2nd [[Secondary skill]] ([[Reference IDs#Secondary Skill Reference IDs|ref. ID]]). If there is no second skill, instead, FFFFFFFF is used, replacing ST and the zeroes following it.}} {{HEXrow|c=lightgreen|TL| 2nd [[Secondary skill]] level. If there is no second skill, 00 is used (Basic).}} {{HEXrow|c=brown |SB| Spell Book. 00: absent, 01: present.}} {{HEXrow|c=brown |SP| Starting [[Spell]] ([[Reference IDs#Spell Reference IDs|ref. ID]]). If no spell is present, FFFFFFFF is used instead.}} {{HEXrow|c=gold |U1<br>U2<br>U3| Starting [[creature]] reference IDs.}} {{HEXrow|c=teal |PS| Small Portrait DWORD pointer, which leads to plain text name of the portrait in the H3bitmap.lod.}} {{HEXrow|c=teal |PL| Large Portrait, same as above.}} {{HEXrow|c=silver |R0| Present by default in all RoE maps. 00: false, 01: true.}} {{HEXrow|c=silver |AS| Present by default in all non-RoE maps. 00: false, 01: true.}} {{HEXrow|c=silver |CO| Campaign-only. 00: false, 01: true.}} {{HEXrow|c=gold |1m| minimum number of the first creature type in hero's starting army}} {{HEXrow|c=gold |1M| maximum number of the first creature type in hero's starting army}} {{HEXrow|c=gold |2m| minimum number of the second creature type in hero's starting army}} {{HEXrow|c=gold |2M| maximum number of the second creature type in hero's starting army}} {{HEXrow|c=gold |3m| minimum number of the third creature type in hero's starting army}} {{HEXrow|c=gold |3M| maximum number of the third creature type in hero's starting army}} {{HEXrow|c=orange |I8| reference ID + 8 for heroes before ref ID 178 and reference ID + 7 for heroes after ref ID 178 (essentially, 0xb9 is skipped)}} {{HEXrow|c=red |TT| specialty type} {{HEXrow|c=red |ID| relevant ID (skill, spell, unit, resource, etc.)} {{HEXrow|c=red |AA| attack bonus for static unit specialties}} {{HEXrow|c=red |DD| defense bonus for static unit specialties}} {{HEXrow|c=red |DM| damage bonus for static unit specialties}} {{HEXrow|c=red |U4| 2nd unit to be upgraded with the upgrade specialty type}} {{HEXrow|c=red |U5| unit obtained from the upgrade specialty}} |}
Summary:
Please note that all contributions to Heroes 3 wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Purge
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information