Jump to content
Korean Random
ktulho

damageLog средствами XVM.

Recommended Posts

@GT_22rus если надо урон от союзников всегда красить в один цвет, то:

      // Color by team attachment of the attacker (macro {{c:team-dmg}}).
      // Цвет по командной принадлежности атакующего (макрос {{c:team-dmg}}).
      "c:team-dmg":{
        "ally-dmg": "#00EAFF",  // ally / союзник
        "enemy-dmg": "{{c:team-dmg}}", // enemy / противник
        "player": "#228855",    // self damage / урон по себе
        "unknown": "{{c:team-dmg}}"    // unknown / неизвестно
      },

в параметре "formatHistory" заменить:

<font color='{{c:dmg-kind}}'>{{dmg-kind}}</font>

на

<font color='{{c:team-dmg}}'>{{dmg-kind}}</font>

 

P.S. это относиться к дефолтному конфигу.

  • Upvote 1

Share this post


Link to post

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

@GT_22rus если надо урон от союзников всегда красить в один цвет, то:


      // Color by team attachment of the attacker (macro {{c:team-dmg}}).
      // Цвет по командной принадлежности атакующего (макрос {{c:team-dmg}}).
      "c:team-dmg":{
        "ally-dmg": "#00EAFF",  // ally / союзник
        "enemy-dmg": "{{c:team-dmg}}", // enemy / противник
        "player": "#228855",    // self damage / урон по себе
        "unknown": "{{c:team-dmg}}"    // unknown / неизвестно
      },

в параметре "formatHistory" заменить:


<font color='{{c:dmg-kind}}'>{{dmg-kind}}</font>

на


<font color='{{c:team-dmg}}'>{{dmg-kind}}</font>

 

P.S. это относиться к дефолтному конфигу.

Спасибо. Работает.

Share this post


Link to post

Short link
Share on other sites

Build 8226/0.9.23 CT

ERROR

Цитата

