Jump to content
Korean Random
ktulho

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

Recommended Posts

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

Исправил.

 

10 минут назад, agachaul сказал:

Сказать что я охренел от оперативности это ничего не сказать, спасибо

 

:no1:

Share this post


Link to post

Short link
Share on other sites

[0.9.21/Build: 8091]  ERROR

Цитата

2017-12-03 08:42:11.200: INFO: =============================
2017-12-03 08:42:11.200: INFO: 2017-12-03 08:42:11: [ERROR] mods/com.modxvm.xfw/python/xfw/events.pyc
2017-12-03 08:42:11.200: ERROR: Traceback (most recent call last):
2017-12-03 08:42:11.200: ERROR:   File "mods/xfw/python/xfw/events.py", line 57, in __event_handler
2017-12-03 08:42:11.201: ERROR:   File "mods/xfw/python/xfw/events.py", line 24, in fire
2017-12-03 08:42:11.201: ERROR:   File "res_mods/configs/xvm/py_macro\sight.py", line 483, in Vehicle_onEnterWorld
2017-12-03 08:42:11.202: ERROR:     isNotEvent = player.arenaGuiType not in [ARENA_GUI_TYPE.EVENT_BATTLES, ARENA_GUI_TYPE.EVENT_BATTLES_2]
2017-12-03 08:42:11.202: ERROR: AttributeError: class ARENA_GUI_TYPE has no attribute 'EVENT_BATTLES_2'
2017-12-03 08:42:11.202: INFO: =============================

 

Share this post


Link to post

Short link
Share on other sites

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

P.S. Кто успел скачать скрипт для 0.9.21_CT, перекачайте

  • Upvote 3

Share this post


Link to post

Short link
Share on other sites

здесь проблемы с временем перезагрузки не отображаются версия CT9.21

 

2017-12-03 20:10:49.116: DEBUG: [DEBUG] (scripts/client/gui/Scaleform/daapi/view/battle/shared/crosshair/container.py, 230): Present view settings of gun markers ([_ViewSettings(viewID=2, linkage='GunMarkerUI', name='sniperGunMarker', hasView=False), _ViewSettings(viewID=1, linkage='GunMarkerUI', name='arcadeGunMarker', hasView=False)],)
2017-12-03 20:10:49.116: ERROR: Traceback (most recent call last):
2017-12-03 20:10:49.116: ERROR:   File "scripts/client/gui/Scaleform/Flash.py", line 293, in __call__
2017-12-03 20:10:49.117: ERROR:   File "scripts/client/gui/Scaleform/Flash.py", line 262, in handleExternalInterfaceCallback
2017-12-03 20:10:49.117: ERROR:   File "scripts/client/gui/Scaleform/framework/application.py", line 61, in _onSWFInited
2017-12-03 20:10:49.117: ERROR:   File "scripts/client/gui/Scaleform/framework/entities/BaseDAAPIModule.py", line 47, in setFlashObject
2017-12-03 20:10:49.117: ERROR:   File "scripts/client/gui/Scaleform/framework/entities/DisposableEntity.py", line 62, in create
2017-12-03 20:10:49.118: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/battle/shared/crosshair/container.py", line 210, in _populate
2017-12-03 20:10:49.118: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/battle/shared/crosshair/container.py", line 201, in startPlugins
2017-12-03 20:10:49.118: ERROR:   File "scripts/client/gui/shared/utils/plugins.py", line 76, in start
2017-12-03 20:10:49.119: ERROR:   File "scripts/client/gui/shared/utils/plugins.py", line 88, in _invoke
2017-12-03 20:10:49.119: ERROR:   File "scripts/client_common/shared_utils/__init__.py", line 48, in forEach
2017-12-03 20:10:49.119: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/battle/shared/crosshair/plugins.py", line 628, in start
2017-12-03 20:10:49.119: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/battle/shared/crosshair/plugins.py", line 664, in __setup
2017-12-03 20:10:49.120: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/battle/shared/crosshair/container.py", line 163, in createGunMarkers
2017-12-03 20:10:49.120: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/battle/shared/crosshair/container.py", line 236, in __setGunMarkers
2017-12-03 20:10:49.120: ERROR:   File "scripts/client/gui/Scaleform/daapi/view/meta/CrosshairPanelContainerMeta.py", line 90, in as_createGunMarkerS

 

Можете что-то изменить

 

MFG

SicFunzler

 

Share this post


