Jump to content
Korean Random
Kotyarko_O

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

Recommended Posts

Добрый день, а как сделать чтоб макросы из этой темы работали в маркерах над танками?

Share this post


Link to post

Short link
Share on other sites

Добрый день, а как сделать чтоб макросы из этой темы работали в маркерах над танками?

Никак. 

Share this post


Link to post

Short link
Share on other sites

Я имею ввиду макросы и из этой темы. 

Edited by ktulho

Share this post


Link to post

Short link
Share on other sites

На релизной 9.20 в логе множество вот такого добра. Под 9.20 скрипта в теме не нашел.

2017-08-29 17:14:22.089: INFO: =============================
2017-08-29 17:14:22.089: INFO: 2017-08-29 17:14:22: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-08-29 17:14:22.089: ERROR: Traceback (most recent call last):
2017-08-29 17:14:22.089: ERROR:   File "mods/xfw/python/xfw/events.py", line 55, in __event_handler
2017-08-29 17:14:22.090: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-08-29 17:14:22.090: ERROR:   File "res_mods/configs/xvm/py_macro\infoPanel.py", line 87, in targetFocus
2017-08-29 17:14:22.091: ERROR:     InfoPanel.update(entity)
2017-08-29 17:14:22.091: ERROR:   File "res_mods/configs/xvm/py_macro\infoPanel.py", line 73, in update
2017-08-29 17:14:22.091: ERROR:     info_panel_data.init(vehicle)
2017-08-29 17:14:22.091: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\info_panel_data.py", line 28, in init
2017-08-29 17:14:22.091: ERROR:     _gunShots = _typeDescriptor.gun['shots']
2017-08-29 17:14:22.091: ERROR:   File "scripts/common/items/components/legacy_stuff.py", line 56, in __getitem__
2017-08-29 17:14:22.091: ERROR: AssertionError: Operation is not allowed
2017-08-29 17:14:22.091: INFO: =============================

python.zip

Edited by ADv

Share this post


Link to post

Short link
Share on other sites

Такие же ошибки в логе как у ADv и соответственно инфо панель не работает.

Share this post


Link to post

Short link
Share on other sites
В 8/29/2017 в 19:27, ADv сказал:

На релизной 9.20 в логе множество вот такого добра. Под 9.20 скрипта в теме не нашел.

В 8/30/2017 в 11:43, FFold сказал:
и соответственно инфо панель не работает

 

Обновка:

-deleted-

Edited by night_dragon_on
  • Upvote 8

Share this post


Link to post

Short link
Share on other sites
В 04.01.2017 в 03:42, Kotyarko_O сказал:

@Tornado_Odan_Rot, естесн можно. Конфиг нужен.

как дела?

можно типа того сделать

и перевод для макросов можно

Цитата

 

