The way I did it was stand directly east/west of someone at 40 yards (painstakingly adjusted using blizzard's range checker) calculate the difference of our x coordinates, and then divide 40 by that result. The same was done in the y direction. I made the y difference on the order of 10^-6 when measuring the x direction and vice-versa. To verify it, I ran in a 40 yd radius circle going in and out of range of healing while spamming my distance function. Whenever I was barely in range it would show 39.9 yards, and 40.1 yards when I was out of range. It's experimental but the actual map coordinates shouldn't be off by much.
Anyways, I just checked DBM's mod to calculate map sizes and it's totally inaccurate. The results of blinking northeast and blinking nortnortheast are completely different. It's funny how they copy-pasted my pretty much correct data, recalculate all of them with the wrong method, and think my data is wrong.
Hello,
I'm the author of DBM, this post has been brought to my attention as you claim that our map size data is "totally inaccurate". I just double-checked my calculations and they are all correct. You can find my calculations in this thread: http://www.deadlybossmods.com/phpbb3/viewtopic.php?f=3&t=2258&start=15
Could you please explain why this should be wrong? These calculations gave us very accurate values that seem to be correct.
However, your values seem to be about 5-10% off. This can be explained by the fact that you are are neither utilizing GetPlayerFacing() nor something with a known distance (like Blink). Just walking around will never give you as accurate values as our approach.
However, feel free to use the map sizes from DBM in your addon.
Update on this:
We got the "real" data from the game files (thanks to MMOChampion). This data shows that our values were only 0.0005% percent off while your data is 5-10% wrong.
You should try to validate your data using a spell. I tried your data in Icecrown Citadel - The Lower Citadel, and it's off by 2 yards. I stood just in range of 40 yards, ran your dimensions, and it returned 42 yards. So either IsSpellInRange("Lesser Healing Wave") is broken or your coordinates are off.
I blinked around with your map calc mod and it gave inconsistent results in Ironforge. Sometimes it would be (790, 527), the right dimensions, and other times it would be completely off.
I blinked around with your map calc mod and it gave inconsistent results in Ironforge. Sometimes it would be (790, 527), the right dimensions, and other times it would be completely off.
You must not change the direction you are looking at after executing the slash command (which shouldn't be necessary but there seems to be a bug). You should also not blink directly to the west/east/north/south as the precision of GetPlayerMapPosition() might cause problems there. I get consistent results on all zones.
I'm absolutely sure I didn't move my camera at all. It happens a few times out of a dozen. I actually printed out the blink distance using 790,527 and it was 20 yds every time, but the measured dimensions weren't the same every time. I don't know how it's possible. Something to do with GetPlayerFacing?
How do you know the game files represent game yards of a map? I trust the fixed range checks (IsSpellInRange and action bar range check) over game data, since it's more dependent on in-game mechanics. I've already validated all of mine to work at 40 yards. Can you validate that blink is 20 yards using your data?
I'm absolutely sure I didn't move my camera at all. It happens a few times out of a dozen. I actually printed out the blink distance using 790,527 and it was 20 yds every time, but the measured dimensions weren't the same every time. I don't know how it's possible.
That's why we did multiple measurements in all instances :)
Yes, probably. The mod also tries to update the facing when you look around after entering the slash command but this doesn't work at all. GetPlayerFacing() shows a really strange behaviour.
How do you know the game files represent game yards of a map?
It is just very very likely since these files contain the exact same values as our calculated values. What else should be in these files? Such an entry contains the instance ID, the dungeon level and the size.
I've been using the Custom Raid bars to monitor the trash respawns in ICC25/10.
/dxerb 7200 Trash Respawn
This quickly gets confusing when clearing multiple wings, And I was wondering if there is anyway to get the name of the targetted mob in the name of the Raid Bar?
I tried
/dxerb 7200 %t Respawns
But it simply took the code as text and I ended up with that as the bars name, rather than the actual mobs name.
I've been using the Custom Raid bars to monitor the trash respawns in ICC25/10.
/dxerb 7200 Trash Respawn
This quickly gets confusing when clearing multiple wings, And I was wondering if there is anyway to get the name of the targetted mob in the name of the Raid Bar?
I tried
/dxerb 7200 %t Respawns
But it simply took the code as text and I ended up with that as the bars name, rather than the actual mobs name.
You'll have to manually enter it in for now. I could add the %t feature. Make a ticket on the project page so I don't forget about it
We now have all map sizes from the game files. Most of them are confirmed with Blink :)
...
I did some testing, and damaging abilities by NPCs do not use yards from map sizes. It appears that CheckInteractDistance, Blink, and such do use map size data.
Map data for Crystalsong Forest is (~1814, ~2722), and the measurement from IsSpellInRange is (~1690, ~2535). Unbound Seer's in Crystalsong Forest have this ability 40 yd ability http://www.wowhead.com/?spell=38204. I maxed ranged the mob, and had someone stand directly on top of the mob for measuring. It started running towards me at ~42 yards using map data, and ~40 yards using IsSpellInRange data.
It seems that it's very very likely you want to use IsSpellInRange data for boss abilities :).
I've been working on some map position-based stuff for healing frames, and figured it would make sense for there to be a lib managing the map scales and some distance caching. My current little prototype provides position, distance, number in range, and a chain heal "guess". Is this something you guys would be on board with using in DXE and contributing to?
That was probably me asking for a port of the DBM Spelltimers module.
I'd like this too. And I'd like to point out that having a module, something optional that is downloaded separately like the DBM SpellTimers module is, would mean that those who don't want or need this don't have to have it. Yes, there are things out there like Raid Cooldowns, which are either buggy as hell or don't support everything, or DO support everything and give you a zillion bars that you don't need. As the person above posted a few posts ago, it is clearly possible. I'd be happy to do testing or anything that I could do to help, but I'm afraid my lua coding isn't any where close to being about to create such a module myself.
About the proximity display. In configuration it says
"[The proximity window] relies on knowing the dimensions, in game yards, of each map. If the dimension of a map is not known, it will default to the closest range rounded up to 10, 11, or 18 game yards."
I guess I'm misreading it, since I thought this meant (before even reading this thread) that if the coordinates aren't available, you should still get a crude proximity estimation? Like in Lana'thel's room?
Would it be possible to put a mark on the Necrotic Plague on Lich King? Our dispeller was having trouble seeing where the person was in relation to the mob.
add icons + arrows for the ability: Pact of the Darkfallen
add icon + arrow (like the fire debuff from Lord Jaraxxus) for the ability: Swarming Shadows
thanks for the great addon!
Update on this:
We got the "real" data from the game files (thanks to MMOChampion). This data shows that our values were only 0.0005% percent off while your data is 5-10% wrong.
You can find the exact values for all instances in our forum: http://www.deadlybossmods.com/phpbb3/viewtopic.php?f=3&t=2258&start=30
I would still love to hear why our data should be "totally inaccurate" or calculated "with the wrong method" :)
I blinked around with your map calc mod and it gave inconsistent results in Ironforge. Sometimes it would be (790, 527), the right dimensions, and other times it would be completely off.
You must not change the direction you are looking at after executing the slash command (which shouldn't be necessary but there seems to be a bug). You should also not blink directly to the west/east/north/south as the precision of GetPlayerMapPosition() might cause problems there. I get consistent results on all zones.
Also, I suppose the game files don't lie.
How do you know the game files represent game yards of a map? I trust the fixed range checks (IsSpellInRange and action bar range check) over game data, since it's more dependent on in-game mechanics. I've already validated all of mine to work at 40 yards. Can you validate that blink is 20 yards using your data?
That's why we did multiple measurements in all instances :)
Yes, probably. The mod also tries to update the facing when you look around after entering the slash command but this doesn't work at all. GetPlayerFacing() shows a really strange behaviour.
It is just very very likely since these files contain the exact same values as our calculated values. What else should be in these files? Such an entry contains the instance ID, the dungeon level and the size.
/dxerb 7200 Trash Respawn
This quickly gets confusing when clearing multiple wings, And I was wondering if there is anyway to get the name of the targetted mob in the name of the Raid Bar?
I tried
/dxerb 7200 %t Respawns
But it simply took the code as text and I ended up with that as the bars name, rather than the actual mobs name.
You'll have to manually enter it in for now. I could add the %t feature. Make a ticket on the project page so I don't forget about it
I did some testing, and damaging abilities by NPCs do not use yards from map sizes. It appears that CheckInteractDistance, Blink, and such do use map size data.
Map data for Crystalsong Forest is (~1814, ~2722), and the measurement from IsSpellInRange is (~1690, ~2535). Unbound Seer's in Crystalsong Forest have this ability 40 yd ability http://www.wowhead.com/?spell=38204. I maxed ranged the mob, and had someone stand directly on top of the mob for measuring. It started running towards me at ~42 yards using map data, and ~40 yards using IsSpellInRange data.
It seems that it's very very likely you want to use IsSpellInRange data for boss abilities :).
I know there are slash commands but I cant start them out of lua script...
I want to create something like: tank used shieldwall even If I'm not the tank
edit: got the local part working with this:
but I can't find an API for the send to raid function
That was probably me asking for a port of the DBM Spelltimers module.
I'd like this too. And I'd like to point out that having a module, something optional that is downloaded separately like the DBM SpellTimers module is, would mean that those who don't want or need this don't have to have it. Yes, there are things out there like Raid Cooldowns, which are either buggy as hell or don't support everything, or DO support everything and give you a zillion bars that you don't need. As the person above posted a few posts ago, it is clearly possible. I'd be happy to do testing or anything that I could do to help, but I'm afraid my lua coding isn't any where close to being about to create such a module myself.
Here's a link to DBM SpellTimers.
I like oRA3, you can choose what cooldowns to show
"[The proximity window] relies on knowing the dimensions, in game yards, of each map. If the dimension of a map is not known, it will default to the closest range rounded up to 10, 11, or 18 game yards."
I guess I'm misreading it, since I thought this meant (before even reading this thread) that if the coordinates aren't available, you should still get a crude proximity estimation? Like in Lana'thel's room?
add raid icon for Necrotic Plague
add "necrotic plague on self" in the bars tab