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 ... 61 62 63 64 65 ... 70 80 90 100 110 111 · «PREV / NEXT»
phoenix4ever
phoenix4ever


Legendary Hero
Heroes is love, Heroes is life
posted April 19, 2019 08:29 PM
Edited by phoenix4ever at 07:41, 20 Apr 2019.

Yes you are right, if golems can be healed by a tent, then why not war machines...
So any idea how to "turn war machines" into golems? (Ballista/Cannon, First Aid Tent, Ammo Cart and Catapult.)

Bonus question: HotA managed to make the AI cast Berserk, any idea how to make it cast Fire Wall, Quicksand, Remove Obstacle, Land Mine and Force Field?

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


Adventuring Hero
posted May 13, 2019 06:40 PM

Hi I have a noob question if anybody can help...

I have edited txt files from H3 Complete through h3bitmap.lod with no problem, and now i would like to do all those changes i made on HotA, but i cant find the archive. I opened Hota.lod but i doesnt contain any creatures or spells...

Where can I find them?

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


Promising
Supreme Hero
posted May 13, 2019 06:57 PM

You must be more specific what changes. Some hota files are in hota.dat and they are encrypted.
____________

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


Adventuring Hero
posted May 13, 2019 07:01 PM
Edited by Sir_Juas at 19:31, 13 May 2019.

Mostly i am  using MMArchive to search for SPtraits and CRtraits equivalents for HotA. I want to edit creature stats and spell stats just as i did in H Complete.

EDIT: Maybe i am mistaken and MMArchive is not the way... where does one go to text edit HotA creature & spell stats?

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


Legendary Hero
Heroes is love, Heroes is life
posted May 13, 2019 09:56 PM

HotA.Ing.lod and MMArchive works perfectly fine for HotA edits.

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


Adventuring Hero
posted May 13, 2019 10:31 PM
Edited by Sir_Juas at 22:42, 13 May 2019.

Thankful

phoenix4ever said:
HotA.Ing.lod and MMArchive works perfectly fine for HotA edits.


Thanks Phoenix4Ever!


EDIT:
Now i have another mini-problem. Lodedit replaces the archive i extracted from hota_ing.lod to h3bitmap.lod instead of putting it again to hota_ing.lod, any hint how to change that?

Also inside hota_ing.lod there is no HotA stuff (like the creatures or the castle), maybe there is another .lod to be opened?

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


Legendary Hero
Heroes is love, Heroes is life
posted May 13, 2019 11:22 PM

No problem mate.

Hmm Lodedit, is that another program? I only use use txtedit and MMArchive to extract and add files manually.

Regarding all the Cove stuff, it is not located in the txt files, you have to hex edit the exe, so that's a bit more tricky...

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


Adventuring Hero
posted May 14, 2019 01:35 AM

phoenix4ever said:
Hmm Lodedit, is that another program? I only use use txtedit and MMArchive to extract and add files manually.

Yes Lodedit is used to upload the txt file to the game once you finished editing

phoenix4ever said:
Regarding all the Cove stuff, it is not located in the txt files, you have to hex edit the exe, so that's a bit more tricky...

Oh i see, so my dream of passing my mod to HotA will have to wait untill I learn hex editing then... well thank you for your response, very nice.

IŽll try hex editing and be here for more questions in the future

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


Adventuring Hero
posted May 14, 2019 11:20 PM

Hi, I need a little help guys.
I opened Heroes3.exe with HxD and can't find any of the skills offsets from the first page:
"offset: 0x0023e998(luck)
offset: 0x0023e9a8(leadership)
offset: 0x0023e9b8(necromancy)
offset: 0x0023e9c8(mysticism)
offset: 0x0023e9d8(scouting)
offset: 0x0023e9e8(archery)
offset: 0x0023e9f8(offence)
offset: 0x0023ea08(armorer)
offset: 0x0023ea18(estates)
offset: 0x0023ea28(eagle eye)
offset: 0x0023ea38(diplomacy)
offset: 0x0023ea48(resistance)
offset: 0x0023ea58(learning)
offset: 0x0023ea68(logistics)
offset: 0x0023ea78(sorcery)
offset: 0x0023ea88(intelligence)
offset: 0x0023ea98(first aid)"

for example, i tried searching for offset 0023e998 (leadership) but the last one of that string of numbers is 0023e990, the next one is 0023e9a0 and so.

I mean none of those appear in the hex, they all (the ones i exeplified) have the last number "8" changed for a "0", so i don't know if they are the ones i should edit or not.

Any clue of what i am talking about? I can explain differently if needed.

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

Hero of Order
Part of the furniture
posted May 14, 2019 11:25 PM

You just look up the exact byte position within the exe file.

