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 3.5 - WoG and Beyond > Thread: Map editor patch
Thread: Map editor patch This thread is 2 pages long: 1 2 · NEXT»
Yogdush
Yogdush

Tavern Dweller
posted August 17, 2012 12:51 PM

Map editor patch

Hey guys.

How to patch the map editor? What encoding is the program encrypted in? I need to know so I can make a patch of my own! I have some genuinely good ideas.

Grayface and others have patched the editor before so it can't be impossible.

Is the coding encrypted? Help me out guys

// Yogdush

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


Famous Hero
posted August 17, 2012 06:25 PM

I've always wondered this aswell but I guess it's only for hardcore modders to figure out.

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

Tavern Dweller
posted August 17, 2012 06:29 PM

The dll file is not encrypted according to ultraedit hex. But what encoding is this? How can I edit it?

Sorry for noob questions.

// Yogdush

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


Promising
Famous Hero
feanor on DF2.ru
posted August 17, 2012 06:57 PM

Oh, yet another useless young noob >_<

Quote:
But what encoding is this?

Machine code

Quote:
How can I edit it?

Hex-editor or disassembler.

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


Promising
Legendary Hero
fallen artist
posted August 17, 2012 07:07 PM

The answer looks more noobish than question, rofl

I found out that Windows (and thus all Homm) encoding is little-endian, if it means anything. Probably not.
The best way to figure out what all this code actually means is to ask someone who successfuly edited it.

No need to do the same work again and no need to troll new users.
____________
The future of Heroes 3 is here!

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


Admirable
Omnipresent Hero
Wog refugee
posted August 17, 2012 07:09 PM

Except that Yogdush affirmed in previous posts he works with HoTA team and that he already patched the editor by himself, because "they are slow".
____________
All my Era II mods

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


Promising
Famous Hero
feanor on DF2.ru
posted August 17, 2012 08:26 PM

Quote:
The answer looks more noobish than question, rofl

Person that asks about "encoding of exe/dll/elf/so" doesn't need to know about big- or little- endian, length of opcodes, assembler etc etc. Most times they are doesn't know about Wikipedia or Google - so what I can tell them about?

I saw one or two exceptions, but it was a true miracle.

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

Tavern Dweller
posted August 17, 2012 08:28 PM

Quote:
Quote:
The answer looks more noobish than question, rofl

Person that asks about "encoding of exe/dll/elf/so" doesn't need to know about big- or little- endian, length of opcodes, assembler etc etc. Most times they are doesn't know about Wikipedia or Google - so what I can tell them about?

I saw one or two exceptions, but it was a true miracle.


I know what big and little endian is. So thank you warmonger for your answer.

Salamandre you should remember that I was joking about that part.

Thanks for your answers, I will give it some more tries.

/// Yogdush

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


Promising
Famous Hero
posted August 19, 2012 07:11 PM

To me you look funny. You come here, claiming that you have already "made big progress" in fixing map editor to fully work with HotA features (it took me about 10 minutes to figure out what files needed to be modified to have almost everything except map heroes working properly, and I guess your progress ended somewhere at this point). Then about a week later I see you asking "how is the executable encoded". Not the best way to receive helpful answers or support.

Could you at least share you "genuinely good ideas" with the community?
____________

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


Famous Hero
posted August 19, 2012 10:01 PM

Why is it that the heroes aren't working properly? I have tried setting the number of hero classes to 21 and adding hero traits, biographies and such but I still haven't made it work. I guess noone has. It must be hardcoded deeply in a .dll file or something.

Neither does the Cove town show up properly. Solitaire, I am using the same configurations for the editor as you explained to me. Do you know why this doesn't work? I understand you don't know how to make it work, but any ideas anyway?

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


Promising
Famous Hero
posted August 20, 2012 08:29 AM

There are hardcoded amounts of lines to read for every text table and the editor just does what it is supposed to. Also for heroes there is hardcoded table of portraits/genders, which has to be extended.

As for cove town itself, I guess it works just because it uses the same area in tables as the random town does.

