Jump to content
Korean Random
Sign in to follow this  
Ricosiak

Лог урона в файл

Recommended Posts

Всем привет!

Подскажите, пожалуйста, как лог урона в бою записать в файл?

Установлен XVM, может быть где-то в коде дописать строку записи в файл, можете подсказать?

Share this post


Link to post

Short link
Share on other sites

Из подручного...

 

Если в скрипте риббонов включить отладочный лог

import logging
import BWLogging
from gui.Scaleform.daapi.view.battle.shared.ribbons_panel import _logger
_logger.setLevel(BWLogging.BWLogger.TRACE)

в питонлог будет кидать инфу по всем полученным риббонам

чуть пофильтровать на только урон чем угодно, я в пошике 

Get-Content -Path "S:\World_of_Tanks\python.log" -Wait -Encoding UTF8 | sls -Pattern 'as_addBattleEfficiencyEventS\:\sribbonID=\d+,\sribbonType=\"(kill|damage|ram|burn)\"'

 

spacer.png

хоть вывод в консоль хоть в файл ну а там уже выбрать само значение

типа вот...

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...