|
|
Maurice
Hero of Order
Part of the furniture
|
posted September 08, 2016 12:23 AM |
|
|
You're welcome! Glad the information was of help to send you in the right direction .
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted September 08, 2016 08:40 AM |
|
|
tax_375 said: With Baronus and Maurice's replies I can see now the full "picture". I was able to successfully modify the Learning, Misticism and Sorcery skills and get some boost to the magic heroes. Thank you guys, you are awesome!
Do you mind telling exactly how you edited Learning and Mysticism?, as I am a noob with hex editing. I would also like to edit Eagle Eye and First Aid and maybe a few other skills...
|
|
Maurice
Hero of Order
Part of the furniture
|
posted September 08, 2016 09:53 AM |
|
|
phoenix4ever said: Do you mind telling exactly how you edited Learning and Mysticism?, as I am a noob with hex editing. I would also like to edit Eagle Eye and First Aid and maybe a few other skills...
I can tell you once I get home and get around to it. However, the only thing you can fix with this easy editing is the percentile chances that the skill provides. You can't really change any other behaviour.
____________
The last Reasonable Steward of Good Game Design and a Responsible Hero of HC. - Verriker
|
|
tax_375
Hired Hero
|
posted September 08, 2016 11:06 AM |
|
Edited by tax_375 at 18:07, 08 Sep 2016.
|
phoenix4ever said:
tax_375 said: With Baronus and Maurice's replies I can see now the full "picture". I was able to successfully modify the Learning, Misticism and Sorcery skills and get some boost to the magic heroes. Thank you guys, you are awesome!
Do you mind telling exactly how you edited Learning and Mysticism?, as I am a noob with hex editing. I would also like to edit Eagle Eye and First Aid and maybe a few other skills...
1. Open hota.exe file with hexeditor
2. find the skill offset - Look Baronus first writing take one of the skill offsets
3. Look Maurice or Baronus comments where they mention about percentages and look for the hexadecimal code. For example Learning offset is 0x0023ea5 then you know that basic Learning gives you 5% so find it in the code. The 5% in hexadecimal CD CC 4C 3D.
4. Open some online converter they mentioned or use the given percentages in the comments (I found a converter where I had to read the code backwards I mean if you convert 0.1 (10%) it will give you this 3dcccccd and you have to write this CD CC CC 3D
5. Save the exe file (if you have H3 HD Mod then it is worth to give the exe file another name for example "hota modded.exe" because the HD Mod will put it into its list)
6. Test it in the game (start the game with modded.exe) for example Learning with Lonys-Castle on a map where there is a learning stone near starting point
7. Don't forget to change the SSTraits.txt with MMeditor
I hope I have helped a bit.
Regarding to Maurice - yes that is correct you can only modify the percentages and numbers not really the skill behaviour.
If you use hex editor neo you don't need any converter because on the view tab you can change the way the values displayed.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted September 08, 2016 10:01 PM |
|
|
Thank you tax, I will try it when I have the time.
And yes I have HD mod installed.
So it's only possible to change the percentage huh?, so it is'nt possible to make the First Aid Tent more durable, make the ballista more powerful or make Eagle Eye learn level 5 spells?
|
|
Maurice
Hero of Order
Part of the furniture
|
posted September 08, 2016 10:31 PM |
|
|
Not that I know of. Obviously the actual skill effects are hardcoded somewhere, but I suspect changing those requires some reverse engineering at the very least. Besides the question on whether it's legally allowed to reverse engineer the software, the process of reverse engineering is quite taxing and complex.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted September 08, 2016 11:10 PM |
|
|
Okay Maurice, I won't bother with that then.
But I will do what I can to improve the most lousy skills, at least I might be able to make them not completely useless...
|
|
tax_375
Hired Hero
|
posted September 09, 2016 08:00 AM |
|
Edited by tax_375 at 23:38, 09 Sep 2016.
|
It would be interesting though to find the hota cannon code. I think it is similar to ballista's and from that it might be easier to find the ballista code in the exe file too.
Another:
I don't remember is the ballista and first aid text data in the CRTraits or somewhere else?
https://www.gamefaqs.com/pc/63965-heroes-of-might-and-magic-iii/faqs/25014
In this thread it counts as an artifact that might help.
Regarding eagle eye it will be the biggest achievement if someone could change it's mechanic. I could imagine that all the spells cast during game play or turn are listed in a pool and on the next turn the hero with eagle eye learn one of the spell from that pool - adventure spells included depending on the skill level and skill chance.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted September 11, 2016 05:46 PM |
|
|
Excuse me for being stupid, tax or Maurice can you help me again?
I suppose the file that needs to be edited is HotA.lod located in Heroes3/Data is this correct?
I found the offset for Learning, 0023EA58, but how many "bytes per row" am I supposed to choose? 8 bytes?
Currently Learning is set to 18 E0 95 D8 6E AE 11 9E?
If I would like Learning to be 10/20/30% what am I supposed to write? And where does it separate basic/advanced/expert?
(I will probably make Learning stronger than that later, but just as a test)
By the way which hex editor do you use?, I use HxD Editor, should be fine enough right?
|
|
Maurice
Hero of Order
Part of the furniture
|
posted September 11, 2016 07:28 PM |
|
Edited by Maurice at 19:32, 11 Sep 2016.
|
You need to edit the h3hota.exe, not the hota.lod.
Personally I use UltraEdit, but that software isn't freeware, you need a license for it. Still, it's an extremely powerful tool (not just for Hex editing), so a year or two ago I decided to buy a lifetime license for it; was about as expensive as 2 or 3 annual licenses.
In any case, before you edit anything at all, the golden rule is: make a backup of the file you're going to edit!
Anyway, open the h3hota.exe and find memory reference 0x0023ea58. Starting from that location, you should see the following byte string (16 bytes in all): 00 00 00 00 CD CC 4C 3D CD CC CC 3D 9A 99 19 3E
These are really 4 sets of 4 bytes each, indicating the various Tier boni:
Tier 0: 00 00 00 00 (this is the unskilled value; I wonder what happens if you change this, whether the game actually uses it at all)
Tier 1: CD CC 4C 3D
Tier 2: CD CC CC 3D
Tier 3: 9A 99 19 3E
Obviously, the 00 00 00 00 is 0. Refer to the list I posted earlier in this thread and you'll see that Tier 1 is 5%, Tier 2 is 10% and Tier 3 is 15%. You will need to replace these three sets of values if you want to increase the yield from this skill. Referring again to the list I posted earlier, you should instead have the following (assuming a 10%-20%-30% boost):
Tier 0: 00 00 00 00
Tier 1: CD CC CC 3D
Tier 2: CD CC 4C 3E
Tier 3: 9A 99 99 3E
Or, in string format:
00 00 00 00 CD CC CC 3D CD CC 4C 3E 9A 99 99 3E.
Note that the current string is almost identical:
00 00 00 00 CD CC 4C 3D CD CC CC 3D 9A 99 19 3E
Only 4 bytes differ; those are the only ones you need to edit .
Hope this helps!
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted September 11, 2016 09:09 PM |
|
|
Thank you Maurice, that was very helpful.
Foolish me editing the wrong file, I did'nt think you could edit that file, but of course it makes perfect sense.
I will go ahead and experiment then...
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted September 11, 2016 09:53 PM |
|
|
Great, after applying the changes to Learning, HD mod won't recognise HotA, only SoD.
|
|
Maurice
Hero of Order
Part of the furniture
|
posted September 11, 2016 11:20 PM |
|
Edited by Maurice at 23:32, 11 Sep 2016.
|
In what editor did you make the changes? Did the file change in size, perhaps? And can you start HotA with that edited exe file, without the HD mod?
Edit: I just made these changes as well, and my HD mod recognized the edited h3hota.exe. To verify that it indeed worked, I started a map with Loynis (as he starts with Learning), picking up treasure chests and visiting Learning Stones and the experience gained was indeed following the changes I made.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted September 11, 2016 11:30 PM |
|
|
Hmm I created a new exe using HD mod's "Create HD exe" and opening the game through that it uses HD mod and my changes succesfully, but I can't see my modded file in HD mod, pretty weird.
But I was able to change Learning and Eagle Eye so far, so that's amazing.
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted September 11, 2016 11:53 PM |
|
|
Maurice can you help me out with First Aid, Mysticism and Estates?
You wrote something about First Aid earlier in this thread, about 100, 200, 300, but do those refer to a percentage or number of hp?
I would like First Aid at 100/150/200 if possible.
Mysticism at 4/6/8 (including the normal 1 mana recovered, double of what it is currently)
Estates at 250/375/500.
Do you know the values for 4, 6, 8, 150 and 375 and if it even works when relating to hp, mana and gold?
|
|
Maurice
Hero of Order
Part of the furniture
|
posted September 12, 2016 08:52 AM |
|
|
phoenix4ever said: Maurice can you help me out with First Aid, Mysticism and Estates?
You wrote something about First Aid earlier in this thread, about 100, 200, 300, but do those refer to a percentage or number of hp?
I would like First Aid at 100/150/200 if possible.
Mysticism at 4/6/8 (including the normal 1 mana recovered, double of what it is currently)
Estates at 250/375/500.
Do you know the values for 4, 6, 8, 150 and 375 and if it even works when relating to hp, mana and gold?
The values for Estates and Mysticism are simply hard values. Inserting those should be easy enough. Refer to the table with skill memory offsets to see what you're looking for. For Mysticism, you should see the following string:
01 00 00 00 02 00 00 00 03 00 00 00 04 00 00 00
I guess it's obvious what those values mean . Just change them to
01 00 00 00 04 00 00 00 06 00 00 00 08 00 00 00
And you should be good. Not sure if the game uses the first one, just as with Learning.
Estates is similar:
00 00 00 00 7D 00 00 00 FA 00 00 00 F4 01 00 00
7D is 125 in decimals, FA is 250 and F4 01 is 500. Translating the values you want from decimals to hexadecimal, we get the following:
250 = FA 00 00 00 (as already known )
375 = 77 01 00 00
500 = F4 01 00 00
So the string becomes
00 00 00 00 FA 00 00 00 77 01 00 00 F4 01 00 00
You only need to edit 3 bytes to make this change.
About First Aid, I am not sure. I would need to see how the default First Aid effect works. I've encountered values of 100, 200 and 300 there, which makes me think that they're percentages to the base value, rather than a flat HP increase. With the values you suggest, you want to reduce the gain from First Aid?
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted September 12, 2016 09:52 AM |
|
|
Thanks again Maurice, you are awesome.
Should be pretty easy to change Mysticism and Estates then.
Regarding First Aid, no I wan't to improve it, now it is 50/75/100 hp at bas/adv/exp, I wan't it to be 100/150/200, double of what it is currently.
|
|
Maurice
Hero of Order
Part of the furniture
|
posted September 12, 2016 10:51 AM |
|
|
phoenix4ever said: Regarding First Aid, no I wan't to improve it, now it is 50/75/100 hp at bas/adv/exp, I wan't it to be 100/150/200, double of what it is currently.
Ah. In that case, the values you're looking for are 200, 400 and 600 respectively. I haven't seen values for 400 and 600, so even if they exist, it's going to be smart guessing and trial and error to find them, I guess.
I haven't got the time to delve into that now, though.
____________
The last Reasonable Steward of Good Game Design and a Responsible Hero of HC. - Verriker
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted September 12, 2016 11:11 AM |
|
|
Okay so now I've had success changing Learning, Eagle Eye, Mysticism, Sorcery, Resistance and Estates and the only skill left, I wan't to change, is First Aid.
The current string for First Aid is:
00 00 00 00 00 00 80 3F 00 00 00 40 00 00 40 40
So apparently 00 00 80 3F means 50 hp
00 00 00 40 means 75 hp
and 00 00 40 40 means 100 hp
I suppose the new string would be:
00 00 00 00 00 00 40 40 XX XX XX XX XX XX XX XX
The question is what is 150 hp and 200 hp?...
|
|
Maurice
Hero of Order
Part of the furniture
|
posted September 12, 2016 12:28 PM |
|
|
phoenix4ever said: So apparently 00 00 80 3F means 50 hp
00 00 00 40 means 75 hp
and 00 00 40 40 means 100 hp
Actually, refer to the list I posted earlier. 00 00 80 3F equals 100. It's likely a percentage, not a straight-up value, as direct values seem to start with the Little bytes (take a look at Estates, Luck, Morale and Mysticism, for instance), while percentages seem to go up to the Big bytes.
After adding the three values of 00 00 80 3F, 00 00 00 40 and 00 00 40 40 to Learning instead, the scale increase was 100%, 200% and 300% respectively.
Each step of 00 00 80 00 seems to increase the value by a factor of 2. This would suggest that 400 can be had with a value of 00 00 80 40. Then 800 would be at 00 00 00 41. Since 600 is halfway between 400 and 800, my guess would be that the value for 600 is 00 00 C0 41.
The total string would then be 00 00 00 00 00 00 00 40 00 00 80 40 00 00 C0 41. I don't know if this will work, though, so good luck in trying! If you want to verify if these values actually work, you could insert them for Learning for instance and see how much the Exp boost is for visiting Learning Stones. A quick test map with a bunch of them should be more than enough to check.
|
|
|
|