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 4 - Lands of Axeoth > Thread: Sharing something about Mod
Thread: Sharing something about Mod This thread is 13 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 · «PREV / NEXT»
karmakeld
karmakeld


Responsible
Supreme Hero
posted July 02, 2021 09:33 PM

so I had a look inside the files, and they show nicely in the modding tools, so the layers are okay.
I see in Gimp that the Life Blacksmith screen, Text_Golden_Plate_Mail has been changed from Plate_Mail as well as the name that tell which artifact to display. Looks ok.
But when I look at the layer golden_plate_mail, you have the highlighted, pressed and released, but it still displays the old Plate Mail, so as I thought, you didn't replace the image in there, you just renamed it.
I tried enabling just 1 file at a time, and the blacksmith.life is the one that crashes the game.
Having just the golden_plate_mail layer enabled, didn't change a thing in the Blacksmith in game, so you just renamed the layer name.
So you need to look at the Life layer, something is wrong inside that file or perhaps something it's linked to..
____________

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


Responsible
Legendary Hero
Modding the Unmoddable
posted July 03, 2021 01:28 AM
Edited by NimoStar at 01:39, 03 Jul 2021.

I used a blacksmith.chaos layer in my mod as a test, taken from equilibris. Nothing changed but the game didn't crash (only with the equilibris 355 does the game read the new artifacts)

I think then a correctly packed blacksmith file will not crash the game. They may have extra adresses that the H4 resource editor is not taking into account correctly.



The Equilibris one changed images and not only titles, so it's quite hard to actually see what they did to make it work.

If you would tell me where the armories and their artifacts are in the actual heroes4.exe (Not the equilibris DLL), I may be able to help
____________
Never changing = never improving

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


Famous Hero
posted July 03, 2021 07:58 AM
Edited by vulcancolak at 08:04, 03 Jul 2021.