2018-03-03 16:54:09.730: INFO: =============================
2018-03-03 16:54:09.730: INFO: 2018-03-03 16:54:09: [ERROR] mods/xfw/python/xfw/events.pyc
2018-03-03 16:54:09.730: ERROR: Traceback (most recent call last):
2018-03-03 16:54:09.730: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2018-03-03 16:54:09.731: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2018-03-03 16:54:09.731: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 889, in Vehicle_showDamageFromShot
2018-03-03 16:54:09.731: ERROR:     data.showDamageFromShot(self, attackerID, points, effectsIndex, damageFactor)
2018-03-03 16:54:09.731: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 378, in showDamageFromShot
2018-03-03 16:54:09.732: ERROR:     maxHitEffectCode, decodedPoints, maxDamagedComponent = DamageFromShotDecoder.decodeHitPoints(points, vehicle.typeDescriptor)
2018-03-03 16:54:09.732: ERROR:   File "scripts/client/VehicleEffects.py", line 50, in decodeHitPoints
2018-03-03 16:54:09.732: ERROR:   File "scripts/client/VehicleEffects.py", line 119, in decodeSegment
2018-03-03 16:54:09.732: ERROR: AttributeError: 'VehicleDescriptor' object has no attribute 'getBoundingBox'
2018-03-03 16:54:09.732: INFO: =============================
2018-03-03 16:54:09.825: DEBUG: [DEBUG] (scripts/client/Avatar.py, 2151): Battle events has been received:  ([{eventType: 9, targetID: 1404819, details: 65545, count: 1}, {eventType: 10, targetID: 1404819, details: 24641545, count: 1}],)
2018-03-03 16:54:11.727: DEBUG: [DEBUG] (scripts/client/gui/Scaleform/daapi/view/battle/shared/crosshair/plugins.py, 372): Set reloading state (ReloadingTimeSnapshot(actual = 0.0, base = 16.2313899994, timePassed = 0.0, reloading = False),)
2018-03-03 16:54:11.727: DEBUG: [DEBUG] (scripts/client/gui/shared/utils/MethodsRules.py, 113): Delayer processed:  ('setGunReloadTime',)
2018-03-03 16:54:12.615: INFO: =============================
2018-03-03 16:54:12.615: INFO: 2018-03-03 16:54:12: [ERROR] mods/xfw/python/xfw/events.pyc
2018-03-03 16:54:12.615: ERROR: Traceback (most recent call last):
2018-03-03 16:54:12.615: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2018-03-03 16:54:12.616: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2018-03-03 16:54:12.616: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 889, in Vehicle_showDamageFromShot
2018-03-03 16:54:12.616: ERROR:     data.showDamageFromShot(self, attackerID, points, effectsIndex, damageFactor)
2018-03-03 16:54:12.616: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 378, in showDamageFromShot
2018-03-03 16:54:12.616: ERROR:     maxHitEffectCode, decodedPoints, maxDamagedComponent = DamageFromShotDecoder.decodeHitPoints(points, vehicle.typeDescriptor)
2018-03-03 16:54:12.616: ERROR:   File "scripts/client/VehicleEffects.py", line 50, in decodeHitPoints
2018-03-03 16:54:12.617: ERROR:   File "scripts/client/VehicleEffects.py", line 119, in decodeSegment
2018-03-03 16:54:12.617: ERROR: AttributeError: 'VehicleDescriptor' object has no attribute 'getBoundingBox'
2018-03-03 16:54:12.617: INFO: =============================
2018-03-03 16:54:12.812: DEBUG: [DEBUG] (scripts/client/Avatar.py, 2151): Battle events has been received:  ([{eventType: 10, targetID: 1404807, details: 48300035, count: 1}],)
2018-03-03 16:54:14.816: INFO: =============================
2018-03-03 16:54:14.816: INFO: 2018-03-03 16:54:14: [ERROR] mods/xfw/python/xfw/events.pyc
2018-03-03 16:54:14.816: ERROR: Traceback (most recent call last):
2018-03-03 16:54:14.816: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2018-03-03 16:54:14.816: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2018-03-03 16:54:14.817: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 889, in Vehicle_showDamageFromShot
2018-03-03 16:54:14.817: ERROR:     data.showDamageFromShot(self, attackerID, points, effectsIndex, damageFactor)
2018-03-03 16:54:14.817: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 378, in showDamageFromShot
2018-03-03 16:54:14.817: ERROR:     maxHitEffectCode, decodedPoints, maxDamagedComponent = DamageFromShotDecoder.decodeHitPoints(points, vehicle.typeDescriptor)
2018-03-03 16:54:14.817: ERROR:   File "scripts/client/VehicleEffects.py", line 50, in decodeHitPoints
2018-03-03 16:54:14.817: ERROR:   File "scripts/client/VehicleEffects.py", line 119, in decodeSegment
2018-03-03 16:54:14.818: ERROR: AttributeError: 'VehicleDescriptor' object has no attribute 'getBoundingBox'
2018-03-03 16:54:14.818: INFO: =============================

 

Edited by HEKPOMAHT
✂ очистка вложений

Share this post


Link to post

Short link
Share on other sites

Уважаемый Ктулхо, а есть возможность прикрутить тайминг к попаданию? Причём тайминг по внутрибоевому времени, то есть - чисто из расчёта текущего времени боя...
Было бы очень здорово. А если есть такой функционал - ткните меня в него, плиз.

Share this post


Link to post

Short link
Share on other sites
16 часов назад, 2rokk сказал:

а есть возможность прикрутить тайминг к попаданию? Причём тайминг по внутрибоевому времени, то есть - чисто из расчёта текущего времени боя...

То есть отображать в какое время был получен или заблокирован урон? 

  • Upvote 2

Share this post


Link to post

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

То есть отображать в какое время был получен или заблокирован урон? 

Так точно.

отсчёт времени, наверное, удобнее будет вести так же как в бою - в обратную сторону. Но это уже как получится.

Share this post


Link to post

Short link
Share on other sites

при пожаре выдает ошибку



