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 ]
New Server | HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info 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 thread is 48 pages long: 1 10 20 30 40 ... 41 42 43 44 45 ... 48 · «PREV / NEXT»
Maurice
Maurice

Hero of Order
Part of the furniture
posted April 19, 2018 11:11 AM

By the looks of it, the offset is wrong. Astral's entry should start with "00 00 00 03", indicating he is a Spell specialist.

At the top, I can see it says "Hota modded.exe". So, which exe was that originally? And what is the size of that file in exact byte amount?
____________
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
Karyoplasma
Karyoplasma

Tavern Dweller
posted April 19, 2018 11:39 AM
Edited by Karyoplasma at 11:42, 19 Apr 2018.

perofake1 said:
Okay everyone,thank you for your help so far!

Here's atleast some progress...Phoenix was right,i found the correct adress...

However,what should i do now? It's only "00",there aren't many sections for the other hero properties.




This is not the right address. You are on the address for Astral's bio and secondary skills, not for his specialty.

I will tell you how to deduce the hero ID, so you don't have to ask for every single hero you wanna change. First here is the formula:

heroID = heroOffset - orrinOffset / lengthOfStructure

Explanation and example:
On page 6, Maurice posted a HUGE list of all heroes with the offsets for their class and secondary skill info. If you look carefully at the offsets posted, you will find out that they are separated by 0x5C (92 in decimal) bytes and that is because the length of the structure is 92 bytes. Find the hero you want to change (in this case, I am gonna use Astral) in the list and get the offset (0x27AC30). Find the first hero (it's Orrin - this doesn't change) and check his offset (0x279DD0), now use the formula to calculate Astral's heroID:

heroID = (0x27AC30 - 0x279DD0) / 0x5C = 0xE60 / 0x5C = 0x28

0x28, or 40 in decimal is Astral's heroID. Now what do you do with it and why do I tell you this? On page 7, OxFEA wrote this:

OxFEA said:
And specialities are in 0x278420, 156 structures, 40 bytes each. Format - as in ERM command HE:X, speciality type and nine dwords for its parameters.


So you need to convert the secondary skill offset to the specialty offset, by doing this:

specialtyOffset = specialtyStart + (heroID * specialtyStructureLength)

0x28 is 40 in hex, so that is the structure length!

In your case:

astralSpecialtyOffset = 0x278420 + (0x28 * 0x28) = 0x278A60

From there, you can follow FfuzzyLogik's directions!

TL;DR So the part you want to edit starts at 0x278A60. Hope I could help.

____________

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

Hero of Order
Part of the furniture
posted April 19, 2018 12:12 PM

Excellent post, Karyoplasma . In my previous reply, I cut a corner that I shouldn't have cut and messed up two data tables. Hence it didn't make sense .

Oh, I could blame phoenix of course, for not properly linking the relevant posts, setting me off on the wrong footing ...
____________
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
phoenix4ever
phoenix4ever


Supreme Hero
Heroes is love, Heroes is life
posted April 19, 2018 01:35 PM

What did I do now?
I just helped him find the address he was asking for, but I did'nt bother checking if it was actually the correct address, but it seems to be under control now.

About that counterspell change on the previous page, could any of you help me with that?

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

Hero of Order
Part of the furniture
posted April 19, 2018 01:51 PM

phoenix4ever said:
What did I do now?
I just helped him find the address he was asking for, but I did'nt bother checking if it was actually the correct address, but it seems to be under control now.


I was just pulling your leg, no worries . You quoted an excerpt of one of my posts and provided a link to another one as well and I got all confuzzled about them.
____________
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
perofake1
perofake1

Tavern Dweller
posted April 19, 2018 01:53 PM

Just to clear up what maurice asked me,

the "hota modded .exe" is just normal hota that i backed up.

