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 4 - Lands of Axeoth > Thread: Creating H4L files with MH4_096/08
Thread: Creating H4L files with MH4_096/08
NimoStar
NimoStar


Promising
Famous Hero
Modding the Unmoddable
posted September 10, 2017 07:26 AM
Edited by NimoStar at 08:58, 10 Sep 2017.

Creating H4L files with MH4_096/98

Well, a H4L file is a list of files to add to your mod.

MH4 takes these files and compiles them into a H4R you can use in your data folder.

My question is, is there a way to automate the building of H4L files, or you are just forced to do it on notepad?

My mod has hundreds of files (like over 300), writing each individually in a list is a pain... and then it might not work because of an error.


Also I have this example for Equilibris:

"[H4R File List]
equi.h4r
11
adv_object.artifacts.amulets.spirit of oppression.h4d|None
layers.dialog.blacksmith.nature.h4d|None
layers.icons.artifacts.weapon.h4d|None
strings.text.h4d|None
table.artifacts.h4d|None
table.buildings.h4d|None
table.creature_abilities.h4d|None
table.creatures.h4d|None
table.interface.h4d|None
table.skills.h4d|None
table.spells.h4d|None
[End]"

What does the "|None" mean?

And does everything have to be in .h4d format to work?

How does the program know in which folder to find the files?

Thank you for your answers...
____________
CLICK on the image to discover H4 Greatest Mod!

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


Adventuring Hero
posted September 10, 2017 09:58 AM

1. You have to write the h4l file by hand. Or copy-paste it from other h4l files if that is possible.

2. I've never seen that None stuff in my version.

3. You don't have to use .h4d files only. The program can add (in theory) any file type into a h4r archive. You can add .obj, .txt and all the other heroes 4 file types as well.

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


Promising
Famous Hero
Modding the Unmoddable
posted September 10, 2017 10:48 PM

Thanks for the attempt to help...

Still:



http://postimg.org/gallery/2p7jpiu4m/03bc225c/

Even small files don't build, output is 1kb empty file -_-


____________
CLICK on the image to discover H4 Greatest Mod!

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


Adventuring Hero
posted September 11, 2017 12:15 AM

I'm using the version 0.96 without problem many years ago. You should try that too. In that case you don't need to worry about those |Nones in the h4l files. I think that causes your issue.

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


Supreme Hero
posted September 11, 2017 09:45 AM

1. Select files.
2. Extract selected files.

Now you have correctly equi.h4l
Easiest way.
See how it work. Must be number of packed layers etc.
h4d must be as I remember lay NOT h4d!
Extract all type of file to know how is at the end.
To pack push equi and thats all. MH4096 is fastest easiest to pack. AND DO IT PERFECTLY! NO CRASHES!

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


Promising
Famous Hero
Modding the Unmoddable
posted September 11, 2017 10:01 AM

"h4d must be as I remember lay NOT h4d!"

This is uncomprensible. Use H4d or not?
Try to use more google translator :V

The thing is not for equi. The thing is for my mod.

Adding every file to the list manually... no can do.

And still doesn't build anything.

Seems I am stuck with resedit for the rest of my days :/
____________
CLICK on the image to discover H4 Greatest Mod!

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


Supreme Hero
posted September 11, 2017 12:37 PM
Edited by Baronus at 12:39, 11 Sep 2017.

Baronus

File must have correctly  name for MH4096. Not df2 not h4d but lay if its layer.
Rename gjjff.h4d ->>>> gjjff.lay
Equi is a name MH4096 build txt file.
But why you dont extract something from h4r file? It build equi in your folder automaticaly? You dont need do it by hand.
Equi build you new file NAMED LIKE EQUI! BEWARE NOT TO DESTROY ORIGINAL FILE! RENAME EQUI!

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


Famous Hero
posted September 12, 2017 09:57 PM

NimoStar said:
Well, a H4L file is a list of files to add to your mod.

