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 May 02, 2021 10:16 AM

NimoStar said:


Anyways, my only point is that if files are recognized by pointers, or evem by how they start (table.blahblah...), you don't need to force people into any "extension" pattern, as such the tool could pack any and every file you indicate it, without being limited by formal extension.


I just recall that trying to pack up files with h4d extension with the mh4 program, files wouldn't work or wouldn't be packed. They needed to have eg. the obj extension, but that led me to think, that's likely how the extractor/builder are setup up to recognize the files and not related to how the game read them.
I know the editor read files from how the file name is listed, with type first, and the editor dont read loose obj or lay files, only h4r or h4d.

But I agree to your point

As long as it's regocnized H4 format, it would be beneficial if the ResourceEditor could read and pack them, no matter what extension they have.
____________

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


Responsible
Legendary Hero
Modding the Unmoddable
posted May 02, 2021 02:10 PM

Quote:
I just recall that trying to pack up files with h4d extension with the mh4 program, files wouldn't work or wouldn't be packed. They needed to have eg. the obj extension, but that led me to think, that's likely how the extractor/builder are setup up to recognize the files and not related to how the game read them.


Yeah that is just how editors are configured. like resedit doesn't read h4d, others don't read df2, and so on, but once you pack them, that ".xxx" is no longer relevant while inside the h4r.
____________
Never changing = never improving

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


Honorable
Famous Hero
posted May 02, 2021 06:41 PM

NimoStar said:
However I did use hex edit on .h4r and didn't find the ".h4d" string at all.


In heroes.h4r, everything in the table of contents certainly does have .h4d in the filename. I doubt a different localization would have a different format for the h4r table of contents, but I guess it's possible.

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


Responsible
Legendary Hero
Modding the Unmoddable
posted May 05, 2021 11:19 AM

That's just an artifact of how the particular file is packed. If you pack with Resedit it can say DF2. Game exe is indifferent to this.


____________
Never changing = never improving

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


Honorable
Famous Hero
posted May 05, 2021 03:56 PM

That's fine, all of my unmodified h4r files list the file names with h4d in the table of contents, so I'm going to continue using that convention.

If others want to create a program and list the files with different extensions in their h4r containers, they are certainly welcome to do that.


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


Famous Hero
posted June 28, 2021 05:18 PM
Edited by vulcancolak at 17:39, 28 Jun 2021.

iliveinabox05 said:
vulcancolak said:
LOL really? Just changing .txt to .h4d manually solves all our problems? I will try it when i back to home


Haha well I did mention you should try that

The reason for that is because I'm currently only supporting .h4d extensions when adding files to an h4r container.

It shouldn't be a big deal to let you add any extension, since I really only need to check the filename to figure out what type of H4 object it is, but I'm working on some other bugs and features at the moment.


I am so sorry. Believe me or not but still i haven't figured it out.
After few months i was reading my own messages, 1 hour passed and still i don't understand. It is extremely confusing to me. Now still i am trying, if i will not succeed, sadly i have to request from someone to tell me step by step how to add artifact in the specific shops. Now i am continuing my work.

Ok ok i give up. I will be very happy if someone can tell me like "step by step telling something to idiot" because i really need this. My brain no more can handle much. Or i can start stream, so you can join my stream and tell me what should i do. Just ask for it.

--- I am going to share my progress with you step by step ---
My objective is replace Plate Mail with Golden Platemail from Life Armory

1-) Opened h4.dll file, went to offset 000028E4 and changed 7E (platemail) with 4d (golden platemail) then saved h4.dll file
2-) Opened heroes4.h4r, chosen mage's staff in the layers.dialog.blacksmith and saved it now i have a file with named "layers.dialog.blacksmith.mage's_staff.h4d"

Now let's start with first 2 steps. Is it correct or not?

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


Honorable
Famous Hero
posted June 29, 2021 04:56 AM

vulcancolak said:
My objective is replace Plate Mail with Golden Platemail from Life Armory

1-) Opened h4.dll file, went to offset 000028E4 and changed 7E (platemail) with 4d (golden platemail) then saved h4.dll file
2-) Opened heroes4.h4r, chosen mage's staff in the layers.dialog.blacksmith and saved it now i have a file with named "layers.dialog.blacksmith.mage's_staff.h4d"

Now let's start with first 2 steps. Is it correct or not?


Hi there again vulcancolak.

I can't really help you with the dll hex editing.

What exactly are you trying to do with the dialog blacksmith layers?

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


Famous Hero
posted June 29, 2021 10:43 AM
Edited by vulcancolak at 11:16, 29 Jun 2021.

iliveinabox05 said:
vulcancolak said:
My objective is replace Plate Mail with Golden Platemail from Life Armory

1-) Opened h4.dll file, went to offset 000028E4 and changed 7E (platemail) with 4d (golden platemail) then saved h4.dll file
2-) Opened heroes4.h4r, chosen mage's staff in the layers.dialog.blacksmith and saved it now i have a file with named "layers.dialog.blacksmith.mage's_staff.h4d"

