Jump to content
Korean Random

Прицел (без сведения) средствами XVM


Recommended Posts

6 минут назад, Slava7572 сказал:

ktulho,а это никак не поправить?

А надо? Здесь, вроде, отображается скорость, которая участвует в расчетах. Могу умножать её 1,25.

Link to comment
Short link
Share on other sites

3 часа назад, ktulho сказал:

А надо? Здесь, вроде, отображается скорость, которая участвует в расчетах. Могу умножать её 1,25.

Да можно и так в принципе,главное,чтоб показывало правду,а то я часто на эти цифры примерно ориентируюсь)))

Повангую с вашего позволения,так дописать надо?

def sight_shellType():
    return int(shellType * 1.25)

 

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

8 часов назад, ktulho сказал:

Да.

дел

не в той колонке записал,вместо скорости в тип снаряда))

 

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

7 часов назад, ktulho сказал:

:smile:

Вроде все нормально,скорость правильная,тип есть,единственное в логе ошибка идентичная вчерашней,возможно я лог не обнулил,перепроверю еще раз.

Link to comment
Short link
Share on other sites

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

Какая?

Вот такая:

2018-10-21 16:31:09: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 157, in process_python_macro
    return (func(), deterministic)
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 150, in <lambda>
    return (lambda: func(*args), deterministic)
  File "res_mods/configs/xvm/py_macro\infoChargedShell.py", line 125, in sight_shellSpeed
    return int(shellSpeed * 1.25)
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
arg='sight.shellSpeed'

несколько раз,но это пока непотвержденная информация,надо перепроверить,вроде обнулял логи....В питоне вроде норм,только ивентные ошибки,но они и вчера были.В скрипте только умножение вписал.

infoChargedShell.py

Link to comment
Short link
Share on other sites

18 часов назад, ktulho сказал:

@Slava7572 Надо так:


return int(shellSpeed * 1.25) if shellSpeed is not None else None

 

Ок,спасибо,перепишу сразу.

П.С:теперь все нормально,логи девственно чистые,показания верные.

П,П,С:прилеплю наверное,может тоже кому то критичны верные значения......Может в дефолт добавить?Хоть и костыль своего рода(насколько я понимаю),главное работает)))

infoChargedShell.py

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

Many Thanks. I wanted to test it now with a friend in the practice room, while I noticed that the sphereDispersion is no longer displayed, with or without dds file. I never play Arty, that's why I did not notice, but have not changed anything on the sight.xc since some patches.

Does anyone else have a problem with sphereDispersion?

 

 

xvm.log

sight.xc

python.log

Link to comment
Short link
Share on other sites

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

Так как всё-таки убрать?

допиши событие и используй макрос

"updateEvent": "ON_CURRENT_VEHICLE_DESTROYED, ..."
"alpha": "{{alive?100|0}}"

 

флаг не всегда срабатывает, у затопленников вроде.

  • Upvote 1
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...