Ryandor.com

Forums
It is currently Sat Apr 27, 2024 9:48 am

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Nov 01, 2006 12:59 pm 
Offline
Grand Master
Grand Master

Joined: Thu Jul 17, 2003 8:54 am
Posts: 971
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 01, 2006 1:55 pm 
Offline
Grand Master
Grand Master

Joined: Sat Mar 12, 2005 3:29 pm
Posts: 414
Are you resetting or remaking the palette? if you dont change the paletee colors, it wont pick up the new entries (color wise). Remember, nothing actually looks at the colors but the human.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 01, 2006 1:56 pm 
Offline
Grand Master
Grand Master

Joined: Thu Jul 17, 2003 8:54 am
Posts: 971
I'm not sure. What does Map2Mul do when it creates the BMP?

I am basically using the same info that is in the Map Gen 2 XML.

_________________
-= HellRazor =-
Shattered Sosaria is coming!
http://www.shatteredsosaria.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 53 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group