My utility to create Map2Bmp xml files from the Map Generator 2 xml files is working fairly well. I do need some help figuring out what is going wrong with the altitude, maybe you can enlighten me.
Here is a sample of a few Map Generator 2 altitude.xml entries:
Code:
<Altitude ImgIndex="255" Name="Other" Alt="94" Red="249" Green="0" Blue="249" />
<Altitude ImgIndex="254" Name="Other" Alt="92" Red="246" Green="0" Blue="246" />
Here is a sample of a few Map2Bmp altitude.xml entries:
Code:
<Altitude Key="239" Type="Other" Altitude="115" R="201" G="0" B="201" />
<Altitude Key="238" Type="Other" Altitude="110" R="198" G="0" B="198" />
So my utility reads the Map Gen 2 XML, changing this:
Code:
<Altitude ImgIndex="255" Name="Other" Alt="94" Red="249" Green="0" Blue="249" />
To this for use with Map2Bmp:
Code:
<Altitude Key="255" Name="Other" Altitude="94" R="249" G="0" B="249" />
The problem is that when I make my altitude image bmp with Mul2Bmp, the resulting graphic does not marry up with the Map Gen 2 pallette at all. In fact, the entire bmp is in shades of purple.
I do not have this problem with the terrain file, the terrain file saves correctly using the Map Gen 2 color table.
Any ideas as to why this is not working? I am assuming that Map2Bmp correctly generates altitude files?
EDIT: Strangely enough, the resulting BMP does seem to actually generate altitude in the complete map0.mul as it should. Its just that the color table doesnt marry up with the provided chart.
_________________
-= HellRazor =-
Shattered Sosaria is coming!
http://www.shatteredsosaria.com