Hexadecimal numbering isn't any different from normal decimal, except that instead of numbers running from 0 through 9, they run from 0 through 9, a through f (so you essentially have a 16-number system as opposed to the normal 10-number system).

What editor are you using? Most editors only give the exact address of the first byte of the line that follows (usually 16 bytes), so to find the exact address as shown in the list, you just need to count 8 bytes further into the line, from the starting byte.
____________
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
Sir_Juas
Sir_Juas


Adventuring Hero
posted May 14, 2019 11:32 PM
Edited by Sir_Juas at 02:53, 15 May 2019.

Maurice said:
You just look up the exact byte position within the exe file.

Hexadecimal numbering isn't any different from normal decimal, except that instead of numbers running from 0 through 9, they run from 0 through 9, a through f (so you essentially have a 16-number system as opposed to the normal 10-number system).

What editor are you using? Most editors only give the exact address of the first byte of the line that follows (usually 16 bytes), so to find the exact address as shown in the list, you just need to count 8 bytes further into the line, from the starting byte.


Hi Maurice, I am using HxD.

So what you are trying to say is that "0023e998" is line "0023e990" plus 8 bytes to the right?

EDIT: I think I got the basics, i managed to change a few secondary skill valors and save, but the changes i made arent working. Im testing it with learning, i put it to 20% (CD CC 4C 3E) on basic but the hero still gains 5%... is there anything else to do instead of just saving after you edit?

PS: I hope my questions and your kind answers are being useful to somebody else aswell

EDIT 2: Ok, I got it to work on a clean copy, the problem seems to be I cant put both changes at the same time (txt changes and hex changes).
If i put the txt files and make the hex change on the exe the game wont start, but if i withdraw txt or hex changes and leave just one, the game starts normally and the changes work.
They seem to work fine separatelly, but put together the game doesnt start.
Any idea what could be the interference here?

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

Hero of Order
Part of the furniture
posted May 15, 2019 10:26 AM
Edited by Maurice at 10:30, 15 May 2019.

So what text changes are you referring to?

Keep in mind that hex editing of the exe file can be dangerous, as they're basically machine instructions. If you don't know what you're doing, it's easy to mess it up and cause the .exe to crash on launching. It's perhaps the primary reason this whole thread exists - to help people understand what they're doing .

Edit: I realise it may be somewhat time consuming, but I recommend that you read the entire thread and check the stuff that's being talked about yourself within your editor. Not to make changes, but to see what people are talking about in the various posts and how it looks like within the actual .exe file. That might increase your insight in how stuff works.
____________
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
Sir_Juas
Sir_Juas


Adventuring Hero
posted May 15, 2019 04:55 PM
Edited by Sir_Juas at 19:27, 15 May 2019.

Maurice said:
So what text changes are you referring to?


I changed/edited CRTRAITS.txt, SPTRAITS.txt and lately SSTRAITS.txt.
I've tested in different versions of the game, and if i hex edit the heroes3.exe alone it works fine; also if I only replace the txts I mentioned before (with the program "lodedit") it also works fine. But when I try replacing the txts once i already hex edited the heroes.exe then the game just stops working. Or if i do first the txt changes and then the hex changes the game works fine but the hex changes wont work (thats what happened to me at first). There is something weird going on

Maurice said:
Keep in mind that hex editing of the exe file can be dangerous, as they're basically machine instructions. If you don't know what you're doing, it's easy to mess it up and cause the .exe to crash on launching. It's perhaps the primary reason this whole thread exists - to help people understand what they're doing .


Yes I understand, i only changed very few valors that i assured they were the ones i needed to change. Learning % values for example, wich i noticed it worked fine. So i dont think I am messing the exe

Maurice said:
Edit: I realise it may be somewhat time consuming, but I recommend that you read the entire thread and check the stuff that's being talked about yourself within your editor. Not to make changes, but to see what people are talking about in the various posts and how it looks like within the actual .exe file. That might increase your insight in how stuff works.


Yes Maurice youre right, I am going to read the entire post again and see what I can learn (or help!).

Anyways, if anybody has a slight idea of why i cant make both (txt and hex) changes work together i'm here reading expectantly

Thank you for your help

EDIT:
It seems i am having a similar problem to that phoenix4ever had on page 2

"Great, after applying the changes to Learning, HD mod won't recognise HotA, only SoD."

(instead i am working with SoD, not HotA)

phoenix, I know, it has been like 2 and a half years ago... but do you remember how you finally got it to work both txt and hex edits together (also with the HD mod)?

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


Legendary Hero
Heroes is love, Heroes is life
posted May 15, 2019 07:39 PM
Edited by phoenix4ever at 19:40, 15 May 2019.

Sir_Juas Yeah it's been quite some time, but I remember the problem.
If you see my next post back on page 2, I created a new exe using HD Mod, there is literally an option that's called "Create HD exe". I think I did that and then did all my hex editing in that exe.
It's been quite some time, so forgive me if I'm wrong, but I think that was it.

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


