View Full Version : ImgView tool
Hey Guys,
Here is a small (and buggy!) tool for you. Please have in mind it was never meant to be given outside of BSS, so it is not very polished, etc. :)
HOW TO USE:
1. Unzip and place into KoH/Data/ folder
2. Drag any *.img, *.rle file on top of it.
3. You can resize the window if you want ..
4. Press "Space" key in order to start / stop animation playback (if there is any)
5. Use left and right arrows to choose "animation column" (point of view). Works only if there are columns actually.
6. Use up and down arrows to manually select next/ previous frame of the animation (if any)
7. F1 for an options dialog
8. F2 for open file dialog
9. F3 shows and hides "bounding rectangle" and "origin point" (red rect and red dot)
10. F4 to show and hide "calculated bounding box"
---
Export function (which is activated from the options dialog) will expport files in the same folder where the *.img file is!
...
Happy fighting with this little piece of crap :)
And you can load .bmp files too! Not bad. Not bad at all :p
wangyushi
30 Oct 2007, 15:53
I can't download, why?!
"wangyushi, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Log "
great :go:
so sad it came so late and I won't have time to test it.. but as soon as I will find some I'm looking forward to it ;)
Nice, I will be sure to use this soon!
wow,it's good. And I think Elvain must be noticed of it. Anyone care to E-mail him?
wangyushi
31 Oct 2007, 06:36
Got it! Thanks, Frujin!
wow,it's good. And I think Elvain must be noticed of it. Anyone care to E-mail him?
He'll see it... no need of e-mails ;)
wow,it's good. And I think Elvain must be noticed of it. Anyone care to E-mail him?
why? and btw, don't be afraid, I noticed it.. but have no time to use it recently..
wow,it's good. And I think Elvain must be noticed of it. Anyone care to E-mail him?
If you read his post, he got it. Also, what's with your disturbing obssesion about him?
If you read his post, he got it. Also, what's with your disturbing obssesion about him?
It's not him. But his mod. I wanted to try it. Earlier the better!:go: :go:
It's not him. But his mod. I wanted to try it. Earlier the better!:go: :go:
I believe it's him, the other time you said something like:
"Yes there really should be a mod: I vote for Elvain!"
Nothing mentioning about his mod, there are a couple other quotes that show obssesion about him for some particular reason, but I can't remember any right now...
I can't download, why?!
"wangyushi, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Log "
I get the same error :sad:
I have tried many times but i aint allowed to open it.. why this?
Vlad the Impaler
23 Nov 2008, 12:29
Hello,
Is there any way to edit .rle files with this ImgView thing? Or it's just .img editor/.rle viewer?
wangyushi
26 Nov 2008, 15:31
Hello,
Is there any way to edit .rle files with this ImgView thing? Or it's just .img editor/.rle viewer?
No, you can only view or convert pics.
If anyone is interested, I now know how to make the ImgView program work without errors. This means that it is slightly, but only slightly, easier than as written here (http://www.goneflowers.de/archive/index.php/t-7740.html), to make new units (animations).
What is possible: you can create a new unit with all animations (like was already possible according to the thread I mentioned above), but it will not wear the colour of it's owner. This means that the enemy's and your units look the same, which is quite ugly. Simple solution: (1) we need to be able to create .RLE files (2) with the special `colour' that designates the `owner colour'. (1) was temporarily solved with the rle2png converter (http://www.goneflowers.de/archive/index.php/t-5217.html) from The Hairy Beast From The East, but with my latest java package it doesn't work anymore (who cares about backward compatibility). (2) might possibly be solved by putting that `owner colour' in a BMP image, but I would not know how.
If for some reason however you would like to have a look at the .RLE/.IMG files (such as swordsmen doing pushups! See images\units\swordsmen):
1. Put ImgView.exe in \Data\
2. Copy the directory, it's sub-directory and it's contents \images\colorization\ to \Data\ (in fact you only need colorization.bmp, colorization2.bmp, colorization.ini and colorization2.ini). Edit: For clearness' sake: you need to construct \Data\images\colorization\ with mentioned files in it.
3. Drag any .IMG/.RLE file on top of ImgView.exe to view it.
*If you choose a .IMG, you can press <space> to watch the animation and use the <arrows> to change facing direction. If you choose `export' from the options, <F1>, all frames will be exported separately in BMPs.
*If you choose a .RLE you see the .RLE as it is: all frames in columns (facing) and rows (time-frames). The export function generates the complete RLE into a BMP.
*With the load button from the options you can apparently load a background image (a BMP). Its use is unclear to me since you cannot make RLE files from that BMP with this program. Perhaps it is useful when calculating origins/bounding boxes.
*If you change any of `colorization', `draw mode', the animation timings or the bounding boxes, ImgView can write (save) a new .IMG file.
*The bounding boxes can be seen when a .IMG file is chosen, since that information is stored in the IMG file. Whatever they may be for..
Lastly, to create that new unit, take an existing unit. Export the RLE to a BMP (this is what now has become easier..). Edit the BMP as you like adhering to the column/row distribution. Lastly create an IMG file with the origin from the existing unit (might need tweaking) and the drawmode set to translucent (otherwise the BMP will render completely, erasing the background). This can also be done with ImgView, but you'll have to change the `unit.rle' reference in the IMG file to your self-created `unit.bmp' manually. More detailed instructions to that are in Eagle's thread above.
Man-at-arms (http://img156.imageshack.us/img156/7909/whitemanatarmsod4.png) in white with red patches (image). Notice the difference with the other troops in blue.
paulwratt
8 Jan 2009, 22:21
Doux, been reading web pages about mods and modding of KoH for the last couple of days, sounds like you guys had to do it hard in "the early years", especially where graphics and new units are concerned.. cudos..
.. anyways, can you get that rle2png tool up somewhere, more permanent (rapidshare links still seem to work, eve after a couple of years) and the manual too.
I'm grabbing as much as possible from the net, and if I can get some of the old v1.03 mods (which elvian said he still had) I will bash out some v1.05 versions.
Also I understand the technical details of file formats, programming and what not, probably I can reverse engineer the rle2png java tool, update it or create something new (at least command line). from what I've read there are a couple of things missing, especially as it would not convert the wolf rle.
To check what sort of data is being output into the png (amount of colors, bpp, etc) would confirm my hunch (limited color palette and/or indexed color table), maybe a moot point with ImgView, except it does not seem to be able to make rle's.
It is totally possible that these are "old school" rle image format, as I saw once in an old x86 assembler tut, which was common in the 80's and early 90's, and was even used to "create" movies (AtariST)..
.. that said, its christmas 2008, maybe a good time to ask Frujin for another "community present", the tool/secret to creating rle files (or anything else that would help modders and modding), if he is still around
ok, got more threads to read, tool and mods to find.. ta to you and the others who have posted details in various threads an bbs's, you guys have done well, after all this time too.. thanks
Paul - better late than never..
PS. I have a lot of mods for Diablo 2, that really needs a "complex" and/or flexible mod runner and manager, if I build it, I will make sure KoH (and therefore other game) mods are supported too, will look at "ticking" edit mode..
PPS. wangyushi: I'm pretty sure I saw "you" on a chinese civ board/site but I could not get any downloads from there (404), anything KoH that you have (build, kingsun, learncountry, new country, noarmy, etc or non-european mods/tools), I'm putting together everything needed, including examples and info, will release as a website, file mirror and html zip, might "shock" some peeps back into modding for KoH
.. anyways, can you get that rle2png tool up somewhere, more permanent (rapidshare links still seem to work, eve after a couple of years) and the manual too.
[...]
Also I understand the technical details of file formats, programming and what not, probably I can reverse engineer the rle2png java tool, update it or create something new (at least command line). from what I've read there are a couple of things missing, especially as it would not convert the wolf rle.Not right now, but once my other computer is working again, I will. Probably takes a couple of weeks. It would be great if you could RE the converter!
I'm grabbing as much as possible from the net, and if I can get some of the old v1.03 mods (which elvian said he still had) I will bash out some v1.05 versions.I'm sure Elvain has some. I should have Aesenius' mod and the likes on my other pc.
It is totally possible that these are "old school" rle image format, as I saw once in an old x86 assembler tut, which was common in the 80's and early 90's, and was even used to "create" movies (AtariST)..I have not seen this confirmed, but it may be that the .rle files are just run-length encoded files with a custom header and custom colour management.
.. that said, its christmas 2008, maybe a good time to ask Frujin for another "community present", the tool/secret to creating rle files (or anything else that would help modders and modding), if he is still around.I dare not ask any more ;). We've asked so many things and did get tools and information on the map editor (and a patch, not to forget!), but certainly found out the most ourselves, regarding modding. The team always appears to be busy and doesn't react that often. But then they're into Worldshift these days.
wangyushi
9 Jan 2009, 14:32
PPS. wangyushi: I'm pretty sure I saw "you" on a chinese civ board/site but I could not get any downloads from there (404), anything KoH that you have (build, kingsun, learncountry, new country, noarmy, etc or non-european mods/tools), I'm putting together everything needed, including examples and info, will release as a website, file mirror and html zip, might "shock" some peeps back into modding for KoHready
We're not ready for now, and it will be a long time to release anything.