Jump to content
Korean Random
ktulho

[Лог нанесенного урона / Hitlog] V2 (py_macro)

Recommended Posts

17 минут назад, Pensioner сказал:

перестал работать ру-хитлог

проверьте подключение:

 В файл battleLabels.xc добавить:

${ "battleLabelsTemplates.xc":"def.py_hitLog_Background"}, 
${ "battleLabelsTemplates.xc":"def.py_hitLog"},

 

В файле @xvm.xc нужно добавить ссылку на файл py_hitLog.xc:

"py_hitLog": ${"py_hitLog.xc":"py_hitLog"},

 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
10 минут назад, ktulho сказал:

@Pensioner проверяйте конфиг или прикрепите его сюда.

Ясно дело, сам накосячил, старый кинул работает, буду искать что "обновил" :).

7 минут назад, HEKPOMAHT сказал:

 

 

В файле @xvm.xc нужно добавить ссылку на файл py_hitLog.xc:


"py_hitLog": ${"py_hitLog.xc":"py_hitLog"},

 

 

Точно обновил @xvm.xc добавил нижние что ещё использую, а это стояло в середине рядом со старым хит логом, вот его и не добавил.

Share this post


Link to post

Short link
Share on other sites

Исправил работу макросов {{costShell}} и {{c:costShell}}. Обновил в шапке скрипт hitLog.py.

  • Upvote 5

Share this post


Link to post

Short link
Share on other sites

Лог урона у меня выключен в Линии Фронта.

Вот ошибки в логе:

2018-05-20 14:05:53.184: INFO: =============================
2018-05-20 14:05:53.184: INFO: 2018-05-20 14:05:53: [ERROR] mods/xfw/python/xfw/events.pyc
2018-05-20 14:05:53.184: ERROR: Traceback (most recent call last):
2018-05-20 14:05:53.184: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2018-05-20 14:05:53.184: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2018-05-20 14:05:53.185: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 809, in _Vehicle_onHealthChanged
2018-05-20 14:05:53.185: ERROR:     _data.onHealthChanged(self, newHealth, attackerID, attackReasonID)
2018-05-20 14:05:53.185: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 447, in onHealthChanged
2018-05-20 14:05:53.185: ERROR:     self.updateData()
2018-05-20 14:05:53.185: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 423, in updateData
2018-05-20 14:05:53.185: ERROR:     self.updateLabels()
2018-05-20 14:05:53.185: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 306, in updateLabels
2018-05-20 14:05:53.185: ERROR:     _altLog.output()
2018-05-20 14:05:53.185: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 745, in output
2018-05-20 14:05:53.185: ERROR:     self.groupHitsPlayer()
2018-05-20 14:05:53.185: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 645, in groupHitsPlayer
2018-05-20 14:05:53.185: ERROR:     self.updatePlayers(vehID)
2018-05-20 14:05:53.185: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 598, in updatePlayers
2018-05-20 14:05:53.185: ERROR:     self.updateList(pl, CHANGE)
2018-05-20 14:05:53.185: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 533, in updateList
2018-05-20 14:05:53.185: ERROR:     updateValueMacros(self.section, playerData)
2018-05-20 14:05:53.185: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 232, in updateValueMacros
2018-05-20 14:05:53.185: ERROR:     'dmg-kind-player': ''.join([conf['dmg-kind-player'].get(ATTACK_REASONS[i], None) for i in value['dmg-kind-player']]),
2018-05-20 14:05:53.185: ERROR: KeyError: 13
2018-05-20 14:05:53.185: INFO: =============================

 

Share this post


Link to post

Short link
Share on other sites
19 часов назад, Xotabych сказал:

Вот ошибки в логе:

Вроде исправил.

 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
5 часов назад, ktulho сказал:

Вроде исправил.

 

 

Кидаю новый hitLog.py и хитлог(ру) вообще ничего не пишет, случайные бои, линию фронта не играл и до этого ошибок не было.

shot_065.jpg

python.log

xvm.log

Edited by Pensioner

Share this post


Link to post

Short link
Share on other sites
14 часов назад, ktulho сказал:

Вроде исправил.

 

Как писал выше@Pensioner не работает от слова вообще.

Если нужны еще логи могу приложить.

Share this post


Link to post

Short link
Share on other sites
15 часов назад, Pensioner сказал:

Кидаю новый hitLog.py и хитлог(ру) вообще ничего не пишет, случайные бои,

Исправил.

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
В 18.06.2018 в 20:34, Pensioner сказал:

Прикол с трупом союзника, взял столкнул его с горы вот что прописало.

Исправил, обновил скрипт hitLog.py.

  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

Build 8535 СТ

2018-08-06 17:29:08.804: INFO: =============================
2018-08-06 17:29:08.804: INFO: 2018-08-06 17:29:08: [ERROR] mods/xfw/python/xfw/events.pyc
2018-08-06 17:29:08.804: ERROR: Traceback (most recent call last):
2018-08-06 17:29:08.804: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2018-08-06 17:29:08.805: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2018-08-06 17:29:08.805: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 758, in _PlayerAvatar_updateVehicleGunReloadTime
2018-08-06 17:29:08.806: ERROR:     _data.reload()
2018-08-06 17:29:08.806: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 421, in reload
2018-08-06 17:29:08.806: ERROR:     self.data['intCD'] = self.ammo.getCurrentShellCD()
2018-08-06 17:29:08.806: ERROR: AttributeError: 'NoneType' object has no attribute 'getCurrentShellCD'
2018-08-06 17:29:08.806: INFO: =============================
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

глянь ещё, ошибку пишет. На реплее воспроизводится

2018-08-06 23:04:53.486: INFO: =============================
2018-08-06 23:04:53.486: INFO: 2018-08-06 23:04:53: [ERROR] mods/xfw/python/xfw/events.pyc
2018-08-06 23:04:53.486: ERROR: Traceback (most recent call last):
2018-08-06 23:04:53.486: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2018-08-06 23:04:53.486: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2018-08-06 23:04:53.487: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 816, in _Vehicle_onHealthChanged
2018-08-06 23:04:53.487: ERROR:     _data.onHealthChanged(self, newHealth, attackerID, attackReasonID)
2018-08-06 23:04:53.487: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 449, in onHealthChanged
2018-08-06 23:04:53.487: ERROR:     self.updateData()
2018-08-06 23:04:53.487: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 425, in updateData
2018-08-06 23:04:53.487: ERROR:     self.updateLabels()
2018-08-06 23:04:53.487: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 309, in updateLabels
2018-08-06 23:04:53.487: ERROR:     _log.output()
2018-08-06 23:04:53.487: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\hitLog.py", line 754, in output
2018-08-06 23:04:53.487: ERROR:     as_event('ON_HIT_LOG')
2018-08-06 23:04:53.487: ERROR: NameError: global name 'as_event' is not defined
2018-08-06 23:04:53.488: INFO: =============================

прикреплю реплей, если нужно

Share this post


Link to post

Short link
Share on other sites

Возможно ли сделать оставшееся ХП у противников по alt(вместо хитлога),  как это было раньше?

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...