{

    "background": {

        "alpha": 40,

        "enable": true,

        "height": 80,

        "image": "gui/maps/icons/vehicle/{name-ico}.png",

        "width": 130,

        "x": 28,

        "y": 14

    },

    "position": {

        "arcade": {

            "alignX": "center",

            "alignY": "center",

            "x": 210.95000000000005,

            "y": -425.2

        },

        "postmortem": {

            "alignX": "center",

            "alignY": "center",

            "x": 223.0,

            "y": -422.15

        },

        "sniper": {

            "alignX": "center",

            "alignY": "center",

            "x": 208.0,

            "y": -424.2

        },

        "strategic": {

            "alignX": "center",

            "alignY": "center",

            "x": 272.0,

            "y": -432.15

        }

    },

    "settings": {

        "alignTextCenterX": false,

        "dragEnable": true,

        "maxTextGun": 18,

        "maxTextTank": 16,

        "reloadKey": "KEY_LALT and KEY_5"

    },

    "shadow": {

        "alpha": 90,

        "angle": 45,

        "color": "#000000",

        "distance": 0,

        "enable": true,

        "size": 6,

        "strength": 300

    },

    "shell_type": {

        "AP": "<img src='img://../mods/configs/ekspoint/info_panel_icons/shell/AP.png' width='8' height='20' vspace='-11'><font color='#CCCCCC' size='11'>ББ</font>",

        "CR": "<img src='img://../mods/configs/ekspoint/info_panel_icons/shell/CR.png' width='8' height='20' vspace='-11'><font color='#CCCCCC' size='11'>БП</font>",

        "HC": "<img src='img://../mods/configs/ekspoint/info_panel_icons/shell/HC.png' width='8' height='20' vspace='-11'><font color='#CCCCCC' size='11'>КС</font>",

        "HE": "<img src='img://../mods/configs/ekspoint/info_panel_icons/shell/HE.png' width='8' height='20' vspace='-11'><font color='#CCCCCC' size='11'>ОФ</font>"

    },

    "text": {

        "alpha": 100,

        "dead": {

            "delay": 20,

            "enable": true,

            "format": </textformat>"

        },

        "enable": true,

        "enemy": {

            "delay": 20,

            "enable": true,

            "format": "</textformat>"

        },

        "player": {

            "delay": 10,

            "enable": true,

            "format": "</textformat>",

            "hotKeys": "KEY_LALT"

        },

        "team": {

            "delay": 20,

            "enable": true,

            "format": "<font face='$TitleFont' color='#ffffff' size='12'><textformat leading='-8'><textformat tabstops='[40, 150, 188]'><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/tank.png' width='24' height='22' align='baseline' vspace='-7'>:<tab><font color='#FFCC33'>{name-tank}</font><tab><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/gun.png' width='24' height='24' align='baseline' vspace='-7'>:<tab><font color='#CCCCCC'>{name-gun}</font></textformat>\n<textformat tabstops='[40, 89, 115, 150, 190, 227]'><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/reload.png' width='24' height='24' align='baseline' vspace='-7'>:<tab><font color='#00d8ff'>{reload} сек</font><tab><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/clip.png' width='24' height='24' align='baseline' vspace='-8'><tab><font color='#FFF45B'>{count-clip} ..{count-burst}</font><tab><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/vision.png' width='24' height='24' align='baseline' vspace='-8'>:<tab><font color='#34FF5D'>{vision} м</font><tab><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/weight.png' width='15' height='20' align='baseline' vspace='-5'><font color='{weight-color}'>{target-weight} т</font></textformat>\n<textformat tabstops='[37, 77, 111, 150, 189, 229, 269]'><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/speed.png' width='24' height='24' align='baseline' vspace='-8'>:<tab><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/forward.png' width='13' height='20' align='baseline' vspace='-9'>{speed-forward}<tab><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/backward.png' width='13' height='20' align='baseline' vspace='-9'>{speed-backward}<tab><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/turn.png' width='19' height='19' align='baseline' vspace='-9'>{speed-turn}<tab><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/type.png' width='24' height='24' align='baseline' vspace='-9'>:<tab><font color='#ffe970'>{type-1}<tab>{type-2}<tab>{type-3}</font></textformat>\n<textformat tabstops='[40, 80, 120, 150, 190, 230, 271]'><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/turret.png' width='24' height='24' align='baseline' vspace='-9'>:<tab>{turret-front}<tab>{turret-side}<tab>{turret-back}<tab><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/power.png' width='24' height='24' align='baseline' vspace='-9'>:<tab><font color='#FFFF58'>{power-1}<tab>{power-2}<tab>{power-3}</font></textformat>\n<textformat tabstops='[40, 80, 120, 150, 190, 230, 271]'><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/hull.png' width='24' height='24' align='baseline' vspace='-9'>:<tab>{hull-front}<tab>{hull-side}<tab>{hull-back}<tab><img src='img://../mods/configs/ekspoint/info_panel_icons/blue/damage.png' width='24' height='24' align='baseline' vspace='-9'>:<tab><font color='#EB8C8C'>{damage-1}<tab>{damage-2}<tab>{damage-3}</font></textformat>"

        }

    },

    "weight_color": {

        "badly": "#ff0000",

        "good": "#00FF00",

        "poor": "#FFFF00"

    }

}

 

 

  • Upvote 3
  • Downvote 2

Share this post


Link to post

Short link
Share on other sites
Цитата

2017-10-23 15:32:09.315: INFO: 2017-10-23 15:32:09: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-10-23 15:32:09.315: ERROR: Traceback (most recent call last):
2017-10-23 15:32:09.315: ERROR:   File "mods/xfw/python/xfw/events.py", line 55, in __event_handler
2017-10-23 15:32:09.315: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-10-23 15:32:09.315: ERROR:   File "res_mods/configs/xvm/py_macro\infoPanel.py", line 94, in targetFocus
2017-10-23 15:32:09.333: ERROR:     infoPanel.update(entity)
2017-10-23 15:32:09.333: ERROR:   File "res_mods/configs/xvm/py_macro\infoPanel.py", line 76, in update
2017-10-23 15:32:09.333: ERROR:     info_panel_data.init(vehicle, player().getVehicleAttached())
2017-10-23 15:32:09.333: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\info_panel_data.py", line 19, in init
2017-10-23 15:32:09.379: ERROR:     _typeDescriptor = vehicle.typeDescriptor if vehicle is not None else _playerVehicle.typeDescriptor
2017-10-23 15:32:09.379: ERROR:   File "scripts/client_common/svarog_script/py_component_system.py", line 74, in __getattr__
2017-10-23 15:32:09.380: ERROR: AttributeError: 'Svarog.ComponentSystem' object has no attribute 'typeDescriptor'

