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 > Heroes 3.5 - WoG and Beyond > Thread: How to edit HotA?
Thread: How to edit HotA? This Popular Thread is 111 pages long: 1 10 20 30 40 50 60 70 ... 77 78 79 80 81 ... 90 100 110 111 · «PREV / NEXT»
AlexSpl
AlexSpl


Responsible
Supreme Hero
posted May 17, 2020 09:35 AM
Edited by AlexSpl at 09:42, 17 May 2020.

See Float to Hex converter - https://gregstoll.com/~gregstoll/floattohex/

Type float has the size of 4 bytes. Use the first calculator. Don't forget to invert a byte order.

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


Famous Hero
Moist & Creamy
posted May 17, 2020 09:44 AM

Ah, neato.

Well, a huge thanks again. You've really helped this last update of my guide (as well as my mod) along.

If you're still up for it, there's a few outstanding questions in my guide, the most important of which are:

• Can I change the target skill of the Eagle Eye artifacts to Learning instead?

• Can I change the luck/morale bonsues for Still Eye of the Dragon?

• Can I fix the bug with the Badge of Courage setting mind immunity?

• Can a spell cost of 0 (specified in SpTraits.txt) be respected?

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


Responsible
Supreme Hero
posted May 17, 2020 09:46 AM

It's possible, but not trivial in hex. I'll see what I can do

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


Famous Hero
Moist & Creamy
posted May 17, 2020 09:51 AM

No worries, man, you've been plenty help. Hopefully my explanations of your advice in my hacking guide make it more accessible for others o/

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


Known Hero
posted May 17, 2020 09:58 AM
Edited by SilverG at 10:09, 17 May 2020.

BTB said:
SilverG said:

At 2709A0 06 is the reward for the Shipwreck; for the Treasure + Minor artifact rewards, you can change the 06 to any of your choice for example (only in Hex) 0E for Treasure+Minor+Major.


Do the flags in CrBanks.txt not work here? I'm looking at the code around the area you specified and having a difficult time matching it up with the order I know the banks go in.


In my case the flags in CRBanks.txt caused the game to crash, for one needs to specify the hex code(s) in the .exe, so that the game recognizes that it must reward the specified artifact(s).

The data at 2709A0 (HoMM3 Complete SoD) looks like this (by default):

06 00 00 00 08 54 67 00 FC 53 67 00 13 01 00 00

I've tried to just specify the flags in the .txt for the Shipwerck, and the game didn't recognize it, what more, the object lost it's name, and after the visit/battle the game crashed.

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


Famous Hero
Moist & Creamy
posted May 17, 2020 10:07 AM
Edited by BTB at 10:20, 17 May 2020.

That makes sense, but what doesn't is the surrounding data. I'm looking at what seems to be arrays for each bank (makes sense) which are mostly zeroes followed by a DWORD value and then some more code. The Shipwreck is the first Creature Bank to offer us artifacts as a reward, so what we see here matches up. However, if we move on to the next creature bank (Crypt), we would expect to find an 02 here, except we don't - just an 01. Further, the next bank would be the Dragon Utopia, where we'd expect to find a 1E (bits 4-7 all set), except I don't see that anywhere.

Furthermore, if you go up from there, you'll see a 06 in the previous bank (which is correct), and then a 05 in the one before that (which is definitely not). This pattern continues if we keep going backwards, and the number of items I see in the array don't match up with the total number of creature banks.

