|
|
pekute99

 
  
Known Hero
The prettiest I must say
|
posted May 28, 2016 11:28 AM |
|
|
HotA text files
I opened the HotA.dat file with TxtEdit to edit the texts but when I do the game just crashes. Can someone help me how to edit HotA's texts ?
____________
I'm maybe the only female Hero here but who knows 🤷
|
|
Baronus

 
     
Legendary Hero
|
posted May 28, 2016 11:37 AM |
|
|
It must be hexadecimal editor.
And remember that NUMBER BEFORE WORD mens number of letters. So if you want eg 9 letters than 7 word you must paste 9 in place with 7.
|
|
pekute99

 
  
Known Hero
The prettiest I must say
|
posted May 31, 2016 02:13 PM |
|
|
Baronus said: It must be hexadecimal editor.
And remember that NUMBER BEFORE WORD mens number of letters. So if you want eg 9 letters than 7 word you must paste 9 in place with 7.
I don't understand... Can you say more specifically ? I'm really bad at these.
____________
I'm maybe the only female Hero here but who knows 🤷
|
|
Baronus

 
     
Legendary Hero
|
posted May 31, 2016 06:27 PM |
|
|
You must open hota.dat using HEXADECIMAL EDITOR! See in net what it is.
|
|
Maurice


Hero of Order
Part of the furniture
|
posted May 31, 2016 09:31 PM |
|
|
Baronus said: And remember that NUMBER BEFORE WORD mens number of letters. So if you want eg 9 letters than 7 word you must paste 9 in place with 7.
I had trouble understanding what he meant with this as well (and yes, I do have plenty of experience with hex editing), but after opening the HotA.dat file, I now understand what he means.
If you open the HotA.dat file in a hex editor, you will see that each text string is preceded by 4 bytes. These 4 bytes indicate the size of the text string that follows.
For instance, the text regarding Cassiopeia is this:
0A 00 00 00 43 61 73 73 69 6F 70 65 69
The first four of these indicate the length of the string that follows. 0A is 10 in hex; in other words, the string that follows has 10 characters. The 43 61 73 73 69 6F 70 65 69 string is the name of the character in hexadecimal representation. Any decent hex editor worth its salt has a column next to the hexadecimal representation showing characters in ASCII format too and you can see that it's "Cassiopeia".
Directly following is the bio of Cassiopeia. The first four bytes once again indicate the length of the string that follows, the number of bytes after it is the actual string itself:
3E 01 00 00 49 74 20 69 73 20 73 ... etc
3E in hex is 62 in decimals, the next value 01 represents multiples of 256, so in this case 1 x 256 = 256 (obviously ). The total length is therefore 62 + 256 = 318 bytes.
I hope this clears up the concept of length indicators a bit. So if you adjust texts in it, you'll also have to adjust the length indicators, otherwise you'll totally screw up the file layout which - as you have seen - crashes the game. So let's say you want to rename "Cassiopeia" to "Cassy" (removing the excess characters from the file), you also have to change the 0A 00 00 00 that precedes the name to 05 00 00 00, so the game still knows how to read the rest of the file that follows.
|
|
Baronus

 
     
Legendary Hero
|
posted June 01, 2016 11:36 AM |
|
|
Without opening in hdeditor is no chance to understand:-) Practice make master :-)
|
|
pekute99

 
  
Known Hero
The prettiest I must say
|
posted June 01, 2016 01:55 PM |
|
|
Thank you so much ! I can do it !
|
|
|