Adventuring Hero
posted May 15, 2019 07:51 PM

Oh my God, i don't understand how, but after reading your response i created an excecutable called "Heroes 3 Mod" and launched it with HD mod, and it reads both, txt and hex changes

Thank you so much guys!

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


Legendary Hero
Heroes is love, Heroes is life
posted May 15, 2019 07:57 PM

Happy to help.

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


Adventuring Hero
posted May 15, 2019 10:17 PM
Edited by Sir_Juas at 23:10, 15 May 2019.

phoenix4ever said:
Does anyone know where to change which war machine appear in a town?
I wan't Necropolis to have ballista and Castle to have First Aid Tent...


phoenix4ever said:
Nevermind, I found out how to change the war machines in the .exe file, that is awesome.



Where did you find, and how did you edit the exe to get the war machines like that?, i like the change because the Undead having an aid tent is quite weird

EDIT:
Sorry, then you say it didn't totally work. Have you later found the way? how?
I know about castles blacksmith being tied to the stronghold ballista yard.
Do you have the offsets of the blacksmiths' war machines and wich are the codes for each of the 3 war machines?

EDIT 2:
Mmmh I am seeing it is much harder than I thought, I think I'll leave the war machines where they are by the moment, maybe I'll try that again in the future.

Thanks anyways, I am pretty glad already with all the changes i could make thanks to everybody on this post.

----------

I made an Excel spread sheet with all creature and magic data and modified it all a few times till I got what i wanted.

I changed everything on CRTraits.txt to make a "Realistic Mod", adapting every stat to the way the creatures looks physically, it's armor and weapons, and their powers, setting a cap of 100HP to the stronguest unit in the game (and everything thought up on the values 1 to 100).

Then i changed A LOT of stuff from SPTraits.txt adapting the spell power to the creatures' stats and the mana cost of mostly all spells (and a few had their level changed, like Magic Mirror being downgraded to lvl 3, or slow and haste upgraded to lvl 2 for example) to make all schools more balanced, and differenciate more the might heroes from the magic heroes making some spells spencier. Then I changed the texts and put the numbers in golden color (you can golden colour the text by putting it between curly braces {text} )

And recently i changed some skills through hex edit and the text through SSTraits.txt:
Archery: Downgraded to 10-20-30
Armorer: Upgraded to 10-20-30
Resistance: Upgraded to 10-20-30
Sorcery: Upgraded to 10-20-30
Learning: Upgraded to 20-40-60

And I would like to change:
Eagle Eye: Upgrade to 100% chance on every level
Estates: Upgrade to 250-500-750
Mysticism: Upgrade to 5-10-15
Scouting: Upgrade to 2-4-6

I hope i can make them soon.

I can share the Mod if anyone is interested in testing it

Thanks again for I could make all that by reading stuff from this post

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


Legendary Hero
Heroes is love, Heroes is life
posted May 15, 2019 10:42 PM

Yeah I really wanted Castle to have First Aid Tent and Necropolis to have Ballista. (Also fits good and evil town better) Necropolis heroes can't even learn First Aid, yet they get a First Aid Tent, that can somehow heal undead, which is incredibly weird to me.
Sadly I found out Stronghold's Ballista Yard is connected to Castle's blacksmith, which mean if Castle had First Aid Tent, so would Stronghold in their Ballista Yard.
I remember I also encountered some other problem, as you have probably already read, so I decided to drop changing war machines.

What I have done though, is improve Ballista, First Aid Tent and Ammo Cart and made it possible to "dismiss" war machines, which is useful when you learn Blind and don't want ballista/cannon to shoot at blinded targets.

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


Adventuring Hero
posted May 15, 2019 11:15 PM
Edited by Sir_Juas at 23:16, 15 May 2019.

Yes it has no sense

phoenix4ever said:
What I have done though, is improve Ballista, First Aid Tent and Ammo Cart and made it possible to "dismiss" war machines, which is useful when you learn Blind and don't want ballista/cannon to shoot at blinded targets.


And what improvements did you make to them?
From CRTraits or from the .exe?

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


Legendary Hero
Heroes is love, Heroes is life
posted May 15, 2019 11:26 PM

Changing stats of war machines (minus cannon) can be done by editing the crtraits.txt file.
The changes I did:
Ballista: 2-3 damage -> 3-4 damage
Ammo Cart: 5 defense -> 10 defense 100 HP -> 250 HP
First Aid Tent: 0 defense -> 10 defense 75 HP -> 250 HP (also made the First Aid skill heal more)

Dismissing war machines is done by hex editing.

 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 ... 61 62 63 64 65 ... 70 80 90 100 110 111 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1579 seconds