Jump to content
Korean Random
Kotyarko_O

"Калькулятор эффективности" средствами XVM.

Recommended Posts

Обновлено.

 

  • Ожидаемые значения теперь берутся из XVM. Больше нет необходимости хранить внешний файл.
на сервере хвм не сразу обновляется файл, бери напрямую с сайта рейтинга
  • Upvote 1
  • Downvote 1

Share this post


Link to post

Short link
Share on other sites

@Ekspoint,

 

Загрузку из сети не хотелось бы делать, я изначально эту идею откинул (с wnefficiency.net).

Не люблю все эти подгрузки. А подождать некоторое время, пока таблица обновится в XVM - совершенно не проблема.

Share this post


Link to post

Short link
Share on other sites

 

 

Ожидаемые значения теперь берутся из XVM. Больше нет необходимости хранить внешний файл.
 

Я правильно понимаю, что больше никаких правок не было и если переименовал в _27.json файл ожидаемых значений, то нет необходимости py скрипт менять?

Share this post


Link to post

Short link
Share on other sites

Я правильно понимаю, что больше никаких правок не было и если переименовал в _27.json файл ожидаемых значений, то нет необходимости py скрипт менять?

Да, правильно.

Share this post


Link to post

Short link
Share on other sites

Hi,

I tested with various templates config, it doesn't work for me.

Can you help me ? What is the problem with my config ?

Datas don't load or update.

 

Thanks

 

attachicon.gifbattleLabelsTemplates.xc

attachicon.gifshot_297.jpg

 

 

attachicon.gifbattleLabelsTemplates2.xc

attachicon.gifshot_295.jpg

The same for me, but I didn't have time to waste. Maybe the problem is because we are playing on eu server.

Share this post


Link to post

Short link
Share on other sites

@panteror, did you tried the last version of this addon (on vanilla client + XVM, without other modifications)? Please, try again and attach new logs with replay.

Edited by Kotyarko_O

Share this post


Link to post

Short link
Share on other sites

@panteror, did you tried the last version of this addon (on vanilla client + XVM, without other modifications)? Please, try again and attach new logs with replay.

My screenshots were with the last version (23/11/2016) but i will test tonight with only xvm and tell you.

@panteror, did you tried the last version of this addon (on vanilla client + XVM, without other modifications)? Please, try again and attach new logs with replay.

 

Same with only xvm.

battleLabels.xc

battleLabelsTemplates.xc

post-29578-0-38900700-1480356040_thumb.jpg

post-29578-0-05353700-1480356054_thumb.jpg

python.log

xvm.log

20161128_1850_france-F08_AMX_50_100_14_siegfried_line.wotreplay

Share this post


Link to post

Short link
Share on other sites

@panteror, @Сербия, you enabled this options in game settings?
post-16412-0-13648100-1480529047_thumb.jpg
(there is russian lang on screen, but you can orientate by numbers: 1, 2, 3, 5, 6, 7, 10, 12).

Edited by Kotyarko_O
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

 

 

нет :bo: , кроме 1, 5 и 11
Включите все, которые отображены включёнными на скриншоте, прикреплённом мною выше.

Добавил эту информацию в шапку темы.

Share this post


Link to post

Short link
Share on other sites

@panteror, @Сербия, you enabled this options in game settings?

attachicon.gifshot_025.jpg

(there is russian lang on screen, but you can orientate by numbers: 1, 2, 3, 5, 6, 7, 10, 12).

no because I don't like these annoying message in screen.

I didn't know your modification used these settings

post-29578-0-06431700-1480667202_thumb.jpg

 

I will enable it and test it again.

Thanks

Share this post


Link to post

Short link
Share on other sites

Привет!
 

WN8 показывает 3 с лишним, а он на самом деле 1884, та же фигня с эфф. Дифф до первого риббона 0

Ставил на чистый клиент, могу показать реплей, что делать?

Edited by DrShats

Share this post


Link to post

Short link
Share on other sites

@DrShats, тут на скрине приведены необходимые риббоны для более-менее корректной работы аддона. У вас они активны?

 

Всё активно, но я сам дурак, конфиги не дефолтные поставил, с дефолтными считает правильно, но остаётся 0 дифф пока риббон не вылезет какой то. С очтальным буду конфиги свои шерстить, а как сделать, чтобы дифф в начале боя ненулевой выставлялся? 

 

PS Можно на ты, все же в танках 8)))

Edited by DrShats

Share this post


Link to post

Short link
Share on other sites

Обновлено.

  • Исправлены ошибки, возникающие в случае, если конкретный танк отсутствует в таблице ожидаемых значений.
  • Исправлено отображение начального значения для DIFF.
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Обновлено.

  • Добавлены макросы {{py:efficiencyXTE}}, {{py:efficiencyXTEColor}}.
  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

не обязательно включать опции в бою
можно сделать так
 
например

from gui.battle_control.controllers import feedback_events
from gui.Scaleform.daapi.view.battle.shared import ribbons_aggregator
from gui.Scaleform.genConsts.BATTLE_EFFICIENCY_TYPES import BATTLE_EFFICIENCY_TYPES as BET

def _onBattleEvents(events):
    avgSpot = 0
    avgDef = 0
    avgCap = 0
    for data in events:
        event = feedback_events.PlayerFeedbackEvent.fromDict(data)
        ribbon = ribbons_aggregator._createRibbonFromPlayerFeedbackEvent(event)
        if ribbon.getType() == BET.DETECTION:
            avgSpot = ribbon.getCount()  
            print avgSpot
        if ribbon.getType() == BET.DEFENCE:
            avgDef += ribbon.getPoints()
            if avgDef >= 100:
                avgDef = 100
            print 'DEFENCE', avgDef
        if ribbon.getType() == BET.CAPTURE:
            avgCap = ribbon.getPoints()
            print 'CAPTURE', avgCap
     
            
@registerEvent(PlayerAvatar, 'onBattleEvents')
def onBattleEvents(self, events):
    _onBattleEvents(events)
  • Upvote 1

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