Now let's start with first 2 steps. Is it correct or not?


Hi there again vulcancolak.

I can't really help you with the dll hex editing.

What exactly are you trying to do with the dialog blacksmith layers?


Here is the video for my entire process https://youtu.be/lzYlwWz6ZdM

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


Responsible
Legendary Hero
Modding the Unmoddable
posted June 29, 2021 10:44 AM

The blacksmith layers have names for the artifacts they grant. This was one of the reasons I askedfor layer nameediting, remember?

Anyways that's done but *just* editing the layers isn't enough. As it appears it is also necessary to edit the artifact locations in the .exe blacksmith lists.


However I never got around to making this work, either. So if anyone has a detailed step by step blacksmith editing tutorial, I second vulcancolak too.

Something to notice is that Equilibris (both 355 and 351) does have some edited blacksmith files. I could try to see to those. But their hex edits in themain exe are literally thousands of locations altered, so it isn't easy to find or know what is what.

To make matter worse many of the editing is not actually on the exe but on their dll hex extensions, where they put things like new necromancy locations that override the previous ones. So it may not be as easy, but I do have the extracted blacksmith files.
____________
Never changing = never improving

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


Famous Hero
posted June 29, 2021 11:17 AM

NimoStar said:
T


Already recorded video for the entire process in here https://youtu.be/lzYlwWz6ZdM

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


Responsible
Supreme Hero
posted June 29, 2021 11:49 AM
Edited by karmakeld at 12:01, 29 Jun 2021.

vulcancolak said:


Already recorded video for the entire process in here https://youtu.be/lzYlwWz6ZdM


Have you tried opening your modified equi.h4r with the ResourceEditor? I see you use, but I didn't notice you actually checking if the image is shown correctly as you want. This way you could actually see what's packed inside the file, and if the layers are readable. As of now you don't know what went wrong. Alternatively, do things 1 step at a time, so you'll know which of the edits is causing a crash. Right now you have several edits and new files added, so it could be any of these.

Also I think for the layers you are basically just renaming the file name, the image still stays the same inside/or the layer name remains the same (basically what Nimo also mentioned above). But the game will look for the layer named Leather Armor as it knows it has be in a one of the Blacksmith slots, so you need to rename the layer accordingly. I see you missed the step of renaming it in Gimp. If you open the layer in hex editor you will likely see it's still called Leather Armor and not golden plate mail. So that could be atleast 1 of the issues. There could be others though..

Also its a bit messy when you mention/extract Leather armor, but in your text you seem to be trying to replace Plate Mail with Golden Plate Mail and then you also mention extracting Mage's Staff layer...?
____________

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


Famous Hero
posted June 29, 2021 12:09 PM

karmakeld said:
vulcancolak said:


Already recorded video for the entire process in here https://youtu.be/lzYlwWz6ZdM


Have you tried opening your modified equi.h4r with the ResourceEditor? I see you use, but I didn't notice you actually checking if the image is shown correctly as you want. This way you could actually see what's packed inside the file, and if the layers are readable. As of now you don't know what went wrong. Alternatively, do things 1 step at a time, so you'll know which of the edits is causing a crash. Right now you have several edits and new files added, so it could be any of these.

Also I think for the layers you are basically just renaming the file name, the image still stays the same inside. But the game will look for the layer named Leather Armor as it knows it has be in a one of the Blacksmith slots, so you need to rename the layer accordingly. I see you missed the step of renaming it in Gimp. If you open the layer in hex editor you will likely see it's still called Leather Armor and not golden plate mail. So that could be atleast 1 of the issues. There could be others though..

Also its a bit messy when you mention/extract Leather armor, but in your text you seem to be trying to replace Plate Mail with Golden Plate Mail and then you also mention extracting Mage's Staff layer...?


I don't know why but i am not able to edit the files when i pack it. But i am always keeping original files and packing the mod with the original equi file. I can give you guarantee about that. It is not about my modded files. I mean crash.

Abou the layer part, i have extracted leather armor only for dummy purpose. It is not important what type of item.

About the gimp part, h4 resource editor can do the same thing and i have renamed all plate_mail as golden_plate_mail as you can see

About the mage's staff part yes i have misspelled it. But leadcrow said that before "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."

Bro, i am already getting tired and i feel pressure in my head. Everything feels so difficult to me right now. I don't know which part is wrong

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


Responsible
Legendary Hero
Modding the Unmoddable
posted June 29, 2021 03:30 PM

Seeing the equilibris files, there are some edited files in:

Quote:
layers.icons.artifacts.item
layers.icons.artifacts.armor
layers.icons.artifacts.weapon



I reckon editing these items icons might be necessary to getting the blacksmiths to work with new objects.

Like other icons these should be edited as ora layer files. I'm guessing the icons are missingotherwise for relevant artifacts.


