Mephistopheles
28 Jul 2007, 16:09
Just a couple of posts quoted to store the knowledge:
So, here is how to run the editor:
1. Create a shortcut to KoH.exe
2. Open properties dialog for the shortcut (Alt+Enter)
3. In the edit line "Target" add after the location of the .exe file -debug
4. You should have at the end something like this in it:
"C:\Program Files\Black Sea Studios\Knights Of Honor\KoH.exe" -debug
5. Apply the change and double click the shortcut
6. While you are in title screen, do Shift+Left mouse button click on "Credits" button
7. You should be into the editor now :)
---
BUT, please have in mind that this tool was never ever meant to be shown so it is buggy (will crash sometimes) interface is ugly, the "internal" names of objects are pretty much weird, etc.
ALSO, to succesfuly modify Europe map is a hard and long task. You can not do it only from the editor. You also need to touch the text files, to be sure there are no land left outside realms, etc, etc. There are a lof of "hidden" functions of the editor accesible via strange hot keys which I will try to send you if I have some more free time some day.
BUT, once and IF you master this tool, you can completely change the game and even make "China map" :)
Yours,I tried working with the editor. But adding a realm to a world map inevitable crashes the application. Any pointers?
Especially, how do the kingdoms and realms work together? Or is that done in the object properties-screen?
I found that the a-key is propably used to demolish objects. At least that's what the animation indicates - I haven't successfully placed any object yet.
Placing a province crashes the application, saving the map (in order to modify it manually, or at least look at it) results in several "zero bytes requested"-messages which are propably caused by the incomplete map (kingdoms have no realms assigned, etc.).
[Edit]
This is getting fun... Learned how to place rivers using the F8 key I think. I just press them wildly until I am in river-edit-mode. But I still have to find out how to remove rivers... And the province problem isn't solved yet. Still some work ahead I guess.
Angryminermaybe this might helpful:
http://www.sysinternals.com/Utilities/Filemon.html
so you can see, which files are accessed by win32 processes.About saving:
I did produce a saved world map, though it's rather pointless (as it is empty, no provinces).
When I click "save" the game minimized, shows "Zero bytes requested" several times and is then back in a runnable-stage (yet still minimized). The saved map was placed in *koH-Folder*/maps
(Some strange things, I will investigate using filemon now.)
AngryminerSaving needs some help.
First: Be sure to extract most of your pak-files. The editor accesses some files that the game doesn't get from the pak-files. europe, defs, images, screens (both of them) are the ones I extracted right now. More will propably follow as I find them with FileMon (great tool!).
Second: To be able to save you need to manually create a folger in the KoH directory called "Knights of Honor\maps\Temps\Intended Mapname"
Notice how the folder is called maps, plural. This isn't the map folder.
If that directory exists you can save worldmaps and load them.
At least I'm not aware of anything different that is needed. I suggest everyone to use filemon.
AngryminerWe treated that [The message "FileOpen failed: map/textures.dt"] above. Copy a random *.bmp file from KoH to the map-directory and call it "textures.dt" - seems to work nicely.
About provinces: It looks like the editor can't create provinces. You have to create provinces yourself with notepad (copy them from the europe-map) and then place them in the editor. At least I think so, investigating...
[Edit] I'm stuck. Created a province in notepad. Upon placing a realm the editor accesses "C:", succedes and dies. I believe it is going to access C:/temp/castlepos.bmp to place the castle of the realm...
Strangely it doesn't do that anymore. Will have to check later.
AngryminerIts done and its work. You see a picture with my testmap inside from KOH. The original Program take my new maps. Thats great. Now i can begin to create new maps.:cheers:
The best is the program use snow maps in provinces with snow!
[climate]
Marakesh = desert
West Sahara = desert
East Sahara = desert
Tangiers = palms
Oran = desert
Al Djazair = desert
Tunisia = desert
Tripoli = desert
Cyrenaica = desert
Benghazi = snow
Al Alamein = desert
Alexandria = palms
Cairo = palms
Sinai = desert
Lebanon = palms
Antioch = palms
Cyprus = palms
Kilikia = palms
Rum = desert
Cappadocia = desert
Antalya = palms
Nicaea = snow
Anatolia = desert
Fez = palms
Granada = palms
Valencia = palms
Andalucia = palms
Tago = palms
Lisbon = palms
Sicily = palms
Appulia = palms
Hellas = palms
Crete = palms
Arkhangelsk = snow
Karelia = snow
Nyland = snow
Finland = snow
Norrland = snow
Gotland = snow
Trondelag = snow
Arabia = desert
Palestina = desert
Jordan = desert
Syria = desert
Kurdistan = desert
Bavaria = snow
Franconia = snow
Helvetia = snow
Frieseland = snow
Austria = snow
Flanders = snow
Brandenburg = snow
Tyrolia = snow
Salzburg = snow
Istria = snow
Thx Frujin for this Editor!!wow Laudan! looking great! =D
it'll be great to finally fight some good ol' snow battles (btw, is there snowy weather in it too? like in the grass areas it rains, but snow wasnt really used in the game much so i'm thinking no, but just want to make sure =) )I haven't seen in anomation for snow in all my modding-life, so no snow I guess.
About the editor: I'm making very slow progress on the world-map-editing.
I successfully modified the europe-map, but that isn't hard.
1. The "Edit Realms" feature is rather a kind of "brush" that is used to drag the boarders of realms around. The features of a realm are removed using the object details-dialogue.
2. Villages (zones) and pretty much all objects (even mountains!) are bound to the realm where you place them. That means they can not be placed outside of a realm.
3. The create realm-tool seems very strange. If I activate that tool, point the outlined realm somewhere and then press alt+e the game exports an unfinished map of realms with that outlined realm on it. It does so twice, once colored using the name realmexp.bmp and once in white with realmexpid.bmp.
If you save the map while outlining the shape (point, alt+e, F2) then he kingdomless realm is created. I can now place objects in this realm and modify it's shape using the edit realm tool. But the realm is not saved to realms.ini and I can't place a castle. I'll compare this to the europe map now.
Angryminer
--
News:
1. The realmsexpid.bmp file is a greyscale image. Realm 1 recieves white. the last realm recieved the darkest gray right before black. The sea is black. That way the game denotes the id of the realms.
2. castlepos.bmp is a bmp with black background and white dots for castle-positions. Don't know how these are added. Perhaps via ini-editing?
3. I need to figure out how to manually create a correct realm, place a castle and create a brand new kingdom including all necessary data (whatever that is...) Lot's of stuff to learn.
Angryminer
So, here is how to run the editor:
1. Create a shortcut to KoH.exe
2. Open properties dialog for the shortcut (Alt+Enter)
3. In the edit line "Target" add after the location of the .exe file -debug
4. You should have at the end something like this in it:
"C:\Program Files\Black Sea Studios\Knights Of Honor\KoH.exe" -debug
5. Apply the change and double click the shortcut
6. While you are in title screen, do Shift+Left mouse button click on "Credits" button
7. You should be into the editor now :)
---
BUT, please have in mind that this tool was never ever meant to be shown so it is buggy (will crash sometimes) interface is ugly, the "internal" names of objects are pretty much weird, etc.
ALSO, to succesfuly modify Europe map is a hard and long task. You can not do it only from the editor. You also need to touch the text files, to be sure there are no land left outside realms, etc, etc. There are a lof of "hidden" functions of the editor accesible via strange hot keys which I will try to send you if I have some more free time some day.
BUT, once and IF you master this tool, you can completely change the game and even make "China map" :)
Yours,I tried working with the editor. But adding a realm to a world map inevitable crashes the application. Any pointers?
Especially, how do the kingdoms and realms work together? Or is that done in the object properties-screen?
I found that the a-key is propably used to demolish objects. At least that's what the animation indicates - I haven't successfully placed any object yet.
Placing a province crashes the application, saving the map (in order to modify it manually, or at least look at it) results in several "zero bytes requested"-messages which are propably caused by the incomplete map (kingdoms have no realms assigned, etc.).
[Edit]
This is getting fun... Learned how to place rivers using the F8 key I think. I just press them wildly until I am in river-edit-mode. But I still have to find out how to remove rivers... And the province problem isn't solved yet. Still some work ahead I guess.
Angryminermaybe this might helpful:
http://www.sysinternals.com/Utilities/Filemon.html
so you can see, which files are accessed by win32 processes.About saving:
I did produce a saved world map, though it's rather pointless (as it is empty, no provinces).
When I click "save" the game minimized, shows "Zero bytes requested" several times and is then back in a runnable-stage (yet still minimized). The saved map was placed in *koH-Folder*/maps
(Some strange things, I will investigate using filemon now.)
AngryminerSaving needs some help.
First: Be sure to extract most of your pak-files. The editor accesses some files that the game doesn't get from the pak-files. europe, defs, images, screens (both of them) are the ones I extracted right now. More will propably follow as I find them with FileMon (great tool!).
Second: To be able to save you need to manually create a folger in the KoH directory called "Knights of Honor\maps\Temps\Intended Mapname"
Notice how the folder is called maps, plural. This isn't the map folder.
If that directory exists you can save worldmaps and load them.
At least I'm not aware of anything different that is needed. I suggest everyone to use filemon.
AngryminerWe treated that [The message "FileOpen failed: map/textures.dt"] above. Copy a random *.bmp file from KoH to the map-directory and call it "textures.dt" - seems to work nicely.
About provinces: It looks like the editor can't create provinces. You have to create provinces yourself with notepad (copy them from the europe-map) and then place them in the editor. At least I think so, investigating...
[Edit] I'm stuck. Created a province in notepad. Upon placing a realm the editor accesses "C:", succedes and dies. I believe it is going to access C:/temp/castlepos.bmp to place the castle of the realm...
Strangely it doesn't do that anymore. Will have to check later.
AngryminerIts done and its work. You see a picture with my testmap inside from KOH. The original Program take my new maps. Thats great. Now i can begin to create new maps.:cheers:
The best is the program use snow maps in provinces with snow!
[climate]
Marakesh = desert
West Sahara = desert
East Sahara = desert
Tangiers = palms
Oran = desert
Al Djazair = desert
Tunisia = desert
Tripoli = desert
Cyrenaica = desert
Benghazi = snow
Al Alamein = desert
Alexandria = palms
Cairo = palms
Sinai = desert
Lebanon = palms
Antioch = palms
Cyprus = palms
Kilikia = palms
Rum = desert
Cappadocia = desert
Antalya = palms
Nicaea = snow
Anatolia = desert
Fez = palms
Granada = palms
Valencia = palms
Andalucia = palms
Tago = palms
Lisbon = palms
Sicily = palms
Appulia = palms
Hellas = palms
Crete = palms
Arkhangelsk = snow
Karelia = snow
Nyland = snow
Finland = snow
Norrland = snow
Gotland = snow
Trondelag = snow
Arabia = desert
Palestina = desert
Jordan = desert
Syria = desert
Kurdistan = desert
Bavaria = snow
Franconia = snow
Helvetia = snow
Frieseland = snow
Austria = snow
Flanders = snow
Brandenburg = snow
Tyrolia = snow
Salzburg = snow
Istria = snow
Thx Frujin for this Editor!!wow Laudan! looking great! =D
it'll be great to finally fight some good ol' snow battles (btw, is there snowy weather in it too? like in the grass areas it rains, but snow wasnt really used in the game much so i'm thinking no, but just want to make sure =) )I haven't seen in anomation for snow in all my modding-life, so no snow I guess.
About the editor: I'm making very slow progress on the world-map-editing.
I successfully modified the europe-map, but that isn't hard.
1. The "Edit Realms" feature is rather a kind of "brush" that is used to drag the boarders of realms around. The features of a realm are removed using the object details-dialogue.
2. Villages (zones) and pretty much all objects (even mountains!) are bound to the realm where you place them. That means they can not be placed outside of a realm.
3. The create realm-tool seems very strange. If I activate that tool, point the outlined realm somewhere and then press alt+e the game exports an unfinished map of realms with that outlined realm on it. It does so twice, once colored using the name realmexp.bmp and once in white with realmexpid.bmp.
If you save the map while outlining the shape (point, alt+e, F2) then he kingdomless realm is created. I can now place objects in this realm and modify it's shape using the edit realm tool. But the realm is not saved to realms.ini and I can't place a castle. I'll compare this to the europe map now.
Angryminer
--
News:
1. The realmsexpid.bmp file is a greyscale image. Realm 1 recieves white. the last realm recieved the darkest gray right before black. The sea is black. That way the game denotes the id of the realms.
2. castlepos.bmp is a bmp with black background and white dots for castle-positions. Don't know how these are added. Perhaps via ini-editing?
3. I need to figure out how to manually create a correct realm, place a castle and create a brand new kingdom including all necessary data (whatever that is...) Lot's of stuff to learn.
Angryminer