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: I GOT IT! Actually using Namerutan's tool fix
Thread: I GOT IT! Actually using Namerutan's tool fix This thread is 2 pages long: 1 2 · NEXT»
NimoStar
NimoStar


Responsible
Legendary Hero
Modding the Unmoddable
posted September 14, 2017 10:51 AM
Edited by NimoStar at 11:13, 14 Sep 2017.

I GOT IT! Actually using Namerutan's tool fix

1. Open extracted H4 image/layer/object file with namerutan's tool
- See and record names of layers
2. Export as .ora
3. Open and edit .ORA with GIMP, save as-is
(here you can change whatever you like about the image or replace it completely)
4. Import with namerutan's and save as .h4d
- Layer's name will be wrong. This is namerutn's error.
5. Hex edit layer names and lenght number byte to correct (recorded) values.

6- YOU HAVE THE CHANGES DONE!
Put in Heroes data folder or in .h4r and enjoy your changes.

Grass life background changed to volcanic death background







https://s26.postimg.org/8772wpu6x/2017-09-14_05_47_29-_O_Proxy_Negro1_heroes_iv_her.png





(A simple switch of file name would have sufficed , but this is simply a test of the method. AND IT WORKED! Meaning arbitrary images can be imported this way without hex editing of such images. Only layer names.)
____________
Never changing = never improving

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


Responsible
Legendary Hero
Modding the Unmoddable
posted September 14, 2017 11:03 AM
Edited by NimoStar at 11:38, 14 Sep 2017.

Oh, and I asked namerutan to include the ability to rename and keep names layers in the program many times, which actually was very easy and could have saved us all this trouble... and months... but he never did it... seemingly he didn't think it was all that important even while I cautioned him that it actually was...


Anyways, rants off, now we can actually use his program to make anything we want! In theory. Well, at least it works with Layer files such as town screens and without resaving in gimp in the middle, it is to be seen if this is always the case. But if it is, we can easily make hundreds of new object looks, even eventually spell and creatures/heroes anims.

PS: Now that I think about it this probably woudn't work so straghtforward for non-layer files since they contain more data than just images... but well...

Something is something I guess. I just gotoverexcited because it never had worked for me :V
Still, it's an easier way to edit layer files, and still useful with other objects. Just that in non-layer objects it will probably still involve hex manipulation of images.
____________
Never changing = never improving

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


Promising
Known Hero
posted September 14, 2017 12:42 PM

Well this way actually works with objects too! Thanks to you there is no more suffering with the f****n image sizes. You just solved it!


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


Legendary Hero
posted September 14, 2017 01:51 PM
Edited by Baronus at 13:57, 14 Sep 2017.

Baronus

It needs only to delete 04? :-):-):-) Very malicious imp!
Great! So now we waiting for repair Namerutan tool and oficial edition!

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


Promising
Known Hero
posted September 14, 2017 02:18 PM
Edited by radmutant69 at 14:30, 14 Sep 2017.

I think we don't have to wait anymore.

Absolutely working and animated column (I think it still has some transparent pixels but I don't care now. I'm happy .):

http://www.filedropper.com/advobjectcolumnsanimated

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


Responsible
Legendary Hero
Modding the Unmoddable
posted September 14, 2017 02:37 PM

It would be nice to have a fixed official version but given Namerutan hasnt been seen for like a year, and AFAIK he didn't release his source code, that may not be happening any time soon. Or ever, if we are pessimistic (we may try still to contact his email, though)

But yes, as of using, we can start right now. It still has some extra effort compared to a fully streamlined process, but nothing compared to what was before.

And it only took like 16 years from the game's release
____________
Never changing = never improving

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


Legendary Hero
posted September 14, 2017 04:21 PM
Edited by Baronus at 16:24, 14 Sep 2017.

Baronus

