EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Featured Projects > EQ2MAP

Reply
Thread Tools Search this Thread Display Modes
  #26  
Unread 08-20-2005, 05:06 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

im not quite sure i understand you correctly, but but heres a slightly simplified version of the function i wrote for the site that takes the pathfind location and zonerect and gives you the x,y coordinates on the map
incase mean is lost in translation this function is
need: pathfind location, zonerect
returns: x,y location on map.
PHP Code:
function GetCoords($PathfindLocation$ZoneRect){
            
//Assume Map images size
            
$MAP_1x 436;
            
$MAP_1y 506;
            
//the 2 below should always be zero
            
$MAP_0x 0;
            
$MAP_0y 0;
            
//Set Icons Width and height
            
$IconW 12;
            
$IconH 12;
            
//split the pathfind location into 2 variables (assumes there is no Z coordinate given in pathfind location
            //normally i have a check that splits it differently depending on if there is 1 comma or 2.
            
list($LOC_x$LOC_y) = explode(",",$PathfindLocation);
            
//split the zonerect up so i can use each value
            
list($LOC_0x$LOC_0y$LOC_1x$LOC_1y) = explode(",",$ZoneRect);
            
$LOC_0x $LOC_0x * -1;
            
//Calculate WDPP_X and WDPP_Y
            
$wdpp_x = ((-$LOC_1x $LOC_0x) / $MAP_1x);
            
$wdpp_y = (($LOC_1y $LOC_0y) / $MAP_1y);
            
//calculate Location
            
$MAP_x = (((-$LOC_0x $LOC_x) / $wdpp_x) + $MAP_0x) - ($IconW 2);
            
$MAP_y = (((-$LOC_0y $LOC_y) / $wdpp_y) + $MAP_0y) - ($IconH 2);
            
//round the Location so that there are no decimals
            
$MAP_x round($MAP_x0);
            
$MAP_y round($MAP_y0);
            
$xml_loc "$MAP_x,$MAP_y";
            
//return location in format x,y
            
return($xml_loc);
            
//end calculations

does this help at all?
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface

Last edited by taco-man : 08-20-2005 at 05:13 AM.
Reply With Quote
  #27  
Unread 08-20-2005, 09:13 PM
nomas nomas is offline
A Dervish Cutthroat
 
Join Date: Jul 2005
Server: Antonia Bayle
Posts: 38
Default

Updated !

- some of bug fix.
- auto-calc LOC , Pathfindlocation.
(but there is small magin of error about 3~4 point in conversion. I guess that it's come with numerical computation error.)
Attached Files
File Type: zip Eq2MapEdit.zip (272.3 KB, 210 views)
Reply With Quote
  #28  
Unread 08-20-2005, 09:21 PM
nomas nomas is offline
A Dervish Cutthroat
 
Join Date: Jul 2005
Server: Antonia Bayle
Posts: 38
Default

It's source code.
Attached Files
File Type: zip eq2mapEdit_src.zip (927.7 KB, 216 views)
Reply With Quote
  #29  
Unread 08-21-2005, 03:02 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

very cool man
a few more suggestions:

1)

Have the program check registry to find out eq2 install path.

It goes to that path, and checks the eq2.ini file to find out what the custom ui is.

it goes into that custom ui folder and scans all the icons_*.xml files.

the program can convert the
icons_adv02_dun_sundered_splitpaw_0.xml
into
map_adv02_dun_sundered_splitpaw_0.dds
and load the map up at the same time as the icons.

This way, regular users can see just a list of zones and decide which one they want to add icons to.

I do, however, like the advanced mode, too. I suggest you keep the browse functionality in there as well.

2)

also: A File->Save As... command can always be useful.

suggested menu:
File
Open Zone <--shows dumbed down version, only see a list of zones
Open Icon Page <--same as current "File->Open"
Open Map File <--same as current "Map->Open"
Save As...
Save

POI
Add Map POI
Delete Map POI
Post POI's to maps.eq2interface.com
AutoCalc Location

Help
If you decide to be generous enough to provide them help in the program

3)

A status bar at the bottom that always shows current /loc of the cursor when you hover over the map.
__________________
Nagafen (Evil) - Climax, Goshawk
Reply With Quote
  #30  
Unread 08-21-2005, 05:49 AM
nomas nomas is offline
A Dervish Cutthroat
 
Join Date: Jul 2005
Server: Antonia Bayle
Posts: 38
Default Thank you for suggestion.



1) It's uses relative path. I will set work-path in INI file.

2) Delete POI is easy.
I'm not well-spoken, HELP menu is difficult.
(This words is help with online Korean-English dictionary. )

3) Using statusbar is good idea.
I worried about form size, don't think about it.
Reply With Quote
  #31  
Unread 08-21-2005, 09:52 AM
nomas nomas is offline
A Dervish Cutthroat
 
Join Date: Jul 2005
Server: Antonia Bayle
Posts: 38
Default

Updated !

