|
Thread: Map editor patch | This thread is pages long: 1 2 · NEXT» |
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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!
|
|
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".
____________
Era II mods and utilities
|
|
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.
|
|
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
|
|
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?
____________
|
|
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?
|
|
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.
____________
|
|
Yogdush
Tavern Dweller
|
posted August 20, 2012 01:06 PM |
|
|
Seems that Yogdush got himself a bunch of haters! Thanks for your " help "...
// Yogdush
|
|
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...
|
|
solitaire345
Promising
Famous Hero
|
posted August 20, 2012 04:49 PM |
|
|
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.
____________
|
|
Warmonger
Promising
Legendary Hero
fallen artist
|
posted August 20, 2012 07:23 PM |
|
|
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!
|
|
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
|
|
solitaire345
Promising
Famous Hero
|
posted August 20, 2012 08:42 PM |
|
|
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?
____________
|
|
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.
|
|
solitaire345
Promising
Famous Hero
|
posted August 20, 2012 10:05 PM |
|
|
Oh. My bad then. But what's the editor in this screen then?
____________
|
|
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.
____________
Era II mods and utilities
|
|
|