2018-03-17 17:08:10.587: INFO: ButtonReplacer: no-GUI mode activated
2018-03-17 17:08:10.720: INFO: [WGC] Running WGC instance is not found in the system
2018-03-17 17:08:13.706: INFO: RemodEnabler: listing vehicles/skins/textures/ for CRC32
2018-03-17 17:08:18.287: INFO: RemodEnabler: skins textures were not changed
2018-03-17 17:08:18.336: INFO: RemodEnabler: total models check time: 0:00:05
2018-03-17 17:46:19.514: INFO: =============================
2018-03-17 17:46:19.514: INFO: 2018-03-17 17:46:19: [ERROR] mods/xfw/python/xfw/events.pyc
2018-03-17 17:46:19.514: ERROR: Traceback (most recent call last):
2018-03-17 17:46:19.514: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2018-03-17 17:46:19.515: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2018-03-17 17:46:19.515: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 841, in Vehicle_onHealthChanged
2018-03-17 17:46:19.516: ERROR:     data.onHealthChanged(self, newHealth, attackerID, attackReasonID)
2018-03-17 17:46:19.516: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 463, in onHealthChanged
2018-03-17 17:46:19.516: ERROR:     self.updateData()
2018-03-17 17:46:19.516: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 302, in updateData
2018-03-17 17:46:19.516: ERROR:     self.updateLabels()
2018-03-17 17:46:19.516: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 366, in updateLabels
2018-03-17 17:46:19.516: ERROR:     _logAlt.output()
2018-03-17 17:46:19.516: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 684, in output
2018-03-17 17:46:19.516: ERROR:     self.addLine(attackerID, attackReasonID)
2018-03-17 17:46:19.516: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 650, in addLine
2018-03-17 17:46:19.516: ERROR:     self.dataLog['fireDuration'] = BigWorld.time() - beginFire if attackReasonID == 1 else None
2018-03-17 17:46:19.516: ERROR: TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
2018-03-17 17:46:19.516: INFO: =============================

  • Upvote 1
  • Downvote 1

Share this post


Link to post

Short link
Share on other sites
В 13.03.2018 в 23:43, 2rokk сказал:

Уважаемый Ктулхо, а есть возможность прикрутить тайминг к попаданию?

Какое время отображать при суммировании пожара, тарана? Начало или конец?

Share this post


Link to post

Short link
Share on other sites

@ktulho 

я думаю - начало. кмк, важно (полезно) знать, когда с тобой что-то началось, а не когда это прошло...

Share this post


Link to post

Short link
Share on other sites
В 13.03.2018 в 23:43, 2rokk сказал:

а есть возможность прикрутить тайминг к попаданию?

Добавил:

{{hitTime}} - время полученного или заблокированного урона в формате "мм:сс"

 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

@ktulho 

Ооо!!! Спасибо огромное!!! то что доктор прописал! :)

upd. 

перестал отображаться заблокированный урон. то есть непробития, рикошеты, без урона - не отображаются. в бою и на реплах проверено. тайминг работает.

Share this post


Link to post

Short link
Share on other sites
2 часа назад, 2rokk сказал:

@ktulho 

 

 

перестал отображаться заблокированный урон. то есть непробития, рикошеты, без урона - не отображаются. в бою и на реплах проверено. тайминг работает.

 

Так же , просто сразу не понял, давно не ставил ночники и подумал, что то ещё меняли.

Share this post


Link to post

Short link
Share on other sites
2 часа назад, 2rokk сказал:

перестал отображаться заблокированный урон. то есть непробития, рикошеты, без урона - не отображаются. в бою и на реплах проверено.

 

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

Так же , просто сразу не понял, давно не ставил ночники и подумал, что то ещё меняли.

Логи?

Share this post


Link to post

Short link
Share on other sites
3 минуты назад, HEKPOMAHT сказал:

на тесте 0.9.23 проверяете?

 

А что это для теста было?

Share this post


Link to post

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

А что это для теста было?

да

Share this post


Link to post

Short link
Share on other sites
Только что, ktulho сказал:

да

а для текущей смысла нет делать, да?

Share this post


Link to post

Short link
Share on other sites
Только что, 2rokk сказал:

а для текущей смысла нет делать, да?

Завтра уже обнова!

 

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...