View Single Post
  #15  
Unread 05-01-2005, 01:15 AM
diztorded's Avatar
diztorded diztorded is offline
Crushbone - Cronique
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Crushbone
Posts: 163
Default

I will take this moment to let you know how switching works between maps of the same area...

In your custom directory you will find a directory named eq2map. In this you will find a file named core_mapstyles.xml. When you edit this file, do a search for river. You will locate the following:

<ImageStyle Name="rivervale_0" zonerect="-108,-388,500,321" availablerect="-110,-450,340,350" availablepriority="0">
<ImageFrame Name="imageFrame" Source="images/maps/map_rivervale_0.dds" SourceRect="0,0,436,506"/>
</ImageStyle>
<ImageStyle Name="rivervale_1" zonerect="340,-450,900,321" availablerect="380,110,920,350" availablepriority="1">
<ImageFrame Name="imageFrame" Source="images/maps/map_rivervale_1.dds" SourceRect="0,0,436,506"/>
</ImageStyle>

Rivervale_0 and rivervale_1 represents the east and west maps. Availablerect is the command that lets EQ2 know when to switch these maps from one to the other.

The present settings for these are:
availablerect="-110,-450,340,350" for rivervale_0
availablerect="380,110,920,350" for rivervale_1

AvailableRect (x1,y1,x2,y2) -- similar to ZoneRect except it specifies the zone area (current location) when this map should be displayed. This defaults to ZoneRect. Overlapping split maps set the shared edge to the point you want to switch to the second map. This allows the maps to switch without moving all the way to the edge. Availablerect is the loc coordinates, that when you're within them, the map will change to that map (that map being the one whose availablerect you're within).

So.. for rivervale_0 we have a zonerect of -108,-388,500,321 which is -W, N, -E, S. For rivervale_1 we have a zonerect of 340,-450,900,321. Whith this information, we would assume that the availablerect for rivervale_0 would be -108,-388,405,321 and rivervale_1 would be 405,-450,900,321.

I arrived at these numbers by "assuming" rivervale_0 was the west-most map and rivervale_1 the east-most. If you draw 2 boxes that slightly over lap each other and lable the one on the left 0 and right 1 then put the zonerec's on the sides, you get a picture of how the maps lay. Now you draw a box center to the left edge and that would be your availablerect for rivervale_0. Do the same to get rivervale_1.

I hope this answers your questions and enables those with access to the zone to come up with a proper setting for the map swap.

Last edited by diztorded : 05-25-2005 at 06:57 PM.
Reply With Quote