(so that means now i have 2 hota's in my launcher,one is normal hota,the other one is "modded" but not really yet.
____________

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


Supreme Hero
Heroes is love, Heroes is life
posted April 20, 2018 08:52 AM

Maurice said:
You quoted an excerpt of one of my posts and provided a link to another one as well and I got all confuzzled about them.

Not that it matters, but I think this was FfuzzyLogik actually.
So you got me all confuzzled instead.

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

Hero of Order
Part of the furniture
posted April 20, 2018 10:09 AM
Edited by Maurice at 10:10, 20 Apr 2018.

Wow . You are absolutely right, Phoenix. My apologies .

I'll ... go stand over there ... in the corner ... and shut up now. Ok?

Note to self: don't post a smart ass comment when you're anything but clear of mind.
____________
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
phoenix4ever
phoenix4ever


Supreme Hero
Heroes is love, Heroes is life
posted April 20, 2018 10:31 AM

No problem mate, everything is cool.

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

Tavern Dweller
posted April 21, 2018 04:06 AM

perofake1 said:
Just to clear up what maurice asked me,

the "hota modded .exe" is just normal hota that i backed up.

(so that means now i have 2 hota's in my launcher,one is normal hota,the other one is "modded" but not really yet.


He only told you to rename your executable so you have backup in case you screw up (it happens, you edit a wrong byte -> you cannot play anymore). The launcher just detects every *.exe file in your directory. Just make a backup an edit the not backup one.
____________

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


Hired Hero
posted April 28, 2018 12:28 AM

Greeting to the heroes 3 fans!

I want to try something. There are heroes (Sephinroth, Saurug, Rissa, Calid) whose special ability is to give minerals. (crystal, gems, mercury and sulfur) Where can the exe be changed, the special ability? Thanks in advance!

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

Tavern Dweller
posted May 01, 2018 07:49 PM

Sephinroth: 0x2792d0
Saurug: 0x279578
Rissa: 0x278a10
Calid: 0x278d80
____________

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

Tavern Dweller
posted May 09, 2018 02:12 AM
Edited by Gryphon at 02:18, 09 May 2018.

Hello everyone!

I was wondering how to edit the secondary skills and where they are located. I read a bit through the thread but I still couldn't understand how, I've defintely overlooked something but don't know what. I would like to:

-Change Resistance to 10%/20%/30%
-Change Sorcery to 15%/20%/25%
-Change Mysticism to 4/8/12

Thanks!
____________

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

Hero of Order
Part of the furniture
posted May 09, 2018 10:47 AM
Edited by Maurice at 10:50, 09 May 2018.

Actually, the opening post of this thread details information about this, including the discussion that followed it in the first few pages.

You have the memory locations of each skill listed there, along with various values for percentages. That should be all you need to make the changes you wish .

Edit: I also just realised the OP didn't yet have a QP assigned to it, but given how the topic has evolved, I'd say it should have had one a long time ago. QP awarded to Baronus!
____________
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
phoenix4ever
phoenix4ever


Supreme Hero
Heroes is love, Heroes is life
posted May 09, 2018 11:44 PM

In HotA the 3 Necromancy artifacts are nerfed and I feel like they kinda lost their value and are'nt worth equipping anymore.
Can someone help me change them back to 5/10/15%? (Since Galthran is banned in HotA and my Cloak Of The Undead King always makes skeletons, bringing those artifacts back to their original state should'nt be OP imo.)

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

Tavern Dweller
posted May 10, 2018 08:02 AM

Maurice said:
Actually, the opening post of this thread details information about this, including the discussion that followed it in the first few pages.


Ok...I think I already read that but didn't really understand. But I'll take another look.
____________

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

Hero of Order
Part of the furniture
posted May 10, 2018 11:02 AM

Gryphon said:
Ok...I think I already read that but didn't really understand. But I'll take another look.


If you really can't figure it out based on that, let us know; perhaps we can take a jab at it and clarify things further.

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


Supreme Hero
Heroes is love, Heroes is life
posted May 11, 2018 09:02 PM
Edited by phoenix4ever at 21:02, 11 May 2018.

phoenix4ever said:
In HotA the 3 Necromancy artifacts are nerfed and I feel like they kinda lost their value and are'nt worth equipping anymore.
Can someone help me change them back to 5/10/15%? (Since Galthran is banned in HotA and my Cloak Of The Undead King always makes skeletons, bringing those artifacts back to their original state should'nt be OP imo.)

I'm gonna try asking about this again, can anybody help?

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


Honorable
Famous Hero
posted May 12, 2018 07:49 PM

You know, you should try to get some basics in assembly; you could save some time for something like this.

In SoD...
Quote:
Amulet [0x63EAE4]
Located at 0x4E3FE7

Cowl [0x63B8D0]
Located at 0x4E402D

Boots [0x63EB28]
Located at 0x4E4074


In HotA...
Unfortunately for you, HotA changes the pointer to % instead of changing the % itself - the old trick of changing the pointer is not valid here.

You will need to go in HotA.dll and find:
2.5% CDCCCC3C
5.0% CDCC4C3D
7.5% 9A99993D


From what I gather from Olly, they are all next to each other so you can probably look for this hex string:
CDCCCC3CCDCC4C3D9A99993D
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

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


Supreme Hero
Heroes is love, Heroes is life
posted May 12, 2018 07:58 PM
Edited by phoenix4ever at 19:05, 14 May 2018.

Thanks again RoseKavalier

Yeah, I really don't know anything about assembly, but with you and others being incredibly helpful I have'nt really felt the need to learn it either. Hex Editing is pretty easy, as long as you know what to do. (Which I usually don't. )

I haven't tried what you posted yet, but I'll get back and tell if I could get it to work.

Edit: I've just had a look and it, but I assume you mean HotA.dat as I can't find a HotA.dll
I could'nt find that long string in HotA.dat though, so I don't really know now.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 48 pages long: 1 10 20 30 40 ... 41 42 43 44 45 ... 48 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0593 seconds