|
|
NimoStar
Responsible
Legendary Hero
Modding the Unmoddable
|
posted January 27, 2021 09:32 PM |
|
|
Its on the EXE
You need Resource Hacker (free tool)
Modify the menues, then recompile.
I did it for Greatest Mod
____________
Never changing = never improving
|
|
leadcrow
Hired Hero
|
posted January 28, 2021 05:12 PM |
|
|
Hi Nimostar!
Thank you for the fast answer
Yesterday I found the adress to change blacksmiths.
It's in the h4 Dll
In my version (Equi3.51)
Life: .100040E4
Order: .100040F8
Death: .1000410C
Chaos: .10004120
Nature:.10004130
Might: .10004144
The adresses for potions are also nearby.
List of Artifact codes are here:
http://equilibris.celestialheavens.com/forum/viewtopic.php?f=15&t=5145&sid=52894c27c245c66fb3bdce0bf0c994f6
You also have to rename everything inside the .ora of the dialog.blacksmith layer files correspondly.
And if u want to sell a artifact that wasn't available before, then open heroes4.h4r and choose any item that was sold before (like Mages_Staff) in the layers.dialog.blacksmith and save it with the name of the new artifact. And then u add that to your equi.h4r
Also change the costs of artifact in the table.
____________
|
|
vulcancolak
Famous Hero
|
posted April 11, 2021 12:38 PM |
|
|
leadcrow said: Hi Nimostar!
Thank you for the fast answer
Yesterday I found the adress to change blacksmiths.
It's in the h4 Dll
In my version (Equi3.51)
Life: .100040E4
Order: .100040F8
Death: .1000410C
Chaos: .10004120
Nature:.10004130
Might: .10004144
The adresses for potions are also nearby.
List of Artifact codes are here:
http://equilibris.celestialheavens.com/forum/viewtopic.php?f=15&t=5145&sid=52894c27c245c66fb3bdce0bf0c994f6
You also have to rename everything inside the .ora of the dialog.blacksmith layer files correspondly.
And if u want to sell a artifact that wasn't available before, then open heroes4.h4r and choose any item that was sold before (like Mages_Staff) in the layers.dialog.blacksmith and save it with the name of the new artifact. And then u add that to your equi.h4r
Also change the costs of artifact in the table.
Hello my friend. I was trying to test it on few artifacts but it seems i cannot find the shop. I was correcting by checking next values if it includes Plate Mail (7E) but somehow i cannot find. Am i missing something?
|
|
leadcrow
Hired Hero
|
posted April 12, 2021 07:24 PM |
|
|
vulcancolak said:
Hello my friend. I was trying to test it on few artifacts but it seems i cannot find the shop. I was correcting by checking next values if it includes Plate Mail (7E) but somehow i cannot find. Am i missing something?
It's the h4.dll file not heroes4.exe
I don't know where it is for original Heroes4 only Equilibris.
____________
|
|
vulcancolak
Famous Hero
|
posted April 13, 2021 01:22 AM |
|
|
Hmmm are you sure about that? Here it is my h4.dll file
And it is my mod folder. None of the .dll files long enough to reach 100040E4
And currently i gave myself to crazy duty. I will gonna check greatsword (4f) crossbow (2f) and plate mail (7e)
One by one i will try to find 4f 2f 7e together. Or at least 1 or 2 spaces between theirs.
|
|
leadcrow
Hired Hero
|
posted April 13, 2021 11:30 AM |
|
|
I think you forgot the dot at the start of the adress
____________
|
|
vulcancolak
Famous Hero
|
posted April 13, 2021 12:48 PM |
|
|
leadcrow said: I think you forgot the dot at the start of the adress
Hmmm. What does this mean?
|
|
leadcrow
Hired Hero
|
posted April 13, 2021 12:50 PM |
|
|
type instead of
100040E4
.100040E4
____________
|
|
vulcancolak
Famous Hero
|
posted April 13, 2021 01:35 PM |
|
|
leadcrow said: type instead of
100040E4
.100040E4
This happens when i do this
I have tried to all search types of all these
Single (float32), 4 bytes
Real, 6 bytes
Double (float64), 8 bytes
Extended (float80) 10 bytes
hex-values
And when i try to search it as text-string it says
Can't find ".100040E4".
|
|
leadcrow
Hired Hero
|
posted April 13, 2021 02:19 PM |
|
|
I just downloaded the editor you use
I use hiew and i thought its all the same
the offset in HxD for .100040E4 is 000028E4
sry
____________
|
|
vulcancolak
Famous Hero
|
posted April 13, 2021 05:17 PM |
|
|
leadcrow said: I just downloaded the editor you use
I use hiew and i thought its all the same
the offset in HxD for .100040E4 is 000028E4
sry
No problem my friend. Yes it seems i found it. I have replaced Iron Plate with Golden Platemail (7E > 4D) game crashes when i click the armory. Now it seems i found the file you mentioned.
layers.dialog.blacksmith.plate_mail.df2
"And if u want to sell a artifact that wasn't available before, then open heroes4.h4r and choose any item that was sold before (like Mages_Staff) in the layers.dialog.blacksmith and save it with the name of the new artifact. And then u add that to your equi.h4r"
Now i am bit of confused. I have extracted these files from Heroes4.h4r/adv_object/artifacts/armor
adv_object.artifacts.armor.golden platemail.df2
adv_object.artifacts.armor.plate mail.df2
And extracted these files but i realize there are 2 platemails
Heroes4.h4r/font/dialog/blacksmith
layers.dialog.blacksmith.plate_mail.df2
layers.dialog.blacksmith.platemail.df2
I want to replace Golden Platemail with Plate Mail. I have tried few things and i have failed.
My last attemps is extracted layers.dialog.blacksmith.mage's_staff.df2
renamed it as
layers.dialog.blacksmith.golden_platemail.df2
then saved it to my equi.h4r but game keeps crashing while try to open order of paladins
|
|
leadcrow
Hired Hero
|
posted April 13, 2021 05:36 PM |
|
|
you must name it like in the artifacts table, so Golden Platemail would be golden_plate_mail
____________
|
|
vulcancolak
Famous Hero
|
posted April 13, 2021 05:41 PM |
|
|
leadcrow said: you must name it like in the artifacts table, so Golden Platemail would be golden_plate_mail
This is not worked either. Changed this original file layers.dialog.blacksmith.plate_mail.df2
With this one
layers.dialog.blacksmith.golden_plate_mail.df2
But sadly not worked.
And i am sure about the h4.dll file change is correct
2F 00 00 00 69 00 00 00 4d (it was 7E) 00 00 00 C3 00 00 00 FF FF FF FF 0E 00 00 00 6B 00 00 00
|
|
leadcrow
Hired Hero
|
posted April 13, 2021 06:19 PM |
|
|
sry again, has been a while since I discovered this and also im very forgetful because of weed
I checked and now i remember:
u must export the .ora file of layers.dialog.Blacksmith.Life
then open with Gimp
and there u rename everything that is Platemail
but i recommend you eventually try a different artifact because I realized the naming convention is not as in the table,so it could be
Golden_plate_mail (most likely)
Golden_Plate_Mail
I guess
____________
|
|
leadcrow
Hired Hero
|
posted April 13, 2021 06:25 PM |
|
Edited by leadcrow at 18:27, 13 Apr 2021.
|
on the bottom right corner u have to rename everything
[url=https://ibb.co/99wGmJV][/url]
____________
|
|
vulcancolak
Famous Hero
|
posted April 13, 2021 08:38 PM |
|
|
leadcrow said: on the bottom right corner u have to rename everything
Since an hour i am trying but i cannot do that.
Can you tell me like you are talking with imbecil? I cannot open it with GIMP. Unknown file type. When i try to change .df2 as .ora, GIMP, still i cannot open it.
|
|
iliveinabox05
Honorable
Famous Hero
|
posted April 13, 2021 09:23 PM |
|
|
vulcancolak said: Since an hour i am trying but i cannot do that.
Can you tell me like you are talking with imbecil? I cannot open it with GIMP. Unknown file type. When i try to change .df2 as .ora, GIMP, still i cannot open it.
You'll need a program which can extract an ora file from your df2 file. Either Namerutan's H4ResHelper, or my H4 Resource Editor can do this.
|
|
leadcrow
Hired Hero
|
posted April 13, 2021 09:33 PM |
|
Edited by leadcrow at 21:34, 13 Apr 2021.
|
Yes. With H4 Resource Editor I do that.
I actually pre-assume everyone who mods Heroes4 uses that.
But I am motivated to make a detailed post now.
____________
|
|
vulcancolak
Famous Hero
|
posted April 13, 2021 09:33 PM |
|
|
Wow. It was your software? Great job my friend. Now i am going to check it out.
|
|
iliveinabox05
Honorable
Famous Hero
|
posted April 13, 2021 09:49 PM |
|
|
vulcancolak said: Wow. It was your software? Great job my friend. Now i am going to check it out.
Haha yes, and thanks
Working on a bug right now so that we can streamline replacing buildings in the town screen
|
|
|