Jump to content
Korean Random

Сборник py_macro


Recommended Posts

  • 3 weeks later...
  • 2 weeks later...

Обновил скрипт collection.py из аддона Макросы для "ушей", маркеров и миникарты. Исправление касается ботов. Надо проверить, как отображаются макросы для анонимов. 

  • Upvote 3
Link to comment
Short link
Share on other sites

  • 1 month later...
  • 4 weeks later...
10 часов назад, RegularMan сказал:

quicklyLeave выходит по пробелу когда ты просто на бок лег.... Не спрашивая...  ЗАЧЕМ? Танк ставится на катки через 15 секунд.

да, есть один нюанс по скрипту:

 

14.06.2017 в 22:49, ktulho сказал:

Дополнение позволяет назначит клавишу для быстрого выхода из боя, если выход не повлечет штраф за "дезертирство" (при просмотре реплея - закроет клиент)

 

----

Было бы неплохо сделать условие на переворот, чтоб не срабатывал.

переворот.wotreplay

  • Upvote 1
Link to comment
Short link
Share on other sites

Только что, ktulho сказал:

Если на крыши лежит, тоже потом на гусеницы встает?

там и крыша, и бок - включается снизу таймер.

Может можно на сам таймер условие сделать?

----

Цитата

 

Для всех игровых режимов добавлен автопереворот — в случае опрокидывания техники без возможности дальнейшего самостоятельного передвижения запускается таймер со временем (5 секунд), по истечении которого машина будет автоматически перевёрнута в исходное положени

 

 

Link to comment
Short link
Share on other sites

20.02.2024 в 00:41, RegularMan сказал:

quicklyLeave выходит по пробелу когда ты просто на бок лег.... Не спрашивая...  ЗАЧЕМ? Танк ставится на катки через 15 секунд.

Переделал логику, надо потестить.

quicklyLeave.py

  • Upvote 3
Link to comment
Short link
Share on other sites

21.02.2024 в 22:50, ktulho сказал:

Переделал логику, надо потестить.

ложил на крышу - теперь не срабатывает, в остальном работает штатно.

  • Upvote 1
Link to comment
Short link
Share on other sites

  • 2 weeks later...

@ktulho myHP.py на тесте WG опять "0" показывает, пока очки прочности не изменятся (в логах пусто). Может на основе норм будет, я хз...

Link to comment
Short link
Share on other sites

On the WG XVM 1.24: 


2024-03-05 11:57:49.944: INFO: =============================
2024-03-05 11:57:49.944: INFO: 2024-03-05 11:57:49: [ERROR] mods/xfw_libraries/xfw/events.pyc
2024-03-05 11:57:49.944: ERROR: Traceback (most recent call last):
2024-03-05 11:57:49.944: ERROR:   File "./xfw/events.py", line 60, in __event_handler
2024-03-05 11:57:49.945: ERROR:   File "./xfw/events.py", line 27, in fire
2024-03-05 11:57:49.945: ERROR:   File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 175, in infoChargedShell_onShellsUpdated
2024-03-05 11:57:49.945: ERROR:     shellsUpdatedOrAdd(intCD, quantity)
2024-03-05 11:57:49.945: ERROR:   File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 152, in shellsUpdatedOrAdd
2024-03-05 11:57:49.945: ERROR:     updateCurrentShell(intCD, ammoCtrl)
2024-03-05 11:57:49.945: ERROR:   File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 131, in updateCurrentShell
2024-03-05 11:57:49.945: ERROR:     damage = shotDescr.damage[0]
2024-03-05 11:57:49.945: ERROR: AttributeError: 'Shell' object has no attribute 'damage'
2024-03-05 11:57:49.945: INFO: =============================

 

2024-03-05 11:59:17.836: INFO: =============================
2024-03-05 11:59:17.836: INFO: 2024-03-05 11:59:17: [ERROR] mods/xfw_libraries/xfw/events.pyc
2024-03-05 11:59:17.836: ERROR: Traceback (most recent call last):
2024-03-05 11:59:17.836: ERROR:   File "./xfw/events.py", line 60, in __event_handler
2024-03-05 11:59:17.837: ERROR:   File "./xfw/events.py", line 27, in fire
2024-03-05 11:59:17.837: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 1124, in Vehicle_showDamageFromShot
2024-03-05 11:59:17.837: ERROR:     data.showDamageFromShot(self, *args, **kwargs)
2024-03-05 11:59:17.837: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 521, in showDamageFromShot
2024-03-05 11:59:17.837: ERROR:     self.hitShell(attackerID, effectsIndex, damageFactor)
2024-03-05 11:59:17.837: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 460, in hitShell
2024-03-05 11:59:17.837: ERROR:     self.typeShell(effectsIndex)
2024-03-05 11:59:17.837: ERROR:   File "res_mods/configs/xvm/py_macro\xvm\damageLog.py", line 427, in typeShell
2024-03-05 11:59:17.837: ERROR:     self.data['shellDamage'] = _shell.damage[0]
2024-03-05 11:59:17.837: ERROR: AttributeError: 'Shell' object has no attribute 'damage'
2024-03-05 11:59:17.837: INFO: =============================

 

2024-03-05 11:52:34: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_tooltips\python\__init__.py", line 383, in CommonStatsBlockConstructor_construct
    damageAvg_str = formatNumber(shot.shell.damage[0])
AttributeError: 'Shell' object has no attribute 'damage'
 

Example of fix:

image.png (1519×108)

Edited by Aslain
Link to comment
Short link
Share on other sites

03.03.2024 в 19:24, HEKPOMAHT сказал:

@ktulho myHP.py на тесте WG опять "0" показывает, пока очки прочности не изменятся (в логах пусто). Может на основе норм будет, я хз...

на основе норм - работает :hmm:

Link to comment
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...