@karmakeld Yes it is looking as Plate Mail. But i am 100% sure about that, if i remember correctly i was changed the chain_mail as golden_plate_mail and item was looking as Chain Mail in the shop. But it was Golden Platemail (i mean it's stats) and it was my only problem. I am 100% sure about that. But i was working on my other projects for 2 months, then i have decided to edit my mod and change the shops again, and it happens.

@nimostar honestly i was followed leadcrow what told us

"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."

------------------------------------------------

Let's talk about the logic behind it. We want to add new item that never sold before, first we are exporting random item from any market and i have changed Plate Mail for this. I have changed 7E > 4D from hero h4.dll file and we told the game "hey life shop, do you remember you had the item 7e (plate mail) we are changing it as 4d (golden plate mail) now go and do your work"

But still the game engine thinks it is plate_mail, so we are changing layers of the plate_mail as golden_plate_mail. Is anything are we missing? I am exporting blacksmith life layer from the heroes4.h4r original file last change 2002. What can cause the crash when i click the blacksmith? Are the game still trying to find Plate_Mail? Looking for the Golden_Plate_Mail or something else?

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


Legendary Hero
posted July 03, 2021 06:05 PM

Probably you must change two things. First code of artifact second look.
When you changed in blacksmith artifact its still old look! Have you ever try buy it?! If you buy what you have in equipment?!

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


Responsible
Legendary Hero
Modding the Unmoddable
posted July 03, 2021 07:03 PM

yes, but I think having it in the real h4 file rather than just in the DLL is better. So far I don't know where the adresses for blacksmiths are in the .exe - their hex codes shoudn't be too hard to find with the ones in the dll as reference, though.
____________
Never changing = never improving

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


Honorable
Famous Hero
posted July 04, 2021 04:23 AM

vulcancolak said:
@karmakeld Yes it is looking as Plate Mail. But i am 100% sure about that, if i remember correctly i was changed the chain_mail as golden_plate_mail and item was looking as Chain Mail in the shop. But it was Golden Platemail (i mean it's stats) and it was my only problem. I am 100% sure about that. But i was working on my other projects for 2 months, then i have decided to edit my mod and change the shops again, and it happens.

@nimostar honestly i was followed leadcrow what told us

"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."

------------------------------------------------

Let's talk about the logic behind it. We want to add new item that never sold before, first we are exporting random item from any market and i have changed Plate Mail for this. I have changed 7E > 4D from hero h4.dll file and we told the game "hey life shop, do you remember you had the item 7e (plate mail) we are changing it as 4d (golden plate mail) now go and do your work"

But still the game engine thinks it is plate_mail, so we are changing layers of the plate_mail as golden_plate_mail. Is anything are we missing? I am exporting blacksmith life layer from the heroes4.h4r original file last change 2002. What can cause the crash when i click the blacksmith? Are the game still trying to find Plate_Mail? Looking for the Golden_Plate_Mail or something else?


Hey buddy, pay very close attention to what I am about to tell you. Both myself and Karmakeld told you exactly the problem.

After you make a copy of the plate mail h4d layers files and rename them to golden plate mail, YOU HAVE TO IMPORT THE GOLDEN PLATE MAIL IMAGE INTO YOUR NEW GOLDEN PLATE MAIL H4D LAYERS FILE.

Now read that again.

You are just calling the image for the plate mail by a different name. You also need to change the image within these files, which you can do with the H4 Resource Editor.

You should export the image from the golden plate mail artifact, and also export the layers file which still has the image for the regular plate mail. You then resize the image from the artifact file to match the size of the plate mail image in the layers file, and replace the plate mail layer with the new resized golden plate mail layer. Finally, you can import the resulting ora file into the renamed layers files.

If your mod was working before except for the look of the artifact in the shop, simply go back to what you had that was working, and then do what I mentioned above.

I'm sorry for being a bit rude, but I think I need to be to get through to you. Both Karmakeld and I have already told you exactly why it looks the same. So please, read this post as many times as you need to, and if you're having trouble with exporting / importing, let us know.

If it's a language barrier, let me know what language you speak and I will send you an HC message using google translate. It's usually pretty good at translating.

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


Famous Hero
posted July 04, 2021 10:07 AM

No more my brain can handle it. After countless hours, many attempts, extra details, video recordings my brain no more working properly. This is why i have asked can you please tell me like you are telling to idiot. Ok i will check the posts again and try to find which extra file i need and how can i find it. Thank you..

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


Famous Hero
posted August 03, 2021 08:25 PM
Edited by vulcancolak at 20:40, 03 Aug 2021.

iliveinabox05 said:

If it's a language barrier, let me know what language you speak and I will send you an HC message using google translate. It's usually pretty good at translating.


Ok after a month i will give it a try once again. Can you tell me which file i need?

"After you make a copy of the plate mail h4d layers files and rename them to golden plate mail, YOU HAVE TO IMPORT THE GOLDEN PLATE MAIL IMAGE INTO YOUR NEW GOLDEN PLATE MAIL H4D LAYERS FILE"

where can i find the golden platemail image file?


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


Honorable
Famous Hero
posted August 04, 2021 06:06 AM
Edited by iliveinabox05 at 06:12, 04 Aug 2021.

vulcancolak said:
Ok after a month i will give it a try once again. Can you tell me which file i need?

"After you make a copy of the plate mail h4d layers files and rename them to golden plate mail, YOU HAVE TO IMPORT THE GOLDEN PLATE MAIL IMAGE INTO YOUR NEW GOLDEN PLATE MAIL H4D LAYERS FILE"

where can i find the golden platemail image file?




Hi Vulcancolak!

Off the top of my head, you would need to use the image from the artifact object of the golden plate mail. The only issue with that is the image is very small in the artifact object, so when you resize it, it will appear a bit blurry.

Here is the layers file for you to test. I used the image from the golden plate mail artifact, so it is blurry due to upsizing. Simply drop it in your H4 Data folder: https://ufile.io/c7yar05q

This will change the image in the Life blacksmith shop. Then you just need to test to see if your dll change actually gives you the golden plate mail when you purchase it.

Edit. It's been a bit since I tried helping you with this, so what I sent you is actually just the plate_mail layers file, with the golden plate mail image. Try it first as is, and then try changing the name from plate_mail to golden_plate_mail if it doesn't work.

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


Famous Hero
posted August 04, 2021 01:20 PM
Edited by vulcancolak at 13:33, 04 Aug 2021.

iliveinabox05 said:
just need to test to see if your dll change actually gives you the golden plate mail when you purchase it.


Still keeps crashing. I have recorded another video with entire process. I will be happy if you can show me what am i missing.
By the way i am a stupid person. Please talk like you are talking to an idiot. Otherwise we will stuck here forever and we will never solve this issue. If i am missing something you have already told me, try to quote it once again.

If you want to request "do it together" let me know, so i can stream for you and you will tell me what should i do.

https://youtu.be/zn-J9rhmDc0

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


Famous Hero
posted August 04, 2021 01:28 PM
Edited by vulcancolak at 13:28, 04 Aug 2021.

iliveinabox05 said:
YOU HAVE TO IMPORT THE GOLDEN PLATE MAIL IMAGE INTO YOUR NEW GOLDEN PLATE MAIL H4D LAYERS FILE.
You are just calling the image for the plate mail by a different name.



Are you 100% sure about that? Few months ago i was exported chain_mail, just changing it's name and it was looking as chainmail but it has golden plate attributes in the game
Are you 100% sure?

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


Honorable
Famous Hero
posted August 04, 2021 03:25 PM

vulcancolak said:
Are you 100% sure about that? Few months ago i was exported chain_mail, just changing it's name and it was looking as chainmail but it has golden plate attributes in the game
Are you 100% sure?


You still need the golden plate mail image, which I have provided you with in my last post.

If that's the case, then all you should have to do is change the name of the layers file I provided you with.

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


Honorable
Famous Hero
posted August 04, 2021 03:48 PM
Edited by iliveinabox05 at 15:51, 04 Aug 2021.

vulcancolak said:
Still keeps crashing. I have recorded another video with entire process. I will be happy if you can show me what am i missing.
By the way i am a stupid person. Please talk like you are talking to an idiot. Otherwise we will stuck here forever and we will never solve this issue. If i am missing something you have already told me, try to quote it once again.

If you want to request "do it together" let me know, so i can stream for you and you will tell me what should i do.

https://youtu.be/zn-J9rhmDc0


Are you still repacking the layers file into equi.h4r? STOP DOING THAT. These particular layers files can be placed into the data folder, so you don't have to pack them into an h4r file. If you still want to pack them into an h4r file, pack them into new_mod.h4r. DO NOT REPACK THEM in equi.h4r

What you need to do is start over completely. I'll say it again: Start over completely.

Make the change in the dll to change to golden plate mail, then go into the game and verify that the properties are golden plate mail, even though it looks like regular plate mail.

Once you get to that point, we can go from there.

You just have too many windows open and too many ways for mistakes to creep in. It's time to start over.

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


Famous Hero
posted August 04, 2021 03:59 PM

iliveinabox05 said:

What you need to do is start over completely. I'll say it again: Start over completely.



In the video i thought already showed the entire process but ok.

Hello iliveinabox05. Life faction have a Plate Mail in their shops (order of paladins) and i want to change Plate Mail with Golden Plate Mail.
When i click the Order of Paladins, i want to buy Golden Plate Mail.

Tell me when you require extra details. I even can record 30 minutes video and i can do everything from very beginning (installation of game, requires softwares etc et) if you need.

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


Honorable
Famous Hero
posted August 04, 2021 04:03 PM
Edited by iliveinabox05 at 16:08, 04 Aug 2021.

vulcancolak said:
iliveinabox05 said:

What you need to do is start over completely. I'll say it again: Start over completely.



In the video i thought already showed the entire process but ok.

Hello iliveinabox05. Life faction have a Plate Mail in their shops (order of paladins) and i want to change Plate Mail with Golden Plate Mail.
When i click the Order of Paladins, i want to buy Golden Plate Mail.

Tell me when you require extra details. I even can record 30 minutes video and i can do everything from very beginning (installation of game, requires softwares etc et) if you need.


No, I mean you need to start completely over so you can get to the point where the game was not crashing. Everything you try causes the game to crash, so you need to start over and do one step at a time like Karmakeld suggested.

I don't mean start over with what you have posted here on the forum, I mean start over with a clean copy of Heroes 4 and Equilibris, before you started to mod things.

If you had anything else modded that was working, make a backup copy of it so you don't lose it.

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


Famous Hero
posted August 04, 2021 04:08 PM

Probably you missed that but i have already told three times i was succeed with like that few months ago. I was exported Chain Mail, renamed it as Golden Platemail and it was a Golden Platemail but it was looking as Chainmail. The only problem was "visual" but now i cannot do that.

Ok let's assume i have re-installed everything and still keeps crashing. What is your suggestion?

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


Honorable
Famous Hero
posted August 04, 2021 04:10 PM

vulcancolak said:
Probably you missed that but i have already told three times i was succeed with like that few months ago. I was exported Chain Mail, renamed it as Golden Platemail and it was a Golden Platemail but it was looking as Chainmail. The only problem was "visual" but now i cannot do that.

Ok let's assume i have re-installed everything and still keeps crashing. What is your suggestion?


And yet, you can't do anything now without the game crashing, and I have asked you repeatedly to GO BACK TO WHEN YOU WERE SUCCEEDING so we can start from there.

Again, go back to when you were succeeding but the look was wrong. When you get to that point, I will try to help you again. But if you keep trying from where you are with the game crashing, I can't do anything for you.

If the game is still crashing, then you've messed something else up. A clean install of HoMM4 + Equilibris should not crash.

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


Famous Hero
posted August 04, 2021 04:19 PM

iliveinabox05 said:

And yet, you can't do anything now without the game crashing, and I have asked you repeatedly to GO BACK TO WHEN YOU WERE SUCCEEDING so we can start from there..


Ok ok you are definitely living in a box. I am already in the place where i started. I haven't touched my original files. I am always making the copy of the "entire heroes 4 folder" and working on it. Reinstalling will change nothing.

iliveinabox05 said:
Again, go back to when you were succeeding but the look was wrong. When you get to that point, I will try to help you again. But if you keep trying from where you are with the game crashing, I can't do anything for you.



If i would go back in that time, my problem will be fixed.

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


Honorable
Famous Hero
posted August 04, 2021 04:26 PM
Edited by iliveinabox05 at 16:29, 04 Aug 2021.

vulcancolak said:
Ok ok you are definitely living in a box. I am already in the place where i started. I haven't touched my original files. I am always making the copy of the "entire heroes 4 folder" and working on it. Reinstalling will change nothing.

iliveinabox05 said:
Again, go back to when you were succeeding but the look was wrong. When you get to that point, I will try to help you again. But if you keep trying from where you are with the game crashing, I can't do anything for you.



If i would go back in that time, my problem will be fixed.


First of all, you never said you went back to a clean install.

Second of all, if you have gone back to a clean install of HoMM4 and Equilibris, and the game is still crashing, then you have clearly NOT gone back to a clean install.

Sorry man, but I don't know what you've done to your files, but you need to figure that part out first. Check your Data folder for additional h4d files that shouldn't be there and remove them if there are any.

Otherwise, re-download everything and install it again. And by that I mean: uninstall/delete your old install, re-download your HoMM4, re-download Equilibris, and install them again. Make sure you make a backup of any other mod stuff you may have had (Do not put them back in the data folder after reinstalling!).

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


Famous Hero
posted August 04, 2021 04:37 PM

There is a huge misunderstanding in here. Game keeps crashing when i change the h4.dll and pack the new layers of life blacksmith. I am working on 6 heroes 4 folders. 1 Is original, 1 is my mode and rest of them for testing purposes. Few months ago i was succeed. But now today i don't remember. This is why i have recorded 2 separate videos and i hope someone will realize something missing while watching videos.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 13 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0904 seconds