Ok we can imagine that Namerutan has nothing contra to free distribute it. This stupid mistake must be easy to repair. Yes 16 years after game realase we have def tool UNOFICCIAL! Its horrible. Contact him to repair this small thing and give it oficcial to use! Works only modern systems. Maybe another programmer can development it? Mine win32xp not ((( If someone knows how easy to prepare tell me. If not dont think about. Its great thing! Past 16 years FIRST DEFTOOL!!! But wait a minute... Iliveinabox is programmer and like HIV? Maybe he can repair it? Its only tool!

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


Honorable
Famous Hero
posted September 14, 2017 11:14 PM

I did try to contact Namerutan a little while after he disappeared for the second time. First time it was because his computer died. Not sure what happened this time. I'll send him another email.

As far as his code base for his tool, I'll have to check, but I'm pretty sure I should have access to it through gitlab. I think it was written in C#, but I'm not sure.

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


Responsible
Supreme Hero
posted September 15, 2017 12:03 AM
Edited by Karmakeld at 08:25, 15 Sep 2017.

Wow, this is a great breakthrough
Glad you finally got it working and realized it potential.

Radmutant, I haven't yet looked at your animated column, just super excited, so did you just save it as layer file (frame by frame) and the rest is automatic?
EDIT: I mean did you insert header, footprint etc. or copy paste all the image parts as in prev. method.

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


Honorable
Famous Hero
posted September 15, 2017 12:08 AM

Checked gitlab and I do have access to Namerutan's code. I can't promise I'll have much time to learn and work on it, but I'll at least look at cloning the repository on my laptop and checking for tools to edit / build the code.

Netbeans probably has support for C# (and I already use that) so might not be too bad.

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


Legendary Hero
posted September 15, 2017 08:34 AM

Great. We must contact with Namerutan to permission for free distributing it. Now we dont have official any tool. Only to own private look via email. So in this situation we cant tell thats breaktrough. Only if all modders can use it. Its hard situation to discuss about tool if people cant use it. In fact on present day we have still nothing.

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


Responsible
Legendary Hero
Modding the Unmoddable
posted September 15, 2017 09:22 AM

Actually if the Github code has a open source policy, we can just re-compile it and distrbute it already - that's a given if the license is GNU or CC (Creative Commons)

https://en.wikipedia.org/wiki/GNU_General_Public_License

Quote:
The GNU General Public License (GNU GPL or GPL) is a widely used free software license, which guarantees end users the freedom to run, study, share and modify the software.


***


To fix the error I would look in the code for "frame 001" since the program always seems to rename the first frame to that, breaking thus the game functionality.
Replacing that for preserving name should be enough to fix it in principle. Then we must add in-program layer renaming abilities (for things like object buy dialogs).
____________
Never changing = never improving

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


Legendary Hero
posted September 15, 2017 10:41 AM

Namerutan must give it no we. He give in only some poeply by email. Its not public realase.

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


Honorable
Legendary Hero
We don't need another 'eroes
posted September 15, 2017 10:59 AM

wow congratulations on this Big Breakthrough mate, does this mean any image can be added or replaced (including those ugly ass town screens, sorry I love H4 but not all of the art is up to it) lol

hey baronus don't get it twisted about the licenses with an own version of reality mate, nobody cares how public it is as long as the license is open source, see about that before blowing a red-faced policeman's whistle so to speak cheers lol
____________

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


Legendary Hero
posted September 15, 2017 11:56 AM

Its not a open source. OFFICIALY ITS NOT EXISTING! I dont want distribute something non mine, what I have only via email to look. Author tell nothing about it.

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


Responsible
Legendary Hero
Modding the Unmoddable
posted September 15, 2017 12:48 PM
Edited by NimoStar at 13:51, 15 Sep 2017.

Yes verriker, the townscreens are the things I just tried. And they are completely replaceable (Both backgrounds and animations, though animation replace I have not yet tested, seemingly it will work)


:::::::::::::
If it is published on github as iliveinabox05 said, it is public. It is a repository for open-source code. Doesn't matter if "official release".

Also Namerutan posted links to the Google Docs to download in the Equilibris forums...

Anyways, I will try to contact either way. You do the same since my internet is not good and I use like 2006 version of outlook...

His e-mail is namerutan@hotmail.com

It is public on his profile.

Possibly with the google docs link you can also get his gmail?


____________
Never changing = never improving

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


Legendary Hero
posted September 15, 2017 02:25 PM
Edited by Baronus at 14:31, 15 Sep 2017.

Baronus

Ok. So give these link here to download! For all!
Iliveinabox told GIT LAB not github. Its program to file decompilation as I think...

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


Promising
Known Hero
posted September 15, 2017 03:01 PM
Edited by radmutant69 at 15:55, 15 Sep 2017.

Karmakeld said:
Wow, this is a great breakthrough
Glad you finally got it working and realized it potential.

Radmutant, I haven't yet looked at your animated column, just super excited, so did you just save it as layer file (frame by frame) and the rest is automatic?
EDIT: I mean did you insert header, footprint etc. or copy paste all the image parts as in prev. method.


Well it still works similar to the previous methods (in case of objects at least.) I made it frame by frame and copypaste the frames into the original column object. I think it should working also by replacing frames in an animated object or creating more frames in a static one and copy those frames all-in-one but I haven't tried it yet. I just didn't want to make it too difficult for myself.

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


Responsible
Legendary Hero
Modding the Unmoddable
posted September 15, 2017 04:20 PM

So, here are the files Namerutan posted...

I don't know if the latest version is actually here. He continued working on it some days, but not released it. Other people may have a newer version.

Namerutan's H4 graphics edit tool, 0.95:
https://drive.google.com/open?id=0B9qanHBVny4_eTBqTXo1Mi1kd1U

Changelog:
- Added preview for Font resources.
- Enabled Export for all included resource types. Import needs to add a new panel for each resource type, so it will be added later.
- Created a new BackgroundWorker to speed-up things where possible. By now it is in use just when exporting Fonts (shortened from 5 seconds to a few milliseconds). I'll try to use it for any other time-consuming task.

0.96 with notes:
https://drive.google.com/file/d/0B9qanHBVny4_UkhQQnVnWV9aeUk/view?usp=drive_web

Quote:
The game could not recognize the new file if you changed the filename (case sensitive) or the name of each inner layer (frame 001, shadow 001... etc).

A known problem when importing layers is that some of the software that works with open raster save layers renaming it to 001.png, 002.png, ...so I will try to implement autorenaming, and maybe manual renaming after import.



Language variations:
English
Spanish
Russian (incomplete)

In new unreleased versions, you can open adventure objects apparently, also multi-import and multi-export:


If we could get them or compile the updated source code, more work will be saved and more automation available...
____________
Never changing = never improving

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


Legendary Hero
posted September 15, 2017 06:27 PM

GREAT!!! ITS OFFICIAL NAMERUTAN PUBLICATION!

SO WE CAN ANNOUNCE WE HAVE HIV DEFMAKER!
BREAKTROUGH! IN HIV PAST 16 YEARS!
...
Now you can use it! :-) Beauty day!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 2 pages long: 1 2 · NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0551 seconds