Link to post

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

@ktulho , скинь пож. образец оформления параметра, надо что-то всё таки придумать... ну очень надо ges_hmm.gif

Думал примерно так сделать:

"leftTimeText": {
  "reloaded": "Готов",
  "countdown": "0.00"
}

 

Share this post


Link to post

Short link
Share on other sites

где это должно произойти в battleLabelsSight.xc или в sigth.xc

 

Я его построил в sight.xc не имеет никакого значения

 

battleLabelsSight.xc

https://pastebin.com/wHiYGZc5

 

MFG

SicFunzler

Edited by sicfunzler

Share this post


Link to post

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

Где я должен вставить этот текст, пожалуйста, помогите СПАСИБО

пока ни где, это пока только на стадии обсуждения :)

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
On 11/24/2017 at 12:04 PM, H_E_K_P_O_M_A_H_T_ said:

I have something to think about this:


{{ py : sight . prebattleText ? 0.00 | {{ py : sight . leftTime = 0 ? {{ l10n : Ready }} | {{ py : sight . leftTime % 3.1f }}}}}}

 


 

I may not be understanding some of the conversations (translation!), but this has always worked for me concerning "READY" when reload timer is zero. Works on Public but not on Common Test server as already mentioned. ( I am not complaining =) ) - I would guess that new "advanced equipment" has changed the formula for reload time on CT. Just a guess.


Anyway, this is the macro line that I currently use... (Note: shows blank after reload of shell for auto loaders) - Maybe someone better than I can fix this?
battleLabelSight.xc => def.timeReload

"format": "<font face='DS-Digital' size='24'>{{py:sight.leftTime=0?{{py:sight.quantityInClipShells>0?{{py:sight.leftTime=0?Ready|{{py:sight.reloadTimeClip%3.2f}}}}|Ready}}|{{py:sight.leftTime%3.2f}}}}</font>"

Is this what you are looking for?


Example: Auto Loader (AMX 50 120)

5a24ad575a32f_autoloading.thumb.jpg.ca59715176f8069e687a8e1375cf6261.jpg5a24ad4eb7ac5_autoloaded.thumb.jpg.18b446ac076d31d99550acec697a0771.jpg

 

Example: Regular Loader (VK 3002.DB)

5a24ad70a631a_normalloaded.jpg.144bfc4c8fc15151a799523c11fb6da5.jpg5a24ad772ad59_normalloading.jpg.05a877c6bfa3a123278ed14be252eaf9.jpg

 

And thank you for everyone's work, time and enthusiasm. I truly appreciate this forum! =) 

Edited by SmashPuppet
Fixed macro line for auto loaders

Share this post


Link to post

Short link
Share on other sites

>Сейчас таймер до начала боя показывает пусто:

 

7b4be7f6790f49df0651fa9327a86e75.png

{{py:sight.leftTime=0?Ready|{{py:sight.leftTime%3.1f}}}}

 

> Я предлагаю сделать как в клиенте:

 

8efe076bd9433f0d9490210a9aaa14ae.png

{{py:sight.leftTime=0{{py:sight.leftTimeText}}|{{py:sight.leftTime%3.1f}}}}
"leftTimeText": { 
   "battle": "Ready", 
   "prebattle": "0.00" 
}

 

@SmashPuppet , я думаю так будет лучше. icon_smile.gif

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
10 minutes ago, H_E_K_P_O_M_A_H_T_ said:

 

@SmashPuppet  , I think it will be better. icon_smile.gif

 

Certainly easier for the config. Have to keep Ktulho on his toes! :tongue:

 

Though I do not mind it being empty before the battle starts. Cheers!

Share this post


Link to post

Short link
Share on other sites

@H_E_K_P_O_M_A_H_T_ я думал сделать, чтобы макрос {{py:sight.leftTime}} возвращал:

  • во время отсчёта, то что указано в "prebattle";
  • во время перезарядки время пеоезарядки;
  • если перезаряжен, то параметр "battle";
  • если уничтожен, то пусто. 

P. S. Надо ещё параметр на единицы измерения добавить. 

Share this post


Link to post

Short link
Share on other sites

@ktulho , я привёл пример так как я вижу со своей колокольни icon_rolleyes.gif . Ну что ж, ждём тогда обновления скрипта.

>слушай, может можно сделать макрос для УНГ для арты, чтоб через "rotation" вращать поле по отношению к камере? Их то же доделать не мешало бы.

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