Jump to content
Korean Random
ktulho

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

Recommended Posts

44 минуты назад, H_E_K_P_O_M_A_H_T_ сказал:

В лог затопление не пошло, а желательно конечно.

Это проблематично сделать. Такая же ситуация если убил танк, который не засвечен.

Share this post


Link to post

Short link
Share on other sites

урон от тарана показывает, от выстрелов нет

ERROR:

Цитата

2017-10-26 09:56:43.697: INFO: =============================
2017-10-26 09:56:48.082: INFO: =============================
2017-10-26 09:56:48.082: INFO: 2017-10-26 09:56:48: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-10-26 09:56:48.082: ERROR: Traceback (most recent call last):
2017-10-26 09:56:48.082: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2017-10-26 09:56:48.083: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-10-26 09:56:48.083: ERROR: TypeError: _PlayerAvatar_updateVehicleGunReloadTime() takes exactly 4 arguments (5 given)
2017-10-26 09:56:48.083: INFO: =============================
2017-10-26 09:56:48.112: INFO: =============================
2017-10-26 09:56:48.112: INFO: 2017-10-26 09:56:48: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-10-26 09:56:48.112: ERROR: Traceback (most recent call last):
2017-10-26 09:56:48.112: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2017-10-26 09:56:48.113: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-10-26 09:56:48.113: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\hitLog.py", line 712, in _Vehicle_onHealthChanged
2017-10-26 09:56:48.113: ERROR:     _data.onHealthChanged(self, newHealth, attackerID, attackReasonID)
2017-10-26 09:56:48.113: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\hitLog.py", line 415, in onHealthChanged
2017-10-26 09:56:48.114: ERROR:     self.data['shellKind'] = self.shells[self.data['intCD']]['shellKind']
2017-10-26 09:56:48.114: ERROR: KeyError: None
2017-10-26 09:56:48.114: INFO: =============================
2017-10-26 09:56:49.285: INFO: =============================

 

Share this post


Link to post

Short link
Share on other sites

@ktulho  2 хп союзнику тараном снял -  в лог ничего не пошло.

11bde331db3c0c8eb2d839795cb9a2a9.jpg

 

 

или 2 хп слишком мало ...

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

Share this post


Link to post

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

так это не от меня отлетело - от союзника. 

Значит, считается, что он сам себе нанес урон.

 

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

При таране, атакующим считается тот, у кого скорость выше. Раз в лог не пошел урон, значит у него скорость при таране была выше, и считается, что он сам себе нанес урон. Можешь проверить в результатах боя.

  • Upvote 1

Share this post


Link to post

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

При таране, атакующим считается тот, у кого скорость выше. Раз в лог не пошел урон, значит у него скорость при таране была выше, и считается, что он сам себе нанес урон. Можешь проверить в результатах боя.

 

ну я так и подумал:

8 минут назад, H_E_K_P_O_M_A_H_T_ сказал:

там скорее всего соотношение скоростей учитывается.

 

вопрос тогда снят. 

=====================================

а так с последним скриптом боёв 50-60 сам откатал - багов нет. :no1:

Share this post


Link to post

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

Так что там с хп по альт противников?, надеюсь что все такие реализуете)

Если только отдельным аддоном.

Share this post


Link to post

Short link
Share on other sites
В 03.12.2017 в 17:04, ktulho сказал:

Добавил в шапку скрипт для 0.9.21_CT.

 

А для 0.9.21.0.1 будет?

Share this post


Link to post

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

А для 0.9.21.0.1 будет?

0.9.21_CT рабочий.

Share this post


Link to post

Short link
Share on other sites

не срабатывает нормально блок:

      // Shell kind (macro {{type-shell}}).
      // Тип снаряда (макрос {{type-shell}}).
      "type-shell": {
        "armor_piercing": "<img src='xvm://res/icons/damageLog/Dmg/ARMOR_PIERCING.png' width='40' height='17' align='left' vspace='-3'><font face='KAPb14 v1' size='12' color='{{c:costShell}}' alpha='50'>d</font>",    // armor piercing / бронебойный
          "high_explosive": "<img src='xvm://res/icons/damageLog/Dmg/HIGH_EXPLOSIVE.png' width='40' height='17' align='left' vspace='-3'><font face='KAPb14 v1' size='12' color='{{c:costShell}}' alpha='50'>h</font>",    // high explosive / осколочно-фугасный
            "armor_piercing_cr": "<img src='xvm://res/icons/damageLog/Dmg/ARMOR_PIERCING_CR.png' width='40' height='17' align='left' vspace='-3'><font face='KAPb14 v1' size='12' color='{{c:costShell}}' alpha='50'>e</font>", // armor piercing composite rigid / бронебойный подкалиберный
              "armor_piercing_he": "<img src='xvm://res/icons/damageLog/Dmg/ARMOR_PIERCING_HE.png' width='40' height='17' align='left' vspace='-3'><font face='KAPb14 v1' size='12' color='{{c:costShell}}' alpha='50'>f</font>", // armor piercing high explosive / бронебойно-фугасный
                "hollow_charge": "<img src='xvm://res/icons/damageLog/Dmg/HOLLOW_CHARGE.png' width='40' height='17' align='left' vspace='-3'><font face='KAPb14 v1' size='12' color='{{c:costShell}}' alpha='50'>g</font>",     // high explosive anti-tank / кумулятивный
                  "not_shell": ""                                                                                          // another source of damage / другой источник урона
      },

почему то раскрашивает все снаряды в цвет голды - КЛАЦ!!!

для пробы оставлял только {{costShell}}:

      // Shell kind (macro {{type-shell}}).
      // Тип снаряда (макрос {{type-shell}}).
      "type-shell": {
        "armor_piercing": "{{costShell}}' alpha='50'>d</font>",    // armor piercing / бронебойный
          "high_explosive": "{{costShell}}",    // high explosive / осколочно-фугасный
          "armor_piercing_cr": "{{costShell}}", // armor piercing composite rigid / бронебойный подкалиберный
          "armor_piercing_he": "{{costShell}}", // armor piercing high explosive / бронебойно-фугасный
          "hollow_charge": "{{costShell}}",     // high explosive anti-tank / кумулятивный
                  "not_shell": ""                                                                                          // another source of damage / другой источник урона
      },

не помогло :( выводит gold хотя должен выводить credits

xvm.log

py_hitLog.xc

Edited by MIAPAK
  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

@ktulho , @MIAPAK , проверил - оба макроса не работают:

"costShell": {
  "gold-shell": "gold",
  "silver-shell": "silver",
  "unknown": ""
},
"c:costShell": {
  "gold-shell": "#FFCC66",
  "silver-shell": "#CCCCCC",
  "unknown": ""
},
"formatHistory": "<font color='{{c:costShell}}'>{{costShell}}</font>"        

ab41d268c79c36ec2656f109d6e86dab.png

 

@MIAPAK , параметр align='left' в картинках не нужен.

  • Upvote 2

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