It Applied suggestions except 'Open Zone'.
Attached Files
File Type: zip Eq2MapEdit.zip (282.0 KB, 218 views)
Reply With Quote
  #32  
Unread 08-21-2005, 03:06 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

Very cool. Nice work nomas. If I still had eq2 I would use it. I am sure everyone will love this when the advertise gets out.
Reply With Quote
  #33  
Unread 08-21-2005, 03:59 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

this may help you for the "open zone"

zone internal name (ie whats used in the filename)
A Pirates Hidden Stash steppes_mini01
Antonica East antonica_1
Antonica West antonica_0
Blackburrow Level 1 blackburrow_0
Blackburrow Level 2 blackburrow_1
Blackburrow Level 3 blackburrow_2
Blood Skull Valley cmmn_epic01_orc
Cauldron Cove and Hollow nektulos_epic01_cauldroncove
Cavern of Tangled Weeds enchanted_mini01_1
Cazic Thule Inside cazicthule_2
Cazic Thule North cazicthule_1
Cazic Thule South cazicthule_0
Chamber of Immortalilty vrsn_epic01_boss
Chamber of Rulgax runnyeye_epic01_eye
Commonlands East commonlands_1
Commonlands West commonlands_0
Condemned Catacombs qey_catacomb01_
Cove of Decay steppes_epic01_cove
Crows Resting Place qey_catacomb_epic01
Darkblade Den fprt_sewer_epic04
Deathfist Citadel Basement deathfist_3
Deathfist Citadel Ground deathfist_1
Deathfist Citadel Sewer - Jail deathfist_2
Deathfist Citadel Top deathfist_0
Dire Hollow - Grim Tidings nektulos_mini02
Edgewater Drains I fprt_sewer03_0
Edgewater Drains II fprt_sewer03_1
Edgewater Drains III fprt_sewer03_2
Everfrost everfrost
Fallen Gate fallengate
Feerrott (East) feerrott_1
Feerrott (West) feerrott_0
Firemyst Gully antonica_epic02_firemyst
Forbidden Sepulcher everfrost_epic02_icespire
Freeport: Beggars Court fprt_hood04
Freeport: Big Bend fprt_hood01
Freeport: East Freeport fprt_east
Freeport: Longshadow Alley fprt_hood05
Freeport: North Freeport fprt_north
Freeport: Scale Yard fprt_hood06
Freeport: South Freeport fprt_south
Freeport: Stonestair Byway fprt_hood02
Freeport: Sunken City fprt_adv01_sunken
Freeport: Temple Street fprt_hood03
Freeport: The Graveyard fprt_adv02_graveyard
Freeport: The Ruins fprt_adv04_ruins
Freeport: The Sprawl fprt_adv03_sprawl
Freeport: West Freeport fprt_west
Gobblerocks Hideout fprt_sewer02_
Grozmags Trial tutorial_island02_epic01
Lavastorm lavastorm
Lost Village of Kugup feerrott_epic02_froglok
Miraguls Menagerie everfrost_epic01_menagerie
Nektropos Castle Level 1 nektropos_castle_0
Nektropos Castle Level 2 nektropos_castle_1
Nektropos Castle Level 3 nektropos_castle_2
Nektulos Forest nektulos
Oakmyst Forest qey_adv01_oakmyst
Obelisk of Lost Souls cave obelisk_of_lostsouls_0
Obelisk of Lost Souls level 1 obelisk_of_lostsouls_1
Obelisk of Lost Souls level 2 obelisk_of_lostsouls_3
Obelisk of Lost Souls level 3 obelisk_of_lostsouls_4
Permafrost Basement permafrost_3
Permafrost Level 1 permafrost_0
Permafrost Level 2 permafrost_1
Permafrost Level 3 permafrost_2
Qeynos Tradeskill Area qey_tradeskill01
Qeynos: 1 Room Apartment qey_ph_1r01
Qeynos: 2 Room Apartment qey_ph_2r02
Qeynos: Castleview Hamlet qey_village04
Qeynos: Graystone Yard qey_village03
Qeynos: Nettleville Hovel qey_village01
Qeynos: North Qeynos qey_north
Qeynos: Qeynos Harbor qey_harbor
Qeynos: South Qeynos qey_south
Qeynos: Starcrest Commune qey_village02
Qeynos: The Baubbleshire qey_village06
Qeynos: The Elddar Grove qey_elddar
Qeynos: The Willow Wood qey_village05
Rivervale (East) rivervale_1
Rivervale (West) rivervale_0
Ruins of Varsoon (Center) varsoon_1
Ruins of Varsoon (East) varsoon_0
Ruins of Varsoon (West) varsoon_2
Runnyeye Citadel runnyeye
Sepulcher of Jhanda qey_catacomb_epic02
Serpents Lair fprt_sewer_epic03
Soluseks Eye Level 1 solusekseye_0
Soluseks Eye Level 2 solusekseye_1
Soluseks Eye Level 3 solusekseye_2
Soluseks Eye Level 4 solusekseye_3
Soluseks Eye Level 5 solusekseye_4
Splitpaw Crawler Nest adv02_dun_sundered_splitpaw_2
Splitpaw Delving into Darkness adv02_dun_sundered_splitpaw_0
Splitpaw Den adv02_dun_sundered_splitpaw_hub
Splitpaw Upper Tunnels adv02_dun_sundered_splitpaw_1
Stormhold Level 1 befallen_0
Stormhold Level 2 befallen_1
Stormhold Level 3 befallen_2
Stormhold Level 4 befallen_3
Sullon Mines orcishwastes_mini01_1
Tallon Hording Halls orcishwastes_mini01_0
The Caves Level 1 qey_adv03_caves_0
The Caves Level 2 qey_adv03_caves_1
The Caves of Wonder enchanted_mini01_0
The Crypt of Betrayal qey_catacomb03
The Deathly Scarab Hive qey_catacomb_epic03
The Down Below qey_catacomb01
The Enchanted Lands East enchanted_1
The Enchanted Lands West enchanted_0
The Eternal Gorge cmmn_epic02_mage
The Forest Ruins qey_adv02_ruins
The Isle of Refuge tutorial_island02
The Peat Bog qey_adv04_bog
The Serpent Sewer fprt_sewer02
The Thieves Way fprt_sewer01
The Tomb of Valor befallen_epic01
The Vault of the Fallen fallengate_epic01_boss
The Wailing Caves (East) wailingcaves_1
The Wailing Caves (West) wailingcaves_0
Thundering Steppes steppes
Tombs of Night I mod01_dun_tombs_of_night_0
Tombs of Night II mod01_dun_tombs_of_night_1
Tombs of Night III mod01_dun_tombs_of_night_2
Underrot Caverns Moldy Crypt nektulos_mini03
Unearthing nektulos_mini01
Vermins Snye qey_catacomb02
Zek orcishwastes
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface
Reply With Quote
  #34  