It is probably possible to make some more of it to work and I have slight idea how to do it, but currently no time to test it, because tomorrow I am leaving for a week and there are still some other business that need to be done.
____________

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

Tavern Dweller
posted August 20, 2012 01:06 PM

Seems that Yogdush got himself a bunch of haters! Thanks for your " help "...


// Yogdush

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


Promising
Known Hero
posted August 20, 2012 04:39 PM

IDA is the tool that lets you dig into executables, but first you'll have to learn a bit of assembler, pointer arithmetic etc...

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


Promising
Famous Hero
posted August 20, 2012 04:49 PM
Edited by solitaire345 at 16:52, 20 Aug 2012.

You should first show that you can do something and then ask for help to improve your work further, instead of saying that you have some miraculous idea (without telling what exactly you want to do) and request everybody to explain you something that nobody (except for few people who almost never visit this forum) knows. Use disassembler/decompiler and figure the editor yourself. That's the only possible suggestion for you.
____________

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


Promising
Legendary Hero
fallen artist
posted August 20, 2012 07:23 PM
Edited by Warmonger at 19:25, 20 Aug 2012.

Quote:
and request everybody to explain

He didn't request "everybody", just asked a question on public forum. If you don't know the answer, stay silent of guide him to someone who knows.
Quote:
Use disassembler/decompiler and figure the editor yourself

What is the use of this tip? You ask a random visitor to reinvent the wheel just because it's hard? We won't get anytwhere if everyone has to do same task again and again. Also, hex-editing is the hardest and least useful activity possible, what kind of advice is that?
____________
The future of Heroes 3 is here!

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


Legendary Hero
walking to the library
posted August 20, 2012 07:45 PM

Quote:
If you don't know the answer, stay silent of guide him to someone who knows.


I think solitaire345 felt offended by something.
____________
"I heard the latest HD version disables playing Heroes. Please reconsider."-Salamandre

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


Promising
Famous Hero
posted August 20, 2012 08:42 PM
Edited by solitaire345 at 20:43, 20 Aug 2012.

Quote:
I think solitaire345 felt offended by something.


Well, kind of. Knowing that about a week ago he claimed that he is fixing the editor to work with HotA stuff and made much progress and now he asks how to edit executable file it's a little hard for me to answer politely. Also I was in a hurry while writing that post so I did not re-read what I wrote, so sorry if someone felt offended.

Quote:
What is the use of this tip? You ask a random visitor to reinvent the wheel just because it's hard?


Uh.. To me it seems more like inventing it, because we don't have one yet. Slava hex-edited the editor, but I don't remember that he published anything related to internals and I guess he did not examine much of the file at all, because IIRC there were only some constants changed. Grayface wrote DLL plugin to patch code and he probably has much more detailed disassembly, but his answer was basically polite "go figure yourself". HotA team made their own editor (or they heavily patched original one), but most of them don't speak english and they rarely visit this forum.

Quote:
Also, hex-editing is the hardest and least useful activity possible, what kind of advice is that?


No need to hex-edit everything. Just add code to load your DLL and write your hooks/code patches/new functions/whatever in any language you desire. Or do you mean that it's no use in doing this at all?
____________

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


Promising
Famous Hero
feanor on DF2.ru
posted August 20, 2012 09:57 PM

Quote:
or they heavily patched original one

No, they use common wogeditor with hota objects and creatures.
Coves, extra heroes, campaign conditions and other specific elements are inserted into maps with binary editing.

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


Promising
Famous Hero
posted August 20, 2012 10:05 PM

Oh. My bad then. But what's the editor in this screen then?
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted August 20, 2012 10:08 PM

I think Yogdush gets what he asked for, when he lied about his progress. Would have been much more simple to ask questions before claiming he did serious work. It remembers me an epic video of a polish modder who claimed he made the 10th town. In 10 minutes they saw it was a vulgar fake, hero luck bar changed before entering the 10th town.

To sum, be honest if need help.
____________
All my Era II mods

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