rinnaldo wrote:Hey Implode, I noticed your Editor tool for your IME edition of the game. Is there a way to use this on just a regular copy of the game, to alter graphics and so forth?
Short answer: no
Long answer: The two games use completely different file formats. I use XML for all the unit, spell, etc. data, and to tell the game which graphics file to use for each unit, building and so on. i.e. the graphics XML file says for a particular unit, its overland image is the 70th image in UNITS1.LBX, and then in the various FIGURESx.LBX files, there's 4 images of the unit walking and attacking, facing in each of 8 directions = 32 images.
For the graphics, wherever possible I read the graphics straight out of the original LBX files, to keep the download size of MoM IME as small as possible. New graphics I use my own graphics format (.ndgbmp) stored within my own archive format (.ndgarc).
The original MoM has all the data, sound, music and graphics in the LBX files. (Some of the data is also hard coded into WIZARDS.EXE). LBX files are like zip files, in that they contain multiple files, but they're not compressed. LBXExtract will undo the LBX files into their original files, but unless you run it with the /raw option, it also converts many of the MoM file formats into more modern formats
. So, FIGURES1.LBX doesn't really contain 480 .bmp files - it contains 480 files in the weird format MoM uses for images.
So to change the graphics, not only do you need something to repack .LBX files (which would be simple to write), you also need a converter to convert from .gif, .bmp or whatever you're saving your graphics in into the MoM file format. I'd have to do a lot more looking into the MoM image format to be able to write that, currently I have a decompressor for reading the MoM image format, but I swiped most of the code from elsewhere and don't totally follow how it works. Also, your images would have to only be 256 colours, using the original MoM palette.
rinnaldo wrote:I also thought I might try to write a couple new spells
Even if you could edit the data and graphics, the effects of each spell are all hard coded into the game so you'd never be able to change them. You can change unit stats, costs, spell research and casting costs, but I think that's about it.