View Single Post
  #11  
Unread 12-27-2008, 02:18 PM
drider1969 drider1969 is offline
A Forest Scavenger
 
Join Date: Dec 2005
Server: Antonia Bayle
Posts: 18
Default

Quote:
Originally Posted by gm9 View Post
The 0,0,436,506 is a hard setting, your map image needs to be 436 x 506 pixels.

For zonerect calculation you need to get both the /loc and the pixel location for two points on diagonally opposing corners of the map. Since you already have all the /locs, all you need to do is find the corresponding pixel location on your images to calculate the zonerect. That is quickly done using whatever image editing program you used to create the maps.
My brain must be frozen today or something because it makes sense but I am still confused. An example would be the second map, as the first works just fine. The spreadsheet gives me a zone rect of -167.29, -121.97, -22.72, and 2/46. The corresponding lines in the _User_MapStyles.xml has

<ImageStyle Name="exp05_dun_befallen_cavern_1" displayname="Befallen Cavern of the Afflicted Middle" menugroup="Befallen" zonerect="-167.29, -121.97, -22.72, 2.46" heightmin="-56" heightmax="-20">
<ImageFrame Source="images/maps/map_exp05_dun_befallen_cavern_1.dds" SourceRect="0,0,436,506" />
</ImageStyle>

The diagonal for the image is 0,131 <-> 436,400. How would I make the transferance between the two zone rects? I have not seen any documentation about making these changes.

Here is the full code used to test the 3 levels of the maps as well. I suspect I have some error here that is causing me all this grief.

<ImageStyle Name="exp05_dun_befallen_cavern_0" displayname="Befallen Cavern of the Afflicted Entrance" menugroup="Befallen" zonerect="-79.66, -76.07, 12.09, 7.22" heightmin="7">
<ImageFrame Source="images/maps/map_exp05_dun_befallen_cavern_0.dds" SourceRect="0,0,436,506" />
</ImageStyle>
<ImageStyle Name="exp05_dun_befallen_cavern_1" displayname="Befallen Cavern of the Afflicted Middle" menugroup="Befallen" zonerect="-167.29, -121.97, -22.72, 2.46" heightmin="-56" heightmax="-20">
<ImageFrame Source="images/maps/map_exp05_dun_befallen_cavern_1.dds" SourceRect="0,0,436,506" />
</ImageStyle>
<ImageStyle Name="exp05_dun_befallen_cavern_2" displayname="Befallen Cavern of the Afflicted Bottom" menugroup="Befallen" zonerect="-153.57, -184.39, -19.97, -106.05" heightmax="-55">
<ImageFrame Source="images/maps/map_exp05_dun_befallen_cavern_2.dds" SourceRect="0,0,436,506" />
</ImageStyle>



Thanks for all of your help.
Reply With Quote