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: [Research/Tutorial] Switching Adventure Object images
Thread: [Research/Tutorial] Switching Adventure Object images This thread is 2 pages long: 1 2 · «PREV
NimoStar
NimoStar


Promising
Known Hero
Modding the Unmoddable
posted January 03, 2017 12:16 AM

Quote:
I tried to do this too but it seems I made something wrong. I don't know what so I just would like to see your finished work in hex to compare with my bad files.


Your intent is noble. Did you remember to change the name to the artifact you want to use? Did you use an object of the same type as header? I needed to use a treasure (crypt) to change the passability.




This is in fact the only changed part, the selected one (changed from original "altar of wishes") with Magic Lamp data (and then Crypt passability data... these are the first 8 bytes or so, if I correclty remember; but you can check yourself with those three files).

Quote:
I just found out, that Boots of Levitation, actually has an image stored in the h4r files. I found it in equi.h4r -> icons -> artifacts -> armor -> boots of levitation. Maybe you could make an attempt at adding it to the unusable artifact, like you did with the Magic Lamp??


It's added, but there's no code for it. You can actually see it in my map called "All Equiobjects". If you pick up and try to use these boots, the game will crash.
3.55 can use the boots, but I have foregone the use of their .exe because it's incompatible with online multiplayer.
____________
CLICK on the image to discover H4 Greatest Mod!

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


Known Hero
posted January 04, 2017 10:05 PM
Edited by Karmakeld at 02:34, 12 Feb 2017.

Thanks. I might have to re-install 3.55 then.

It would be really great if you or Namerutan could post a tutorial on how to change object types by hex editing a map file. You mentioned this a while ago. Eg. a guide on how to change an interactive object into a decorative one.

The same goes for switching images, like mentioned in this tread. Say I wanted to change a Magic Well (image) into a quest hut (object). Obviously the entrance can't be used from another quest hut, as the Magic Well only takes up a single tile. Can it be done and how?

I'm also curious about some of the objects used in Equi 3.55, like some of the combat objects - eg. dead creatures - that was extracted and used as objects. Would the procedure be to extract the file(s), open them in a map and then hex edit them in the map editor, naming their type to decorative?

If either of you could post some guides, it would give the newcomers something to look at and compare with, when trying to make our own moddings.

UPDATE on feb. 11.
Thank to you NimoStar, I managed to change the looks of the Tome of Death to look like the Tome of Chaos. It will still look like the Tome of Death when you pick it up and view it in your inventory, but this is my first success at modding. Btw. I also figured out how to mod the text files, meaning I got the creature heroes working. Now I guess it's on to doing some attempts of my own..

Well I tried to change the flame of chaos into a decorative object, but with no luck.
Then I tried changing the Magic Well into a quest hut.
Namerutan succesfully changed the Tree of Knowledge into a questhut, so I decided to compared the hex code of the normal Tree of Knowledge, with the Quest hut Tree of Knowledge, and other quest huts.




The Tree of Knowledge contains the same hex code from 74 72 and on. Only the 'Seers_hut' 73 65.. appears before. This code matches all of the quest huts I looked at. So I changed the 'mana_recharger' code from the Mana Well to 'seers_hut'.

.

As it still had the 'arger' in it, I deleted those 5 digits, to match it with the other seers huts.
.

But the game crashes if I try to drag the object onto the objects palette. So can anyone tell me, where I go wrong?

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


Promising
Known Hero
Modding the Unmoddable
posted February 12, 2017 08:32 PM

I congratulate you on the first sucesses.

As for the tree, I can't help much with your last code, because it's not my method.

I can however point out one thing: All seers hut have "seers hut" as part of the filename (including the modified tree of knowledge). It is very much possible this is absolutely necessary.

In other words, you are replacing the magic well (which already is coded) with a seers hut; what you need to do is *copy* the magic well image, and make a *new* seers hut with it (with a "seer's hut.name" standarized format)...

Quote:

I'm also curious about some of the objects used in Equi 3.55, like some of the combat objects - eg. dead creatures - that was extracted and used as objects.


Actual dead creatures have much larger sprites. They extracted the dead creatures, miniaturized them, then added them back as decorative objects (much as the creature quests). Equilibris had a way of importing images yet unknown.

It could be made if Namerutan makes his tool functional, but that hasn't happened :v
____________
CLICK on the image to discover H4 Greatest Mod!

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


Known Hero
posted February 12, 2017 10:31 PM
Edited by Karmakeld at 22:31, 12 Feb 2017.

Perhaps you could share your method? I know you managed to make the Ring of Health a misc artifact.
I appreciate the lead on the magic well. I just looked at Namerutan's Tree of Knowledge quest hut as posted, but if I'm replacing the wrong part.. I'll try your suggestion of copying it instead and will post how it goes. Thank you so far.

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


Promising
Known Hero
Modding the Unmoddable
posted February 13, 2017 02:36 AM

Ring of health as misc artifact is simple table manipulation. Artifact slots are on the artifact table.

Try what I told you, duplicate and change name, then if not, try my method.

Remember that names may have one or two bytes before which have the number of bytes in that string.
That is, do not simply copy "tree of knowledge" in the hexes, also copy one or two previous bytes...

I hope what I am saying is clear enough :v
____________
CLICK on the image to discover H4 Greatest Mod!

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


Promising
Known Hero
Modding the Unmoddable
posted February 14, 2017 03:28 AM

Here, this should be much clearer:_


http://s12.postimg.org/mo2qadur1/explain_Untitled.png

The game is expecting a 14 character string, and you are only giving it 9 (because youy removed the extra characters). Thus your crash. (although you may have additional mistakes too)

Change the 0e for 09. What I meant is every time one does changes like this, you have to use the original "signature" (thus, copy the two previous bytes to the name, not the name only.)


____________
CLICK on the image to discover H4 Greatest Mod!

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


Known Hero
posted February 15, 2017 11:39 PM
Edited by Karmakeld at 00:17, 16 Feb 2017.

thank you so much, NimoStar
Changing the number from 0e to 09 did the trick. I now have a Quest hut with the look of a Magic Well working in my editor. And most importantly, I think I understand the reason of why 03 had to be changed to 09. I actually went back to the modding tread and looked at your post about hex code indicating number of letters in the description, but didn't bother to dig deeper myself at that point. Hopefully this means I'll be able to mod more objects on my own.

I do however have an additional question. How come 'tree_of_knowledge' have '11' as it's character string, when it contains 17 letters and not just 11? Is 11 = 17 in hex code or..?

Oh and one more question NimoStar. Do you know if it's possible to reverse the direction of an object by hex editing it? E.g. the red portal always face left, but what if I want it to face right? Dalai once stated it should be fairly easy to do so, but would you know how to?

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


Famous Hero
posted February 16, 2017 09:23 AM

Nimo tell me name red font you have used in picture. Look good.

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


Promising
Known Hero
Modding the Unmoddable
posted February 16, 2017 09:05 PM

Karmakeld:

Yes, 11(hex) is 17(decimal), because hex uses 0a=10, 0b=11, etc.

You can change Hex Editor Neo to display hexes in decimal, if this is hard to remember.

Also you can fgind base converters both in the program and online.

As for changhing direction, I have no idea how to do that with the code. It is "easy" editing images, but we can't edit images yet.

Baronus, that font is Algerian, it comes with MS default fonts for windows (or it did)... It is fairly overused
____________
CLICK on the image to discover H4 Greatest Mod!

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


Famous Hero
posted February 16, 2017 11:32 PM

Very nice thanks.

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


Known Hero
posted February 19, 2017 05:14 PM
Edited by Karmakeld at 22:53, 19 Feb 2017.

NimoStar, let's says I want to enlarge the image file, not just the passibility grid of fx. Tree of Knowledge to take up 2x2 tiles instead of just 1x1. Could that be done by hex editing? If so, where do I find the proper info and how do I read them? Thanks in advance.