(EDIT: I had Shipwreck and Derelict Ship transposed in my notes, so nothing I said above makes sense. But that doesn't make this data array make any more sense.)

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


Known Hero
posted May 17, 2020 01:05 PM

And just as the CRBanks.txt start in the exe, after all the FF FF FF FF FFF FF FF FF FF FF's, the first thing ai saw was the 0C followed by a bunch of other hex numbers, this 0C implies to the Griffin Conservatories reward, the Angels.

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


Famous Hero
Moist & Creamy
posted May 17, 2020 01:18 PM

Yeah, but how did you find your way up to 2709A0 from there?

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


Adventuring Hero
posted May 17, 2020 05:09 PM

AlexSpl said:
40264: Ghost Dragon (20% Aging)
402D9: Zombie (20% Disease)
4033E: Unicorn, War Unicorn (20% Blind)
40433: Black Knight, Dread Knight, Mummy (25% Curse)
404A7: Medusa, Medusa Queen, Basilisk, Greater Basilisk (20% Stone Gaze)
40560: Wyvern Monarch (30% Poison)
405D1: Scorpicore (20% Paralyze)
40C07: Mighty Gorgon (10% per creature Death Stare)
40EC4: Thunderbird (20% Thunder Strike)
411DE: Rust Dragon (20% Acid Breath)
436E0: Dread Knight (20% Death Strike)
649D8: Azure Dragon (10% Fear)*

* Note that here 1/x chance is stored, so if you write, for example, 05, the chance of Fear will be 1/5 = 20%.




It's amazing. Thank you! Then... Is it also possible to use the hex edition to prevent expert Despel magic from removing obstacles such as mines, Forcefields, and quicksand?

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


Known Hero
posted May 17, 2020 07:43 PM
Edited by SilverG at 00:22, 18 May 2020.

BTB said:
Yeah, but how did you find your way up to 2709A0 from there?


Believe it or not, reading.

It took me about half an hour to read the hex data, and compare it in the CRBanks.txt what is where.

Now, I just have to correct some things, because when I start a new game it crashes (a map that I've made specifically for a campaign), when I play a random map or any other map, it usually takes up to 50 turn before the game crashes.

Could it be because I set the logistics skill a bit high; and some heroes specialties (who have the logistics skill) causes it to overload... I don't know yet.

What puzzles me now is, how I can implement (in the HoMM3 Complete SoD) the Scouting skill to be like in WoG, that it provides some bonuses.

Does anybody have the parameters here for it?

And how can I make the First Aid Tent resurrect the fallen?

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


Responsible
Supreme Hero
posted May 18, 2020 01:35 AM
Edited by AlexSpl at 01:36, 18 May 2020.

Quote:
• Can I change the target skill of the Eagle Eye artifacts to Learning instead?

Backup your executable before patching!

GetLearningPower -> GetEagleEyePower

0E4AB8: D4 00 00 00
0E4AC4: 28 EA 63 00
0E4AE4: 0B
0E4B0C: 90 90 90 90 90 90
1A0294: 18 48 F4 FF

GetEaglePower -> GetLearningPower

026F67: 25 D7 0B 00
0274F5: 97 D1 0B 00
06A00E: 7E A6 07 00
09F7CA: C2 4E 04 00
0A5FFB: 91 E6 03 00
0A60BC: D0 E5 03 00
0E469B: DE 00 00 00
0E46A7: 58 EA 63 00
0E46CB: 15
0E47CE: D8 05 E0 B6 63 00
0E47D5: EB 0F
12841A: 72 C2 FB FF
12AED7: B5 97 FB FF
15FEED: 9F 47 F8 FF
1630B0: DC 15 F8 FF
1636BC: D0 0F F8 FF
163869: 23 0E F8 FF
163E09: 83 08 F8 FF
163F67: 25 07 F8 FF
164444: 48 02 F8 FF
164723: 69 FF F7 FF
164EED: 9F F7 F7 FF
164F12: 7A F7 F7 FF
174078: 14 06 F7 FF
1742F9: 93 03 F7 FF
1BDFFA: 92 66 F2 FF


Artifacts work as intended - only if a hero has Learning.

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


Famous Hero
Moist & Creamy
posted May 18, 2020 02:03 AM
Edited by BTB at 02:23, 18 May 2020.

Sweeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet.

I'll have to give that a shot.

Also kinda curious about this patch from a mechanical standpoint, because I recognize the pointers to Eagle Eye and Learning above. Why won't it work if you JUST swap those two addresses?

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


Responsible
Supreme Hero
posted May 18, 2020 03:30 AM
Edited by AlexSpl at 03:50, 18 May 2020.

Quote:
Can I change the luck/morale bonsues for Still Eye of the Dragon?

Too much work in hex. I've started, but no, this task is definitely for plugins.

Luck Bonus (in green, without effect, without a correct description)

E3A92: 30
E3AB0: 8B 0C D5 6C 0B 66 00 51 8B CE E8 A1 59 FF FF 84 C0 74 04 83 45 0C 02

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


Famous Hero
Moist & Creamy
posted May 18, 2020 03:46 AM

AlexSpl said:
Quote:
Can I change the luck/morale bonsues for Still Eye of the Dragon?

Too much work in hex. I've started, but no, this task is definitely for plugins.

Luck Bonus (in green, without a correct description)

E3A92: 30
E3AB0: 8B 0C D5 6C 0B 66 00 51 8B CE E8 A1 59 FF FF 84 C0 74 04 83 45 0C 02



This... might be sufficient? I just wanted to set the luck or morale bonus to 0 so I could split the boosts between the two rings.

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


Responsible
Supreme Hero
posted May 18, 2020 03:51 AM
Edited by AlexSpl at 03:52, 18 May 2020.

Nope, it just shows horseshoes A lot of work in hex, sorry.

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


Famous Hero
Moist & Creamy
posted May 18, 2020 03:55 AM

No worries, I can work around it. The Eagle Eye -> Learning thing was MUCH huger.

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


Responsible
Supreme Hero
posted May 18, 2020 03:55 AM
Edited by AlexSpl at 03:57, 18 May 2020.

Wowsers! It even works in battle So, then not too much work. Maybe later I will finish this patch.

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


Famous Hero
Moist & Creamy
posted May 18, 2020 03:58 AM

You're talking about the Eagle Eye -> Learning patch?

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


Responsible
Supreme Hero
posted May 18, 2020 04:01 AM

No that patch works 100%, even for AI. I'm about Still Eye of the Dragon. It gives you a Luck bonus you set.

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


Famous Hero
Moist & Creamy
posted May 18, 2020 04:06 AM

Oh, ok. Well, cool, then, 2 for 2!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 111 pages long: 1 10 20 30 40 50 60 70 ... 77 78 79 80 81 ... 90 100 110 111 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0681 seconds