MH4 takes these files and compiles them into a H4R you can use in your data folder.

My question is, is there a way to automate the building of H4L files, or you are just forced to do it on notepad?

My mod has hundreds of files (like over 300), writing each individually in a list is a pain... and then it might not work because of an error.


Also I have this example for Equilibris:

"[H4R File List]
equi.h4r
11
adv_object.artifacts.amulets.spirit of oppression.h4d|None
layers.dialog.blacksmith.nature.h4d|None
layers.icons.artifacts.weapon.h4d|None
strings.text.h4d|None
table.artifacts.h4d|None
table.buildings.h4d|None
table.creature_abilities.h4d|None
table.creatures.h4d|None
table.interface.h4d|None
table.skills.h4d|None
table.spells.h4d|None
[End]"

What does the "|None" mean?

And does everything have to be in .h4d format to work?

How does the program know in which folder to find the files?

Thank you for your answers...


Darn it, I think I've lost my Mirror of Revenge amulet somewhere..  Although it would've been a good chance for me to get back at you for a recent post, I'll leave it be

I believe MH4 is what you're looking for, in regards of automating the building of the file. (for me it's been much easier to use, compared to ResEdit).
I've used this in my test research of adding new heroes. It compiled tables and layer files all by itself. I believe it can read/pack any format found within any h4r file - lay, txt, h4d, spr..
Just keep all the files you wish to pack in the same folder as the h4l file you'll be using to pack, and it should automatically pack them for you.
As for the process, Taro posted this useful video on CelestialHeavens How to pack using MH4

As Baronus said, just extract from any file from a h4r file and you got your 4hl file. Just rename it to nim_mod or whatever (it copies the name from the h4r files you extract from).
In my experience, it packs files just perfectly.
Hope it works for you.

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


Promising
Famous Hero
Modding the Unmoddable
posted September 13, 2017 02:43 AM
Edited by NimoStar at 02:46, 13 Sep 2017.

Take into account mirror of revenge is 50% or less effective

Except, I already did all that.

The "None" still appears in built files.

And built files are still 1kb and empty.

The thing SIMPLY DOES NOT WORK, even on simple tests.

And I can provide photo evidence...










See, only 1 kb empty file built, even with all stuff there.
Oh, and the program changes it to h4d itself...

I will keep trying but have little hope.
Also, resedit doesn't extract with same file extensions (doesn't use .lay for example), and h4resex doesm't use file extensions when extracting at all. MH4096 can't properly extract my mod due to it being compressed with RESEDIT.

____________
CLICK on the image to discover H4 Greatest Mod!

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


Supreme Hero
posted September 13, 2017 08:32 AM
Edited by Baronus at 09:01, 13 Sep 2017.

Baronus

You extract from your files? Extract from original. Resedit file is not a correctly h4r file. I told about. Noone means that theres no file. In folder you have txt but in build file its h4d. MH4096 cant find dont existing files.You must delete this | none and txt file must be txt non h4d. Correct this.

[H4R File List]
nimaltables.h4r
1
table.spells.txt
[End]

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


Adventuring Hero
posted September 13, 2017 12:23 PM
Edited by radmutant69 at 12:44, 13 Sep 2017.

This is my new_mod file what I just packed:



And it's the .h4l what I used to pack it:



Forget those Nones in the h4l and delete them all. There's no need to have a folder path in a h4r file to make it work.

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


Promising
Famous Hero
Modding the Unmoddable
posted September 13, 2017 01:25 PM

But in this case my work is not made any easier. I still have to create my mod list manually (change all extensions, add each name of the hundreds of archives by hand, since it can't recognize the already built mod or it's extensions)


____________
CLICK on the image to discover H4 Greatest Mod!

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


Supreme Hero
posted September 13, 2017 02:22 PM

Try H4ResExp. Or try to pack h4d not lay. Delete only none. Or use bat to rename or special program.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0978 seconds