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: Researching how to add new objects
Thread: Researching how to add new objects This thread is 7 pages long: 1 2 3 4 5 6 7 · «PREV
Karmakeld
Karmakeld


Famous Hero
posted October 15, 2017 11:02 AM

I'm getting the sense of 04 being followed by 4 bytes of data (only if you look at my screenshot, it's 04 followed by only 3 times 00)..?
But the 10=16. 20=256 is just greek to me. Will these show if viewed as decimal? Anyway, I admit I simply lack understanding of how to read (the importance of) these last numbers. What I can do, is look into more objects and share patterns, but I doubt I will have much clue as to how they are determined.
The above method worked with several objects, but not with all, but I don't know it has to do with image size, colors or whatever.

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


Adventuring Hero
posted October 17, 2017 12:07 AM

Karmakeld said:
I'm getting the sense of 04 being followed by 4 bytes of data (only if you look at my screenshot, it's 04 followed by only 3 times 00)..?
But the 10=16. 20=256 is just greek to me. Will these show if viewed as decimal? Anyway, I admit I simply lack understanding of how to read (the importance of) these last numbers. What I can do, is look into more objects and share patterns, but I doubt I will have much clue as to how they are determined.
The above method worked with several objects, but not with all, but I don't know it has to do with image size, colors or whatever.


As far as base 16 numbers go, all that means is you take the number, place by place (from right to left), and multiply it by the corresponding power of 16, and add them all up.

For example, take the hex number, 1a

First start with a. In base 10 decimal, a is 10. It's in the first place (so power of 0). Then, 10 * 16^0 = 10

Now the 1 in the second place. 1 is just 1, but it's in the second place, so its value is 1 * 16^1 = 16

So, the full number is 16 + 10 = 26

There are probably some better tutorials / explanations of this you can find on google, but that's pretty much how you do it.

As far as the actual code you're looking for patterns in, you grab only the end part - which seems to be the shadow correct? - for several objects and send them my way and I can do a little analyzing and see what I can come up with.

Just the byte code like you have it in the hex editor. If I can't figure it out from that, I'll ask you to just send me the byte code for the whole objects Pretty much what I had to do when I was reverse engineering the map files, but I won't have any easy way to verify my findings.

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


Famous Hero
posted October 18, 2017 07:57 PM

Give me a few days, and I'll gather up a bunch of object codes for you.
____________

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

Page compiled in 0.0301 seconds