такая ошибка выходит и про дамаглог есть

 

Цитата

2017-10-23 15:27:25.711: INFO: =============================
2017-10-23 15:27:25.711: INFO: 2017-10-23 15:27:25: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-10-23 15:27:25.711: ERROR: Traceback (most recent call last):
2017-10-23 15:27:25.711: ERROR:   File "mods/xfw/python/xfw/events.py", line 55, in __event_handler
2017-10-23 15:27:25.711: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-10-23 15:27:25.712: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 843, in Vehicle_onHealthChanged
2017-10-23 15:27:25.712: ERROR:     data.onHealthChanged(self, newHealth, attackerID, attackReasonID)
2017-10-23 15:27:25.712: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 473, in onHealthChanged
2017-10-23 15:27:25.712: ERROR:     self.updateData()
2017-10-23 15:27:25.712: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 311, in updateData
2017-10-23 15:27:25.712: ERROR:     self.updateLabels()
2017-10-23 15:27:25.712: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 375, in updateLabels
2017-10-23 15:27:25.712: ERROR:     _logAlt.output()
2017-10-23 15:27:25.712: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 685, in output
2017-10-23 15:27:25.712: ERROR:     self.addLine(attackerID, attackReasonID)
2017-10-23 15:27:25.712: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 648, in addLine
2017-10-23 15:27:25.712: ERROR:     self.dataLog['fireDuration'] = BigWorld.time() - beginFire if attackReasonID == 1 else None
2017-10-23 15:27:25.712: ERROR: TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
2017-10-23 15:27:25.712: INFO: =============================
2017-10-23 15:27:26.215: INFO: =============================
2017-10-23 15:27:26.215: INFO: 2017-10-23 15:27:26: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-10-23 15:27:26.215: ERROR: Traceback (most recent call last):
2017-10-23 15:27:26.215: ERROR:   File "mods/xfw/python/xfw/events.py", line 55, in __event_handler
2017-10-23 15:27:26.216: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-10-23 15:27:26.216: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 843, in Vehicle_onHealthChanged
2017-10-23 15:27:26.216: ERROR:     data.onHealthChanged(self, newHealth, attackerID, attackReasonID)
2017-10-23 15:27:26.216: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 473, in onHealthChanged
2017-10-23 15:27:26.216: ERROR:     self.updateData()
2017-10-23 15:27:26.216: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 311, in updateData
2017-10-23 15:27:26.216: ERROR:     self.updateLabels()
2017-10-23 15:27:26.216: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 376, in updateLabels
2017-10-23 15:27:26.216: ERROR:     _log.output()
2017-10-23 15:27:26.216: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 685, in output
2017-10-23 15:27:26.216: ERROR:     self.addLine(attackerID, attackReasonID)
2017-10-23 15:27:26.216: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 648, in addLine
2017-10-23 15:27:26.216: ERROR:     self.dataLog['fireDuration'] = BigWorld.time() - beginFire if attackReasonID == 1 else None
2017-10-23 15:27:26.216: ERROR: TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
2017-10-23 15:27:26.216: INFO: =============================
2017-10-23 15:27:26.705: INFO: =============================
2017-10-23 15:27:26.705: INFO: 2017-10-23 15:27:26: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-10-23 15:27:26.705: ERROR: Traceback (most recent call last):
2017-10-23 15:27:26.705: ERROR:   File "mods/xfw/python/xfw/events.py", line 55, in __event_handler
2017-10-23 15:27:26.705: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-10-23 15:27:26.705: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 843, in Vehicle_onHealthChanged
2017-10-23 15:27:26.706: ERROR:     data.onHealthChanged(self, newHealth, attackerID, attackReasonID)
2017-10-23 15:27:26.706: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 473, in onHealthChanged
2017-10-23 15:27:26.706: ERROR:     self.updateData()
2017-10-23 15:27:26.706: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 311, in updateData
2017-10-23 15:27:26.706: ERROR:     self.updateLabels()
2017-10-23 15:27:26.706: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 377, in updateLabels
2017-10-23 15:27:26.706: ERROR:     _lastHit.output()
2017-10-23 15:27:26.706: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 772, in output
2017-10-23 15:27:26.706: ERROR:     self.groupDamages()
2017-10-23 15:27:26.706: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 765, in groupDamages
2017-10-23 15:27:26.706: ERROR:     dataLog['fireDuration'] = BigWorld.time() - beginFire if attackReasonID == 1 else None
2017-10-23 15:27:26.706: ERROR: TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
2017-10-23 15:27:26.706: INFO: =============================
2017-10-23 15:27:27.205: INFO: =============================
2017-10-23 15:27:27.205: INFO: 2017-10-23 15:27:27: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-10-23 15:27:27.205: ERROR: Traceback (most recent call last):
2017-10-23 15:27:27.205: ERROR:   File "mods/xfw/python/xfw/events.py", line 55, in __event_handler
2017-10-23 15:27:27.205: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-10-23 15:27:27.205: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 843, in Vehicle_onHealthChanged
2017-10-23 15:27:27.205: ERROR:     data.onHealthChanged(self, newHealth, attackerID, attackReasonID)
2017-10-23 15:27:27.205: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 473, in onHealthChanged
2017-10-23 15:27:27.205: ERROR:     self.updateData()
2017-10-23 15:27:27.205: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 311, in updateData
2017-10-23 15:27:27.205: ERROR:     self.updateLabels()
2017-10-23 15:27:27.205: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 378, in updateLabels
2017-10-23 15:27:27.206: ERROR:     _logBackground.output()
2017-10-23 15:27:27.206: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 685, in output
2017-10-23 15:27:27.206: ERROR:     self.addLine(attackerID, attackReasonID)
2017-10-23 15:27:27.206: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 648, in addLine
2017-10-23 15:27:27.206: ERROR:     self.dataLog['fireDuration'] = BigWorld.time() - beginFire if attackReasonID == 1 else None
2017-10-23 15:27:27.206: ERROR: TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
2017-10-23 15:27:27.206: INFO: =============================
2017-10-23 15:27:27.706: INFO: =============================
2017-10-23 15:27:27.706: INFO: 2017-10-23 15:27:27: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-10-23 15:27:27.706: ERROR: Traceback (most recent call last):
2017-10-23 15:27:27.706: ERROR:   File "mods/xfw/python/xfw/events.py", line 55, in __event_handler
2017-10-23 15:27:27.706: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-10-23 15:27:27.707: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 843, in Vehicle_onHealthChanged
2017-10-23 15:27:27.707: ERROR:     data.onHealthChanged(self, newHealth, attackerID, attackReasonID)
2017-10-23 15:27:27.707: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 473, in onHealthChanged
2017-10-23 15:27:27.707: ERROR:     self.updateData()
2017-10-23 15:27:27.707: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 311, in updateData
2017-10-23 15:27:27.707: ERROR:     self.updateLabels()
2017-10-23 15:27:27.707: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 379, in updateLabels
2017-10-23 15:27:27.707: ERROR:     _logAltBackground.output()
2017-10-23 15:27:27.707: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 685, in output
2017-10-23 15:27:27.707: ERROR:     self.addLine(attackerID, attackReasonID)
2017-10-23 15:27:27.707: ERROR:   File "./res_mods/mods/../configs/xvm/py_macro\xvm\damageLog.py", line 648, in addLine
2017-10-23 15:27:27.707: ERROR:     self.dataLog['fireDuration'] = BigWorld.time() - beginFire if attackReasonID == 1 else None
2017-10-23 15:27:27.707: ERROR: TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'

 

Share this post


Link to post

Short link
Share on other sites

можно ли добавить макросы незаметности собственного танка?

Edited by ddar

Share this post


Link to post

Short link
Share on other sites

@ddar 

  • {{invis_stand}} - Незаметность неподвижной машины до выстрела, %
  • {{invis_stand_shot}} - Незаметность неподвижной машины после выстрела, %
  • {{invis_move}} - Незаметность машины в движении до выстрела, %
  • {{invis_move_shot}} - Незаметность машины в движении после выстрела, %
Edited by night_dragon_on

Share this post


Link to post

Short link
Share on other sites

Это общие макросы, если прицел наведен на цель то выводится значение маскировки техники в прицеле, если нет - то твою.

Edited by night_dragon_on

Share this post


Link to post

Short link
Share on other sites

@night_dragon_on мне хочется при наведении провести расчеты с показателями собственной маскировки и обзора цели, чтобы получить безопасное расстояние для стрельбы. Я не смогу одновременно получить и собственную маскировку, и обзор цели?

Edited by ddar

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.

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