night_dragon_on 5,601 #359372 Posted October 15, 2016 (edited) Hi, @ktulho @night_dragon_on Can you add localization for these text in damagelog.xc ? {{l10n:?????}} Done. Edited October 15, 2016 by night_dragon_on Quote Share this post Link to post Short link Share on other sites
belyavsky 3 #359374 Posted October 15, 2016 Done. в англ языке не сек а sec должно быть я думаю 1 Quote Share this post Link to post Short link Share on other sites
pioner28rus 15 #359375 Posted October 15, 2016 ktulho правильно ли я понимаю, что в xvm попала версия без опции направления формирования лога? получится добавить в следующих версиях? Quote Share this post Link to post Short link Share on other sites
ger Gauf 0 #359380 Posted October 15, 2016 Да, добавлен ноль. О как ! Пропустил... СПС большое ! Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #359381 Posted October 15, 2016 О как ! Пропустил... СПС большое ! Сделано в ночниках. Quote Share this post Link to post Short link Share on other sites
ger Gauf 0 #359387 Posted October 15, 2016 Народ , а на билде 6625 Дамаг лог у всех работает ? Переустановил , сделал все измененения с ченджлога... Лог урона пропал... Ни у кого проблем нет ? Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #359388 Posted October 15, 2016 (edited) Народ , а на билде 6625 Дамаг лог у всех работает ? Переустановил , сделал все измененения с ченджлога... Лог урона пропал... Ни у кого проблем нет ? Я нашел в чем проблема таится, сейчас распишу. Edited October 15, 2016 by night_dragon_on Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #359389 Posted October 15, 2016 Народ , а на билде 6625 Дамаг лог у всех работает ? Переустановил , сделал все измененения с ченджлога... Лог урона пропал... Ни у кого проблем нет ? Прикрепите конфиг. Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #359390 Posted October 15, 2016 (edited) Прикрепите конфиг. Лог урона пропал... Ни у кого проблем нет Короче у всех пользователей с кастомными конфигами лог урона работать не будет если у них в конфиге нигде не прописан макрос {{clanicon}} 'В логе получаем:' 2016-10-15 12:10:06.302: INFO: 2016-10-15 12:10:06: [ERROR] ./res_mods/mods//xfw/python\xfw\events.pyc 2016-10-15 12:10:06.302: ERROR: Traceback (most recent call last): 2016-10-15 12:10:06.302: ERROR: File "mods/xfw/python/xfw/events.py", line 55, in __event_handler 2016-10-15 12:10:06.303: ERROR: File "mods/xfw/python/xfw/events.py", line 24, in fire 2016-10-15 12:10:06.303: ERROR: File "G:\Games\WOT\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 366, in showDamageFromShot 2016-10-15 12:10:06.303: ERROR: data.showDamageFromShot(self, attackerID, points, effectsIndex, damageFactor) 2016-10-15 12:10:06.303: ERROR: File "G:\Games\WOT\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 311, in showDamageFromShot 2016-10-15 12:10:06.303: ERROR: self.updateMacros() 2016-10-15 12:10:06.303: ERROR: File "G:\Games\WOT\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 227, in updateMacros 2016-10-15 12:10:06.303: ERROR: self.data['clanicon'] = statXVM.clanicon 2016-10-15 12:10:06.303: ERROR: AttributeError: clanicon 2016-10-15 12:10:06.303: INFO: ============================= Словить можно и на дефолтном конфиге, если закомментировать все поля где данный макрос используется, т.е. в файлах: + battleLoading.xc + battleLoadingTips.xc + playersPanel.xc + statisticForm.xc Архив для проверки, накатить поверх ночника (6625): default.zip Реплей: E-100 Такое поведения началось с билда (6608), коммит: aab23a5 Edited October 15, 2016 by night_dragon_on Quote Share this post Link to post Short link Share on other sites
ger Gauf 0 #359391 Posted October 15, 2016 Прикрепите конфиг. Дамаг лог.rar Лога ХВМ нет пока, переустановить решил всё. Короче у всех пользователей с кастомными конфигами лог урона работать не будет если у них в конфиге нигде не прописан макрос {{clanicon}} 'В логе получаем:' 2016-10-15 12:10:06.302: INFO: 2016-10-15 12:10:06: [ERROR] ./res_mods/mods//xfw/python\xfw\events.pyc 2016-10-15 12:10:06.302: ERROR: Traceback (most recent call last): 2016-10-15 12:10:06.302: ERROR: File "mods/xfw/python/xfw/events.py", line 55, in __event_handler 2016-10-15 12:10:06.303: ERROR: File "mods/xfw/python/xfw/events.py", line 24, in fire 2016-10-15 12:10:06.303: ERROR: File "G:\Games\WOT\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 366, in showDamageFromShot 2016-10-15 12:10:06.303: ERROR: data.showDamageFromShot(self, attackerID, points, effectsIndex, damageFactor) 2016-10-15 12:10:06.303: ERROR: File "G:\Games\WOT\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 311, in showDamageFromShot 2016-10-15 12:10:06.303: ERROR: self.updateMacros() 2016-10-15 12:10:06.303: ERROR: File "G:\Games\WOT\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 227, in updateMacros 2016-10-15 12:10:06.303: ERROR: self.data['clanicon'] = statXVM.clanicon 2016-10-15 12:10:06.303: ERROR: AttributeError: clanicon 2016-10-15 12:10:06.303: INFO: ============================= Словить можно и на дефолтном конфиге, если закомментировать все поля где данный макрос используется, т.е. в файлах: + battleLoading.xc + battleLoadingTips.xc + playersPanel.xc + statisticForm.xc И как быть ,если он мне нафиг не нужен этот кланайкон ? Не вижу просто ни малейшего смысла в этих картинках... Quote Share this post Link to post Short link Share on other sites
panteror 54 #359393 Posted October 15, 2016 Done.thanks Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #359397 Posted October 15, 2016 Короче у всех пользователей с кастомными конфигами лог урона работать не будет если у них в конфиге нигде не прописан макрос {{clanicon}} 'В логе получаем:' 2016-10-15 12:10:06.302: INFO: 2016-10-15 12:10:06: [ERROR] ./res_mods/mods//xfw/python\xfw\events.pyc 2016-10-15 12:10:06.302: ERROR: Traceback (most recent call last): 2016-10-15 12:10:06.302: ERROR: File "mods/xfw/python/xfw/events.py", line 55, in __event_handler 2016-10-15 12:10:06.303: ERROR: File "mods/xfw/python/xfw/events.py", line 24, in fire 2016-10-15 12:10:06.303: ERROR: File "G:\Games\WOT\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 366, in showDamageFromShot 2016-10-15 12:10:06.303: ERROR: data.showDamageFromShot(self, attackerID, points, effectsIndex, damageFactor) 2016-10-15 12:10:06.303: ERROR: File "G:\Games\WOT\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 311, in showDamageFromShot 2016-10-15 12:10:06.303: ERROR: self.updateMacros() 2016-10-15 12:10:06.303: ERROR: File "G:\Games\WOT\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 227, in updateMacros 2016-10-15 12:10:06.303: ERROR: self.data['clanicon'] = statXVM.clanicon 2016-10-15 12:10:06.303: ERROR: AttributeError: clanicon 2016-10-15 12:10:06.303: INFO: ============================= Словить можно и на дефолтном конфиге, если закомментировать все поля где данный макрос используется, т.е. в файлах: + battleLoading.xc + battleLoadingTips.xc + playersPanel.xc + statisticForm.xc Архив для проверки, накатить поверх ночника (6625): default.zip Такое поведения началось с билда (6608), коммит: aab23a5 Не совсем верно. Работать не будет если играете с ботами или не активирована статистика. Quote Share this post Link to post Short link Share on other sites
sirmax 5,499 #359398 Posted October 15, 2016 А как это связано? А, понял. Надо в dict использовать get() с дефолтным значением, чтобы подобных ошибок не было. Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #359399 Posted October 15, 2016 (edited) Не совсем верно. Работать не будет если играете с ботами или не активирована статистика. Реплей без ботов прикрепленный в сообщении, статистика активна. В предыдущей теме репортили, исключив все что там обсуждали начал копать дальше. Edited October 15, 2016 by night_dragon_on Quote Share this post Link to post Short link Share on other sites
Szulson 15 #359400 Posted October 15, 2016 @ktulho, http://www.koreanrandom.com/forum/topic/35169-damagelog-%D1%81%D1%80%D0%B5%D0%B4%D1%81%D1%82%D0%B2%D0%B0%D0%BC%D0%B8-xvm/page-13?do=findComment&comment=359214 Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #359401 Posted October 15, 2016 Реплей без ботов прикрепленный в сообщении, статистика активна. В предыдущей теме репортили, исключив все что там обсуждали начал копать дальше. А на других реплееях? Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #359403 Posted October 15, 2016 (edited) А на других реплееях? Аналогично, сам воспроизведи на клиенте, файлы с закомментированными полями дефолтного конфига в сообщении прикрепил (для теста). Edited October 15, 2016 by night_dragon_on Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #359407 Posted October 15, 2016 (edited) Я пока не дома. @night_dragon_on Перечитал ещё раз твое сообщение и лог. Теперь понял о чем ты. А, понял. Надо в dict использовать get() с дефолтным значением, чтобы подобных ошибок не было. , а есть словарь в котором хранятся значения всех макросов? Сейчас значение clanicon беру отсюда: from xvm_main.python.stats import _stat statXVM = _stat.players.get(self.data['attackerID']) self.data['clanicon'] = statXVM.clanicon Edited October 15, 2016 by ktulho Quote Share this post Link to post Short link Share on other sites
tunut 203 #359412 Posted October 15, 2016 (edited) убрал отовсюду clanicon, даже из скрипта теперь (из режима ботов, дальше не заходил) 2016-10-15 13:06:51.067: INFO: ============================= 2016-10-15 13:06:51.067: INFO: 2016-10-15 13:06:51: [ERROR] ./res_mods/mods//xfw/python\xfw\events.pyc 2016-10-15 13:06:51.067: ERROR: Traceback (most recent call last): 2016-10-15 13:06:51.067: ERROR: File "mods/xfw/python/xfw/events.py", line 55, in __event_handler 2016-10-15 13:06:51.068: ERROR: File "mods/xfw/python/xfw/events.py", line 24, in fire 2016-10-15 13:06:51.068: ERROR: File "G:\World_of_Tanks\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 366, in showDamageFromShot 2016-10-15 13:06:51.068: ERROR: data.showDamageFromShot(self, attackerID, points, effectsIndex, damageFactor) 2016-10-15 13:06:51.068: ERROR: File "G:\World_of_Tanks\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 311, in showDamageFromShot 2016-10-15 13:06:51.068: ERROR: self.updateMacros() 2016-10-15 13:06:51.068: ERROR: File "G:\World_of_Tanks\res_mods\mods/../configs/xvm/py_macro\xvm\damageLog.py", line 228, in updateMacros 2016-10-15 13:06:51.068: ERROR: self.data['squadnum'] = statXVM.squadnum if statXVM.squadnum > 0 else '' 2016-10-15 13:06:51.068: ERROR: AttributeError: 'NoneType' object has no attribute 'squadnum' Edited October 15, 2016 by tunut Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #359414 Posted October 15, 2016 @night_dragon_on,@tunut, @ger Gauf, проверьте с этим damageLog.rar 2 Quote Share this post Link to post Short link Share on other sites