Unread 08-22-2005, 01:33 AM
nomas nomas is offline
A Dervish Cutthroat
 
Join Date: Jul 2005
Server: Antonia Bayle
Posts: 38
Default

Thank you.

Updated !

'Open Zone' function is added.

It depend on 'zonenames.dat' file.
Attached Files
File Type: zip Eq2MapEdit.zip (389.1 KB, 220 views)
Reply With Quote
  #35  
Unread 08-22-2005, 02:14 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

your welcome, im always happy to help
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface
Reply With Quote
  #36  
Unread 08-24-2005, 07:19 AM
nomas nomas is offline
A Dervish Cutthroat
 
Join Date: Jul 2005
Server: Antonia Bayle
Posts: 38
Default

I forget uploading source code.

Attached Files
File Type: zip eq2mapEdit076_src.zip (1.20 MB, 212 views)

Last edited by nomas : 08-24-2005 at 08:09 AM.
Reply With Quote
  #37  
Unread 09-01-2005, 07:05 AM
nomas nomas is offline
A Dervish Cutthroat
 
Join Date: Jul 2005
Server: Antonia Bayle
Posts: 38
Default Updated to 0.79(memory leak fixed)

Updated to 0.79.



What's New?
(0.77)
- In 'Add ZoneRect', added function calculating MAP zonerect with two point.
Beside 'Zonerect' edit control, '...' button is that. It also can update 'core_mapstyles.xml'. It use min and max POIs in calculation.
It will use zonerect calculation.
- At 'Rearrange propertis...', Rearrange XML properties at saving file.
(0.78)
- 'Open MAP Zone' function don't need 'zonenames.dat' file.
- In 'Add zonerect' window, added delta pathfindlocation value per pixel.
(0.79)
- fix memory leak at loading MAP.
Attached Files
File Type: zip Eq2MapEdit.zip (384.8 KB, 214 views)

Last edited by nomas : 09-03-2005 at 09:53 AM.
Reply With Quote
  #38  
Unread 09-15-2005, 01:40 AM
nomas nomas is offline
A Dervish Cutthroat
 
Join Date: Jul 2005
Server: Antonia Bayle
Posts: 38
Default

what's new?

- Fixed bug in function calculating MAP zonerect.
New function get ZoneRect more accurately with removing POIs big difference.(selective)
Attached Files
File Type: zip Eq2MapEdit.zip (385.8 KB, 218 views)
Reply With Quote
  #39  
Unread 09-23-2005, 10:11 PM
nomas nomas is offline
A Dervish Cutthroat
 
Join Date: Jul 2005
Server: Antonia Bayle
Posts: 38
Default Eq2MAP Editor 0.81 beta

0.81 beta

What's new?
- can load UTF8BOM header in core_mapstyles.xml.
#xEF #xBB #xFF <?xml...?> #x0a
With UTF8BOM, First Line-Break must be #x0a.
Not #x0d #x0a.
Attached Files
File Type: zip Eq2MapEdit.zip (383.4 KB, 214 views)
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 08:25 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI