Quantcast ZoneRect + UIBuilder Map Location Calculator - EQ2Interface
EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Featured Projects > EQ2MAP

Reply
Thread Tools Search this Thread Display Modes
  #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
Send a message via AIM to taco-man Send a message via MSN to taco-man Send a message via Yahoo to taco-man
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:	604
Size:	37.1 KB
ID:	656  Click image for larger version

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

Last edited by taco-man : 01-14-2005 at 12:33 AM.
Reply With Quote
  #2  
Unread 01-09-2005, 09:38 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,284
Send a message via AIM to Drumstix42 Send a message via MSN to Drumstix42 Send a message via Yahoo to Drumstix42
Default

Haha nice job. I was thinking of something like this to possibly help myself in moving stuff around in the hud in "groups". As I do not know VB, I was thinking something like javascript, heh.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #3  
Unread 01-09-2005, 11:10 PM
Pixi's Avatar
Pixi Pixi is offline
Cry Spoon!
Premium Member
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Oggok
Posts: 241
Default

You guys are just plain crazy hehe. But I have to admit that I can't *wait* too see some of these maps in action.
__________________

Bugrit - 64 Monk - 51 Tailor
Boznak - 64 Warden - 41 Provisioner

Founder and proud leader of: Alternate Reality
Bringing the lazy slackery back in the game.
Reply With Quote
  #4  
Unread 01-09-2005, 11:37 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
Send a message via AIM to taco-man Send a message via MSN to taco-man Send a message via Yahoo to taco-man
Default

it was ALOT more work then i expected when i first started. It ended up being 221 lines of code that i had to write (not counting comments or the code that is automaticly generated for the positioning and placement of the buttons, boxes, ect) and the second part for the positioning(that i wasn't origionally planning on doing) i had to make a formula for, i didn't have a formula someone already made

Last edited by taco-man : 01-10-2005 at 01:16 AM.
Reply With Quote
  #5  
Unread 01-12-2005, 02:39 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
Send a message via AIM to taco-man Send a message via MSN to taco-man Send a message via Yahoo to taco-man
Default

the negative/positive signs for the zone rect may or may not be working properly, when i get home i will post the source code for the part that does the calculation and maybe someone can spot where i screwed up. However the numbers are still correct.
Reply With Quote
  #6  
Unread 01-12-2005, 03:22 PM
sunthas sunthas is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unrest
Posts: 306
Default

the icon calcuation seems to be working fine
Reply With Quote
  #7  
Unread 01-13-2005, 10:22 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
Send a message via AIM to taco-man Send a message via MSN to taco-man Send a message via Yahoo to taco-man
Default

update planned for friday to make it put the "answer" it calculates into the clipboard as well as set the calculate button to be pressed when you hit enter.
Reply With Quote
  #8  
Unread 01-14-2005, 12:34 AM
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
Send a message via AIM to taco-man Send a message via MSN to taco-man Send a message via Yahoo to taco-man
Default

well my friend forgot to give me back my notes for my calc assignment so i had some spare time since i couldn't do it and i updated it, for details see the part of the first post which says UPDATED
Reply With Quote
  #9  
Unread 01-14-2005, 08:09 AM
Eloa Eloa is offline
EQ2MAP Webmaster
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unkown
Posts: 496
Send a message via Skype™ to Eloa
Default

Thats great, thanks so much taco.
Reply With Quote
  #10  
Unread 01-14-2005, 08:16 AM
Eloa Eloa is offline
EQ2MAP Webmaster
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unkown
Posts: 496
Send a message via Skype™ to Eloa
Default

on the first try, I broke it:
Quote:
Unhandled exception, Value was either too large or too small for a decimal.

************** Exception Text **************
System.OverflowException: Value was either too large or too small for a Decimal.
at System.Decimal..ctor(Double value)
at Microsoft.VisualBasic.CompilerServices.DecimalType.FromObject(Object Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.DecimalType.FromObject(Object Value)
at Zone_Rect.Form1.BtnCalculate_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.PerformClick()
at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.ThreadContext.System.Windows.Forms.UnsafeNativeMethods+IMso Component.FPreTranslateMessage(MSG& msg.
No biggie, just thought you may want to make an error handler for it.
I was in location calculator, x=12,y=123,width=1,height=11,zonerect is 1,1,1,1 (thats prob what caused it)
Reply With Quote
  #11  
Unread 01-14-2005, 09:51 AM
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
Send a message via AIM to taco-man Send a message via MSN to taco-man Send a message via Yahoo to taco-man
Default

yea one day i will get around to adding an error handler for it, but you are right, i doubt it likes 1,1,1,1
Reply With Quote
  #12  
Unread 01-22-2005, 02:23 AM
tonyis3l33t's Avatar
tonyis3l33t tonyis3l33t is offline
a hedgehog
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 854
Send a message via AIM to tonyis3l33t Send a message via Yahoo to tonyis3l33t
Default

tacoman, could you make it so pushing TAB highlights everything in the next field? that way i can tab over and start typing, rather than TAB Backspace, backspace, backspace, backspace hehe

thanks bro, you did an awesome job with this.

furthermore would be nice to have the "in game /loc coordinates" text fields be one field, that accepts several formats of /locs
ie
1,1,1
1, 1, 1
1,1
1, 1
________
Volcano solid valve

Last edited by tonyis3l33t : 09-16-2011 at 03:24 AM.
Reply With Quote
  #13  
Unread 01-25-2005, 02:50 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
Send a message via AIM to taco-man Send a message via MSN to taco-man Send a message via Yahoo to taco-man
Default

i try and get to it this weekend since i am so busy right now studying for finals i have on wednesday thursday and friday, and i need to replace the ignition in my car this weekend, as well, since being able to start my car would be nice
Reply With Quote
  #14  
Unread 01-25-2005, 03:46 PM
sunthas sunthas is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unrest
Posts: 306
Default

rl comes first
Reply With Quote
  #15  
Unread 01-25-2005, 07:57 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
Send a message via AIM to taco-man Send a message via MSN to taco-man Send a message via Yahoo to taco-man
Default

yes it does, it just seems to be coming first way too often...last time i got a chance to play eq was about 3 weeks ago
Reply With Quote
  #16  
Unread 01-25-2005, 09:00 PM
Eloa Eloa is offline
EQ2MAP Webmaster
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unkown
Posts: 496
Send a message via Skype™ to Eloa
Default

ick, you should quit real life like I did.
Reply With Quote
  #17  
Unread 01-25-2005, 09:01 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
Send a message via AIM to taco-man Send a message via MSN to taco-man Send a message via Yahoo to taco-man
Default

haha, i wish i could, but i still haven't even made it out of high school. On the bright side this is my last year and then i get to go to college!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:22 AM.


Our Network
EQInterface | EQ2Interface | War.MMOUI | WoWInterface | VGInterface | LoTROInterface | MMOInterface