Such a 'feature' is exactly what I do not want. I do not want that other players can see if BattlegroundTargets is running or not. Only Blizzard should know this. Because of that BattlegroundTargets does not use SendAddonMessage() or similar functions to communicate with other players.
Thanks Dridzt. GetCVar("realmList") is exactly what I'm looking for.
A small description what I want to do:
I want to map the in-game realm name to a region (or battlegroup) from the WoW Community Web API 'Region Host List':
(http://blizzard.github.com/api-wow-docs/WARNING: github-documentup.com-redirect-script-shit)
Region - Host - Available Locales
US - us.battle.net - en_US / es_MX / pt_BR
Europe - eu.battle.net - en_GB / es_ES / fr_FR / ru_RU / de_DE / pt_PT / it_IT
Korea - kr.battle.net - ko_KR
Taiwan - tw.battle.net - zh_TW
China - [url]www.battlenet.com.cn[/url] - zh_CN
Because I can not test all 5 regions myself, I have some questions:
1) Is the return value for a region ALWAYS the same on all servers from that region?
example: ru_RU <-> es_ES or en_US <-> pt_BR
Does anybody know this?
2) What is the return value for the other regions? Start they ALWAYS with eu, us, kr, tw, cn?
China seems to be different because the web-API host is www.battlenet.com.cn, the realmList can have a similar scheme. (well, if all other starts with eu, us, kr or tw I can get the chinese one if 1) is true)
Does anybody know this?
in-game:
/script print( GetCVar("realmList") )
or check _INSTALL_DIR_\World of Warcraft\Data\_LOCALE_\realmlist.wtf for 'realmList'.
Anyway, I have a solution in mind that is not related on the region/battlegroup data.
@Dohram: It seems that this error is related to the battleground score update request calls, notably the function RequestBattlefieldScoreData() (and SetBattlefieldScoreFaction()) in combination with the event UPDATE_BATTLEFIELD_SCORE.
I compared the code from REFlex 0.9.8, 0.9.8.1 and 0.9.8.2. The code that is responsible for the bg-score-data update has not changed. Same is true for BattlegroundTargets since version 50001-1. I don't know why you get this error now. Btw: REFlex 0.9.8.2 produced many errors when I tried to access the options. I stopped further investigation at that point.
I don't know why BattlegroundTargets is listed in this error message.
@Twopro:
1) To track the orb you need to check this bg events: CHAT_MSG_BG_SYSTEM_HORDE, CHAT_MSG_BG_SYSTEM_ALLIANCE and CHAT_MSG_RAID_BOSS_EMOTE. If you want the different values for the debuff you need to use UnitDebuff()/UnitAura(). Because the strings from this events are localized you need consider that too.
2) I do not understand what you try to achieve with the assist macro part. Think you need to describe it a bit better.
@XhiyeonX:
There is one value in BattlegroundTargets that is responsible for what faction data is used (GetBattlefieldScore()). This is the variable oppositeFactionBG. This variable can have the value 0 or 1 (or 2 for neutral pandaren, but this doesn't matter here).
The default faction is checked at PLAYER_LOGIN (or NEUTRAL_FACTION_SELECT_RESULT) with UnitFactionGroup("player"). The faction that is not yours is the enemy faction. Exeption: If you are in a IsRatedBattleground() the faction is checked again to check if it's a same-faction bg with GetBattlefieldArenaFaction().
Possible problems:
1) Your character is under the influence of something (quest, potion, ...) that changes your faction in a way the client returns a different value than usual for the above mentioned 'faction'-functions.
2) The functions IsRatedBattleground() and GetBattlefieldArenaFaction() return wrong values because I call them in the wrong moment (maybe I need to wait for another event, dontknow).
Please give some more information. Please post a bug report or at least the line number that produce that error. Which BattlegroundTargets version do you use?
0
I tried the following: (but no answer since 26 March 2013, except auto responds)
[email]support@blizzard.com[/email] (auto respond)
[email]info-en@blizzard.com[/email]
[email]wowgmfeedback-us@blizzard.com[/email]
[email]WoWUI@blizzard.com[/email] (auto respond)
Maybe [email]sitelicense@blizzard.com[/email] or [email]tours@blizzard.com[/email] ? don't know...
Any idea? Thanks.
0
0
BattlegroundTargets-50200-2: http://www.wowace.com/addons/battlegroundtargets/files/
0
not tested in rBG/WarGame. if you find a bug please post here, thanks.
0
If there is a bug, please post again, thanks.
0
0
@comonier: I have no plan to add such feature.
@sebipl: Ughh a bug....
EDIT:
Fixed in BattlegroundTargets-50200-1 http://www.wowace.com/addons/battlegroundtargets/files/
0
A small description what I want to do:
I want to map the in-game realm name to a region (or battlegroup) from the WoW Community Web API 'Region Host List':
(http://blizzard.github.com/api-wow-docs/ WARNING: github-documentup.com-redirect-script-shit)
Because I can not test all 5 regions myself, I have some questions:
1) Is the return value for a region ALWAYS the same on all servers from that region?
example: ru_RU <-> es_ES or en_US <-> pt_BR
Does anybody know this?
2) What is the return value for the other regions? Start they ALWAYS with eu, us, kr, tw, cn?
China seems to be different because the web-API host is www.battlenet.com.cn, the realmList can have a similar scheme. (well, if all other starts with eu, us, kr or tw I can get the chinese one if 1) is true)
Does anybody know this?
in-game:
or check _INSTALL_DIR_\World of Warcraft\Data\_LOCALE_\realmlist.wtf for 'realmList'.
Anyway, I have a solution in mind that is not related on the region/battlegroup data.
Thanks.
0
0
I compared the code from REFlex 0.9.8, 0.9.8.1 and 0.9.8.2. The code that is responsible for the bg-score-data update has not changed. Same is true for BattlegroundTargets since version 50001-1. I don't know why you get this error now. Btw: REFlex 0.9.8.2 produced many errors when I tried to access the options. I stopped further investigation at that point.
I don't know why BattlegroundTargets is listed in this error message.
BattlegroundTargets-50100-2: http://www.wowace.com/addons/battlegroundtargets/files/
0
I have no plan to add such feature.
@Twopro:
1) To track the orb you need to check this bg events: CHAT_MSG_BG_SYSTEM_HORDE, CHAT_MSG_BG_SYSTEM_ALLIANCE and CHAT_MSG_RAID_BOSS_EMOTE. If you want the different values for the debuff you need to use UnitDebuff()/UnitAura(). Because the strings from this events are localized you need consider that too.
2) I do not understand what you try to achieve with the assist macro part. Think you need to describe it a bit better.
@XhiyeonX:
There is one value in BattlegroundTargets that is responsible for what faction data is used (GetBattlefieldScore()). This is the variable oppositeFactionBG. This variable can have the value 0 or 1 (or 2 for neutral pandaren, but this doesn't matter here).
The default faction is checked at PLAYER_LOGIN (or NEUTRAL_FACTION_SELECT_RESULT) with UnitFactionGroup("player"). The faction that is not yours is the enemy faction. Exeption: If you are in a IsRatedBattleground() the faction is checked again to check if it's a same-faction bg with GetBattlefieldArenaFaction().
Possible problems:
1) Your character is under the influence of something (quest, potion, ...) that changes your faction in a way the client returns a different value than usual for the above mentioned 'faction'-functions.
2) The functions IsRatedBattleground() and GetBattlefieldArenaFaction() return wrong values because I call them in the wrong moment (maybe I need to wait for another event, dontknow).
0
GridConfigIcons: http://www.wowace.com/addons/grid-config-icons/files/
GridIndicatorCornerIcons: http://www.wowace.com/addons/grid-indicator-corner-icons/files/
GridIndicatorCornerPlus: http://www.wowace.com/addons/grid-indicator-corner-plus/files/
GridIndicatorSideIcons: http://www.wowace.com/addons/grid-indicator-side-icons/files/
GridIndicatorSidePlus: http://www.wowace.com/addons/grid-indicator-side-plus/files/
GridIndicatorText3: http://www.wowace.com/addons/grid-indicator-text3/files/
0
0
The bug in your first message is fixed (r173).
The second message is not BattlegroundTargets.
BattlegroundTargets-50100-1: http://www.wowace.com/addons/battlegroundtargets/files/
0
Thanks.
EDIT:
I found the bug. what a stupid nil check bug ... drycode fail ;) ...
http://www.wowace.com/addons/battlegroundtargets/files/
Please post again if there is still an error.