Перейти к содержанию

Дайджесты за январь-февраль

Обновления гайдов и аддонов

Январь Февраль

Мониторинг серверов и редактор аддонов

Представляем вам две легенды. То, о чем можно было только мечтать, стало реальностью.

Мониторинг серверов Редактор аддонов

Подсказки из игры на вашем сайте

Теперь вы можете отображать сведения о внутриигровых элементах простым наведением курсора мыши.

Подробнее

Апдейтер аддонов

Представляем вам программу для автообновления аддонов и делимся подробностями.

Подробнее Скачать


Гость dcrm

Рекомендуемые сообщения

neFAST, it really WORKS in your game version. But it works little bit differently (because of limitations in API - there are only few functions working with chat). Unlike ChatBar for WoW, where chat editbox opens when you click the buttons, in ChatBarAO nothing happens at the moment when you press the button. Here is how it works:

1) Press [enter] to open the chat editbox.

2) Click the desired channel button on ChatBarAO.

3) Start typing anything.

Channel is actually switched on step 2), but you don't see it until step 3). Only when you start typing, the whole your typed text changes its color to according channel color, and you see, that it worked.

Ссылка на комментарий
Поделиться на другие сайты

Я ГМ, и у меня видны и кнопка Гильд-чата, и кнопка Офицер-чата.

Кто-нибудь ещё может это проверить, чтобы подтвердить или опровергнуть?

Ссылка на комментарий
Поделиться на другие сайты

Ok it works, however button are not correctly placed.

If you resize the chat bar, should the buttons follow automatically?

Ссылка на комментарий
Поделиться на другие сайты

Странно, убрал аддон, переустановил, проверил, работает))) Спс, что не поверили)))А то не переустанавливал бы)))

Ссылка на комментарий
Поделиться на другие сайты

Ккнопка Гильд-чата, и кнопка Офицер-чата периодически пропадают.

Первый раз заметил когда у меня "порвался" инет, зашел в игру, а кнопок нет. До этого были.

Второй раз пропали когда попал в чистилище.

Играю в оконном режиме.

Ссылка на комментарий
Поделиться на другие сайты

ОБНОВЛЕНИЕ R9:

-- Ещё одно исправление для АО 1.1.03. Панель передвинута на 24 пикселя вправо, и теперь кнопка "Сказать" снова доступна. (Имхо, в 1.1.03 разработчики что-то поломали в интерфейсе, и первая кнопка ChatBarAO была перекрыта чем-то невидимым, оттого и не работала).

P.S. У меня в версии АО 1.1.03 началась такая же фигня на панели заклинаний у воина. Первые 6 иконок (1-6) сверху наполовину закрыты чем-то невидимым, поэтому, чтобы они срабатывали, нужно жать на их нижнюю часть :( Это у всех так?

Ссылка на комментарий
Поделиться на другие сайты

По идее, проверка на доступность гильд-чата и офицер-чата происходит:

1) при старте аддона,

2) при каждом изменении состава гильдии,

3) при каждом изменении рангов в гильдии.

То есть, именно в эти моменты кнопки могут появляться или пропадать, но никак не в момент попадания в Чистилище.

Кроме того, состояние этих кнопок НЕ сохраняется между игровыми сессиями. Даже если бы что-то случилось, то простой перезапуск игры должен был бы решить проблему.

Ссылка на комментарий
Поделиться на другие сайты

Заметил то же. Даже вроде с 1.02 или с какого то из обновлений после 1.02

Ссылка на комментарий
Поделиться на другие сайты

Я думаю это связано с некорректным завершением игровой сессии.

К примеру если войти на персонажа когда он еще в мире(в игре) после такого некорректного завершения (обрыв интернета например) то стандартный рейдовый интерфейс не отображается, нету рейд чата.

Ссылка на комментарий
Поделиться на другие сайты

Возможно с чистилищем я что-то нвпутал :-).

----Даже если бы что-то случилось, то простой перезапуск игры должен был бы решить проблему.

Мне удобнее перезапустить аддон внутри игры.

Ссылка на комментарий
Поделиться на другие сайты

some pixels higher pls^^

Edit: the problem was, that i had made my chat a bit higher than normal

btw: since what version is this (chat position and size) saved?^^

chatbarao_eu.png

Ссылка на комментарий
Поделиться на другие сайты

No, this is not EU/US compatibility problem, this problem exists in all AO versions. You have this problem, because you have your chat window in non-standard position (you have MOVED your chat windew upper). Sorry, it is impossible to track the current chat window position via API. To fix this, you can move your chat window back to its default position.