Another question. I've managed to switch images between the Sword of Swiftness and Frost Hammer, but like your example with the two Tomes, they keep their original name and when you pick them up, the original picture is displayed and it changes back to original in the inventory. Is there any way make sure the changed image, remains changed even when picked up as well as in the inventory?
Say someone wanted to create the illusion of having a Sword of Frost, using the Sword of Swiftness image, but with the properties of the Frost Hammer. I know how to change the name of the artifact in the artifact table, but do you know how one could add it as an extra line in the table, so it would appear as a 'new' artifact instead of just replacing one of the others?

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


Promising
Known Hero
Modding the Unmoddable
posted February 19, 2017 11:57 PM

So, you want the Tree of Knowledge picture to actually look larger?
That's not possible via Hex Editing here to the best of my knowledge; you need to actually change the image with image editing and then re-import it (maybe with Baronus method)

Artifact name:
- Is in artifact table, you need to change it from there. Seach for the keyword "frost hammer" and change the "Name" value, same with the sword.

Artifact inventory picture:
- Is not in the same file. You need to look for the file with the inventory pictures and replace it there. I have not done it.
____________
CLICK on the image to discover H4 Greatest Mod!

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


Known Hero
posted February 20, 2017 05:50 PM
Edited by Karmakeld at 23:38, 21 Feb 2017.

It was just an idea, recalling a discussion you had with Nostradamus about changing the height and width of the Titan. But it makes sense the image file needs to be changed.

As posted, I already know how to change the name, but thanks anyway

Okay. I'll have to look through the different resource files and see if I can find second artifact files. At the moment it seems looks a bit odd it changes back.

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


Promising
Known Hero
Modding the Unmoddable
posted February 21, 2017 06:39 AM

No, it's not odd... because if you notice, the inventory images of artifacts are not the same as their map images (see "Barbarian throwing club" in and out for example)

THis happens with every artifact.

As for where are artifact inventory images stored, I don't know. But it would be logical to be a single file with many "frames" (like spells and portraits).
____________
CLICK on the image to discover H4 Greatest Mod!

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


Known Hero
posted February 22, 2017 01:20 AM
Edited by Karmakeld at 00:18, 23 Feb 2017.

okay I can successfully change dwellings and other adventure objects, which has a description, such a 'dwelling', 'mana recharger', or 'movement modifier' into 'Seer's (Quest) Huts'. But some objects like Prison and Windmill, don't have these object description, and for some reason they don't work when I attempt to change them into quest huts. I believe the reason is 'coz they are missing 2(?) digits between 74 (t) and 08 (w). All the functional quest huts, have 4 digits between 74 (t) and the objects title.
In the original Windmill there are only 3 digits between 64 (d) and 8 which is the length of Windmill. Adding the extra 00 didn't work either. So how can I tell/guess which digit is missing?


I also managed to change the Elemental Dwellings, Altar of Earth into a one way portal entrance. But despite using the hex code of 4 different exit portals, they all lead to the same one, which seems to be the first (green).


I've marked the differences and similarities between the entrance and exit. I've tried the extra 5 digits up to 34 (4) as well as the 4 digits after 34, but those fail to work.
So any idea how I can make them use the different portal entrances/exits?

edit:
NimoStar said:

As for where are artifact inventory images stored, I don't know. But it would be logical to be a single file with many "frames" (like spells and portraits). - Is not in the same file. You need to look for the file with the inventory pictures and replace it there. I have not done it.



I managed to locate the Artifact inventory pictures (Barbarian Throwing Club in this case):
they're located in the heroes.h4r file -> layers -> icons -> artifacts -> weapon.
If you use H4unpacker, they're at location 58,919,269.

Now next question is, what part of the hex code needs to be replaced?

I also noticed there are 4 unused 'special artifacts' images. The 4 pieces of the unused 'Legion' artifacts. They look similar to H3 versions - Legs of Legion etc.

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

Page compiled in 0.0585 seconds