View Single Post
  #1  
Unread 01-09-2005, 05:34 PM
taco-man's Avatar
taco-man taco-man is offline
EQ2MAP Updater Author
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 1,349
Default ZoneRect + UIBuilder Map Location Calculator

This is a tool that will calculate the zonerect for any zone if you know the required information that was posted by Bobble HERE

I wrote it in visual basic .net so you will need the .net framework to use it if you do not already have it. you can get the .net framework from windows update or from http://www.microsoft.com/downloads/d...displaylang=en by clicking the download button in the upper right corner.

This is a BETA Version so please post any bugs, suggestions, or questions here. To my knowledge it works perfectly however you can never be too sure.

this program should save a tremendous amount of time for anyone making maps because all you have to do is enter the numbers and click calculate. I was origionally just going to make it do zonerect but i decided to make it calculate the position on the map if you give it the in game locationa and the maps zonerect. that should save ALOT of time instead of having to calculate each one manually.

Thankyou Bobble for the origional formula to calculate the zonerect.

Also if anyone is interested in the formula i am using to calculate the map location(NOT the zonerect) it is:
Code:
         (LOC_0x + LOC_x)
MAP_x  = ----------------  +  Map_0x - (IconW / 2)
               wdpp_x
Same variables in bobbles formula except LOC_x is any /loc in game and MAP_x is the corresponding coordinate on the map image that the equation will give you when you solve it. IconW is the icon's width that you are placing on the map. Without the (IconW / 2) in the equation it would give you where you want the center of the icon to be on the map but since the coordinates used to place things in the ui is the upper left corner we need to subtract half the width so that it is placed in the right spot

if anyone is interested in the source code let me know i can post the visual basic .net project files.

UPDATED: 1-13-05
pushing enter will now click the calculate button.
The calculated data will be automaticly copied into the clipboard for you so all you have to do is paste it where you want (ctrl-v or right click and paste)
instead of having to copy it first.
Attached Thumbnails
Click image for larger version

Name:	zonerect.jpg
Views:	830
Size:	37.1 KB
ID:	656  Click image for larger version

Name:	zonerect2.jpg
Views:	731
Size:	37.1 KB
ID:	657  
Attached Files
File Type: zip Zone Rect.zip (19.3 KB, 670 views)

Last edited by taco-man : 01-14-2005 at 12:33 AM.
Reply With Quote