P.S. Yes, there is "ScriptLocal_chat" section in User.cfg, but all "ScriptLocal_*" sections are unreachable for user addons... I'm not sure, maybe it is worth to add Drag&Drop to this panel, but then most people (99% users never change the position of their chat window) will have an accedential drag problems. Not sure. But when this panel will be redesighed (I'm planning to make it smaller, and give it a look like ChatBar for WoW), of course it will be drggable.

Ссылка на комментарий
Поделиться на другие сайты

ОБНОВЛЕНИЕ R10 / UPDATE R10:

RU:

-- Отремонтировано для АО 1.1.04. Кнопки передвинуты на 24 пикселя ниже (Нивал издевается над нами). Повышен приотитет главной формы в версиях АО 1.1.04+.

-- Для обратной совместимости с EU/US версиями игры, добавлены корректировки координат и приоритета панели кнопок, чтобы панель находилась в правильных местах в каждой из предыдущих версий (1.1.00, 1.1.01, 1.1.02, 1.1.03). Например, в современной иностранной АО 1.1.00, панель отображается левее, т.к. у них ещё нет кнопок эмоций.

EN:

-- Fixed for AO 1.1.04. Buttons are moved 24 pixels lower, because Chat window moved 24 pixels down in AO 1.1.04 (Nival is mocking at us). MainForm priority is now higher in AO 1.1.04+.

-- For backward compatibility with EU/US versions, I have added a multiple position and priority corrections, for button bar to appear in correct position in every previous version of the game (1.1.00, 1.1.01, 1.1.02, 1.1.03). For example, in current EU/US AO 1.1.00, button bar is now moved to left side, because they don't have an Emotion buttons yet in their game version.

Ссылка на комментарий
Поделиться на другие сайты

Quote:
Yes, there is "ScriptLocal_chat" section in User.cfg, but all "ScriptLocal_*" sections are unreachable for user addons


Write this

Code:
local test=mission.GetAvatarConfigSection("chat") 
LogTable(test ["dnd"] )


in a test addon and you will see, that it is possible to get the chat position.
(ok, it is the position of the chat at the beginning of the chat session. You will not notice, if the user change the position of the chat, but after every restart the buttons would be on the right position, if you use the date from user.cfg)

Edit: "dnd" the "dnd"-part only exist in user.cfg-conficsection-"chat" only, if you have moved the chat at least once. (it is not there on a clean character).

valus of a clean account in eu version:

Code:
   alignX = 0
         alignY = 1
         highPosX = 50
         highPosY = 140
         posX = 10
         posY = 100
         sizeX = 560
         sizeY = 440
         sizingX = 0
         sizingY = 0


Code:
function GetXDifference()
local chatconfig=mission.GetAvatarConfigSection("chat") 
if chatconfig ["dnd"]  then
    local chatpositions=chatconfig ["dnd"] 
    return (chatpositions ["posX"] -10)
else return 0 end
end

function GetYDifference()
local chatconfig=mission.GetAvatarConfigSection("chat") 
if chatconfig ["dnd"]  then
    local chatpositions=chatconfig ["dnd"] 
    return (chatpositions ["highPosY"] -140+chatpositions ["sizeY"] -440)
else return 0 end
end


the fix is working in eu version, but I think you must do little changes for your current game version, because of the different possition of the chat in version 1.1.04+ from 1.1.03-

BTW: you have userMods.GetAvatarConfigSection

Ссылка на комментарий
Поделиться на другие сайты

Code:
if mission.GetAvatarConfigSection then
    if not avatar.GetEmotes then Global( "userMods", {} ) end
    userMods.GetAvatarConfigSection=mission.GetAvatarConfigSection
end

function GetXDifference()
local chatconfig=userMods.GetAvatarConfigSection("chat") 
if chatconfig ["dnd"]  then
    local chatpositions=chatconfig ["dnd"] 
    return (chatpositions ["posX"] -10)
else return 0 end
end

function GetYDifference()
local chatconfig=userMods.GetAvatarConfigSection("chat") 
if chatconfig ["dnd"]  then
    local chatpositions=chatconfig ["dnd"] 
    return ((chatpositions ["highPosY"] -164+chatpositions ["sizeY"] -440) and social.GetFriendInfo) or chatpositions ["highPosY"] -140+chatpositions ["sizeY"] -440
else return 0 end
end

...
Code:
function Init()
...
local p = WXMainPanel:GetPlacementPlain()
...
p.posX=p.posX+math.floor(GetXDifference()+0.5)
p.highPosY=p.highPosY+math.floor(GetYDifference()+0.5)
WXMainPanel:SetPlacementPlain( p )
...


Ссылка на комментарий
Поделиться на другие сайты

ОБНОВЛЕНИЕ R11 / UPDATE R11:

RU:

-- В версии АО 1.1.00, если позиция/размер окна Чата отличаются от стандартных (т.е. пользователь двигал окно Чата), то при старте игры, ChatBarAO находит положение окна Чата, и прикрепляется к нему. Спасибо Carnifex за код.

P.S. Уж извините, но начиная с версии АО 1.1.01, технически невозможно получить координаты окна Чата, так что этот код работает только в АО 1.1.00.

EN:

-- In AO 1.1.00 (which is current EU/US version), if Chat window resides in non-standard position/size (i.e. user have moved his Chat window), then when you enter the game, ChatBarAO finds the position of the Chat window, and attaches to it. Thanks to Carnifex for code.

P.S. Sorry, but starting form next major patch (AO 1.1.01) it will be technically impossible to get the Chat window position, so this code works only in AO 1.1.00.

Ссылка на комментарий
Поделиться на другие сайты

This trick works only in AO 1.1.00, and it will stop working in the next major patch (AO 1.1.01). Because only mission.GetAvatarConfigSection() have access to those User.cfg sections which are created by the game itself. And in AO 1.1.01 it will be replaced with its stripped-down version, userMods.GetAvatarConfigSection(), which can access ONLY those User.cfg sections which are created by addons.

But anyway, thanks for the code, I have made some corrections (because it works only in AO 1.1.00, and because my char had an empty "dnd" section), and added it to R11 update :)

Ссылка на комментарий
Поделиться на другие сайты

I can't seem to get this to work on 1.1.0.63 (EU, allods) I have disabled all other addon's. any tips? Thx for you're great addon btw.

Ссылка на комментарий
Поделиться на другие сайты

Are you sure, you have updated ChatBarAO to the current version of the game?

After every login the addon find the correct position of the chat (tested on german eu-client).

Ссылка на комментарий
Поделиться на другие сайты

Well, I downloaded the latest verion. (here) And try'd like described but nothing happened, the buttons show up correct just above chat. But they don't do anything.

1) /G texttext

2) click button G

3) nothing happen :D

Ссылка на комментарий
Поделиться на другие сайты

Oh, it seems as if some buttons are working and some other buttons not.

working:

say

zone

world

party

guild

officier

raid

not working:

yellzone

tell (whisper)

reply

raidwarning

(tested on german eu-server)

but the reaction of the button is running --> mission.SetChatInputType("yell") does not work in german eu-version --> gm's are to silly to make a good translation...

but mission.SetChatInputType("shout") is working o.O (it's a problem of game localisation...)

Ссылка на комментарий
Поделиться на другие сайты

you can get the correct names with:

Code:
local input=mission.GetChatInput()

if input.cmdName then common.LogInfo("",input.cmdName) end

eu:german

yell=shout

tell=whisper

mystic=telepathy

raidwarning (what is this? excist this in our version? o.O)

...

eu:english

...

eu:french

...

us:english

...

BTW: A question to my addon raidfix (as you know from the spamprotect thread, the german raidchannel is broken: you can write an message with /raid text and then after pressing enter and writing a message without /raid (or /ra) you get an error, that the command /schlachtzug does not excist (thats true, because there is only /raid --> silly translation mistake of our gm's))

I wrote this lines to fix it but it does not work:

Code:
function OnEventSecondTimer()

local input=mission.GetChatInput()

if input.cmdName and common.CompareWString(common.GetAddonRelatedText("raid"),input.cmdName)==0 then

mission.SetChatInputType("raid")

common.LogInfo("","fixed")

end

end

function Init()

common.RegisterEventHandler(OnEventSecondTimer,"EVENT_SECOND_TIMER")

end

Init()

But clicking every time at the R Button (in ChatBarAO) is working. But this button only call mission.SetChatInputType("raid") too. Where is now the different, so that ChatBarAO work and my addon not. (you can find "fixed" in the log --> mission.SetChatInputType("raid") is also called by my addon)

Ссылка на комментарий
Поделиться на другие сайты

Fix (look at the attachment):

-added support of multilingual ChatInputTypeNames (different localisation of them)

-fix for German (added german localisation of the ChatInputTypeNames)

-I need data from the english and french server, to fix the localisation of the ChatInputTypeNames on these server too. Pls help me. (look at second post)

Current bugs for german translation:

-whisper/tell is broken (with the right translation it is shown in the whisper-specific color, but the message do not reach the recipient

-reply/reset is broken

Ссылка на комментарий
Поделиться на другие сайты

ВНИМАНИЕ!
Обязательна информация из \Personal\Logs\mods.txt для диагностики ошибки.
Иначе вам не помочь.
В игре включите в Меню → Интерфейс → Общие настройки → Запись ошибок пользовательских дополнений. Затем запустите аддон в игре.
Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Восстановить форматирование

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

×
×
  • Создать...

Важная информация

Пользуясь сайтом, вы принимаете Условия использования