On the other hand, this might be just them adding their griffin helm and whatnot

____________
Never changing = never improving

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


Honorable
Famous Hero
posted June 29, 2021 04:23 PM

vulcancolak said:
save it with the name of the new artifact. And then u add that to your equi.h4r


I think something is missing here. If you just save mages staff as the name of your new artifact, it's still just the mages staff in the file, and so nothing will be changed when the game reads it in. Your new file will just be a differently named mages staff.

You need to also replace the layers within the renamed file for the golden plate mail. Specifically, it looks like you need to replace the layer for "highlighted", "pressed", and "released".

You should extract the frame from the golden plate mail artifact, resize that accordingly, and use that image for the three layers I mentioned above.

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


Famous Hero
posted June 29, 2021 04:53 PM
Edited by vulcancolak at 16:59, 29 Jun 2021.

iliveinabox05 said:
vulcancolak said:
save it with the name of the new artifact. And then u add that to your equi.h4r


I think something is missing here. If you just save mages staff as the name of your new artifact, it's still just the mages staff in the file, and so nothing will be changed when the game reads it in. Your new file will just be a differently named mages staff.

You need to also replace the layers within the renamed file for the golden plate mail. Specifically, it looks like you need to replace the layer for "highlighted", "pressed", and "released".

You should extract the frame from the golden plate mail artifact, resize that accordingly, and use that image for the three layers I mentioned above.


I am totally confused now. I was changed file name as layers.dialog.blacksmith.golden_plate_mail.h4d as you can see the video. By the way i was succeed few weeks ago. I was exported chainmail and item was looking like Chain Mail. This is why it is not the point but i am not sure. And again, if you can see from the video, i was already made name changes.

https://youtu.be/lzYlwWz6ZdM

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


Responsible
Supreme Hero
posted June 30, 2021 12:18 AM

vulcancolak said:
iliveinabox05 said:
vulcancolak said:
save it with the name of the new artifact. And then u add that to your equi.h4r


I think something is missing here. If you just save mages staff as the name of your new artifact, it's still just the mages staff in the file, and so nothing will be changed when the game reads it in. Your new file will just be a differently named mages staff.

You need to also replace the layers within the renamed file for the golden plate mail. Specifically, it looks like you need to replace the layer for "highlighted", "pressed", and "released".

You should extract the frame from the golden plate mail artifact, resize that accordingly, and use that image for the three layers I mentioned above.


I am totally confused now. I was changed file name as layers.dialog.blacksmith.golden_plate_mail.h4d as you can see the video. By the way i was succeed few weeks ago. I was exported chainmail and item was looking like Chain Mail. This is why it is not the point but i am not sure. And again, if you can see from the video, i was already made name changes.

https://youtu.be/lzYlwWz6ZdM


Can you recall the process of the chain mail? if you made that work then...
____________

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


Honorable
Famous Hero
posted June 30, 2021 12:34 AM

vulcancolak said:
I am totally confused now. I was changed file name as layers.dialog.blacksmith.golden_plate_mail.h4d as you can see the video. By the way i was succeed few weeks ago. I was exported chainmail and item was looking like Chain Mail. This is why it is not the point but i am not sure. And again, if you can see from the video, i was already made name changes.

https://youtu.be/lzYlwWz6ZdM


I noticed that you're still packing your new files into equi.h4r instead of new_mod.h4r

I would strongly advise against that. Use a new h4r file called "new_mod.h4r" to add your modded files to for testing.

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


Famous Hero
posted June 30, 2021 01:14 PM
Edited by vulcancolak at 13:52, 30 Jun 2021.

You mean pack your mod as your way but pack the golden platemail and life shop files separately with different name? If i do that, both of the mods works together? If i will not gonna use equi.h4r game is not running.

I have packed layers.dialog.blacksmith.golden_plate_mail.h4d and layers.dialog.blacksmith.life.h4d as new_mod as you tell, still keeps crashing.

Edit: After several attempts still keeps crashing. Is anyone knows why we cannot make it work?

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


Responsible
Supreme Hero
posted June 30, 2021 01:48 PM
Edited by karmakeld at 13:50, 30 Jun 2021.

vulcancolak said:
You mean pack your mod as your way but pack the golden platemail and life shop files separately with different name? If i do that, both of the mods works together? If i will not gonna use equi.h4r game is not running.


Instead of packing all of your new files into equi.h4r you save it as new_mod.h4r. Equi is able to read the new_mod.h4r but you don't risk interfering with the files inside the equi.h4r. So yes it will run the Equilibris mod with your mod changes in it.

Could you upload the h4r file or send it to me?
____________

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


Famous Hero
posted June 30, 2021 01:54 PM
Edited by vulcancolak at 20:44, 01 Jul 2021.

Sure here the files.

https://easyupload.io/m/0wz2s4

Edit: Today i have tried few things again but still it keeps crashing. Is someone have an idea?

 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.0782 seconds