Jump to content
Korean Random
Kotyarko_O

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

Recommended Posts

Котярко, у меня сложилось уважительное отношение к тебе, как и к дюжине других местных ребят. Спасибо за труды.

Теперь к делу.

Прибрёхивает твоя формула, ну например в сравнении с "минималистичными послебоевыми уведомлениями"(протапки) и армогаменновской сессионкой(если первый бой-то разница очевидна).

Подчёркиваю свою благодарность за твою работу, но вот как-то так...

З.Ы. После праздника, извиняйте...

З.Ы.Ы.Может стоит из неё убрать поправки на засвет? Они такие призрачные....

Share this post


Link to post

Short link
Share on other sites

 

 

Прибрёхивает твоя формула, ну например в сравнении с "минималистичными послебоевыми уведомлениями"(протапки) и армогаменновской сессионкой(если первый бой-то разница очевидна).
Видимо, все модификации используют какую-то одну формулу. Я о ней пока что не знаю.

В ближайшее время постараюсь исправить.

  • Upvote 3

Share this post


Link to post

Short link
Share on other sites

Видимо, все модификации используют какую-то одну формулу. Я о ней пока что не знаю.

В ближайшее время постараюсь исправить.

 

Я очень хотел НЕ обидеть.

Share this post


Link to post

Short link
Share on other sites

Вещь классная,но требует доведения до ума. (в эффективности считает дичь !!! 70-90к)

Edited by Gtraicer

Share this post


Link to post

Short link
Share on other sites

I am getting this error when I try to run, any suggestions?

 

2016-11-09 10:28:54: [ERROR] Traceback (most recent call last):
  File "C:\Games\World_of_Tanks\res_mods\mods/packages\xvm_main\python\python_macro.py", line 156, in process_python_macro
    (func, deterministic) = get_function(arg)
  File "C:\Games\World_of_Tanks\res_mods\mods/packages\xvm_main\python\python_macro.py", line 147, in get_function
    (func, deterministic) = _container.get(func_name)
TypeError: 'NoneType' object is not iterable
arg=' efficiencyWN8()'

Share this post


Link to post

Short link
Share on other sites

@SRQFlyer, your battleLabelsTemplates.xc:

"format": "<textformat tabstops = '[80]'> WN8: {{py: efficiencyWN8()}} <tab> EFF: {{py: efficiencyEFF}} <br/> DIFF: {{py: efficiencyDIFFExpDmg}} <tab> DMG: {{hitlog.dmg-total()}} </ textformat> "

should be like this:

"format": "<textformat tabstops = '[80]'> WN8: {{py:efficiencyWN8()}} <tab> EFF: {{py:efficiencyEFF}} <br/> DIFF: {{py:efficiencyDIFFExpDmg}} <tab> DMG: {{hitlog.dmg-total()}} </ textformat> "

I.e., you must delete all spaces (" ") from py_macro.

Edited by Kotyarko_O

Share this post


Link to post

Short link
Share on other sites

@SRQFlyer, your battleLabelsTemplates.xc:

"format": "<textformat tabstops = '[80]'> WN8: {{py: efficiencyWN8()}} <tab> EFF: {{py: efficiencyEFF}} <br/> DIFF: {{py: efficiencyDIFFExpDmg}} <tab> DMG: {{hitlog.dmg-total()}} </ textformat> "

should be like this:

"format": "<textformat tabstops = '[80]'> WN8: {{py:efficiencyWN8()}} <tab> EFF: {{py:efficiencyEFF}} <br/> DIFF: {{py:efficiencyDIFFExpDmg}} <tab> DMG: {{hitlog.dmg-total()}} </ textformat> "

I.e., you must delete all spaces (" ") from py_macro.

 

Thank you for the help I completely overlooked those spaces.

Share this post


Link to post

Short link
Share on other sites

I ran my Lowe and the expected damage was showing as 1403, from the json file the Lowe should have a expected damage of 1241.  I changed:

self.DIFFExpDmg = int(self.damage - expDamage)

to 

self.DIFFExpDmg = int(expDamage) and then to self.DIFFExpDmg = int(self.damage) just so i could see the expDamage and self damage.  The expDamage is showing the incorrect value.

expDamage

 

I have noticed in some other tanks the values are also off.  I am wondering if the IDNum is not returning the correct values.  

 

Is there a way to put a printf or log() statement in code so I can print to the python log what the values are?

Share this post


Link to post

Short link
Share on other sites

 

 

I ran my Lowe and the expected damage was showing as 1403, from the json file the Lowe should have a expected damage of 1241.

I have noticed in some other tanks the values are also off.  I am wondering if the IDNum is not returning the correct values.

I`ll check it, thanks for report.

 

 

 

Is there a way to put a printf or log() statement in code so I can print to the python log what the values are?
Yes. You can use log('{}'.format(this_is_variable_to_log)) function.

Share this post


Link to post

Short link
Share on other sites

 

Yes. You can use log('{}'.format(this_is_variable_to_log)) function.

 

 

To print the expDamage would this be the correct format?

self.DIFFExpDmg = int(self.damage - expDamage)

log('{}'.format(expDamage))

 

I am getting and error when I try this.

Share this post


Link to post

Short link
Share on other sites

What error?

Sorry for leaving out.

 

From Python log:

2016-11-10 16:28:58.960: ERROR: <unknown>: inconsistent use of tabs and spaces in indentation

 

From XVM Log:

2016-11-10 16:28:58: [ERROR] Traceback (most recent call last):

  File "C:\Games\World_of_Tanks\res_mods\mods/packages\xvm_main\python\python_macro.py", line 127, in load_macros_lib

    code = load(file_name)

  File "C:\Games\World_of_Tanks\res_mods\mods/packages\xvm_main\python\python_macro.py", line 101, in load

    return parse(source, file_name)

  File "C:\Games\World_of_Tanks\res_mods\mods/packages\xvm_main\python\python_macro.py", line 91, in parse

    node = ast.parse(source)

  File "scripts/common/Lib/ast.py", line 37, in parse

  File "<unknown>", line 105

    log('{}'.format(expDamage))

    ^

IndentationError: unexpected indent

Share this post


Link to post

Short link
Share on other sites

 

 

появились Expected Tank Values v28 (16th November 2016) надо просто вместо 27 записать?
Я, не помню почему, сделал привязку к определённой версии в скрипте (по имени), так что можете заменить файл на новый, только переименовав его на 27-ю версию.

Появится возможность, обновлю без этой "привязки" и сразу с новым списком ожидаемых.

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Я, не помню почему, сделал привязку к определённой версии в скрипте (по имени), так что можете заменить файл на новый, только переименовав его на 27-ю версию.

Появится возможность, обновлю без этой "привязки" и сразу с новым списком ожидаемых.

 

кстати, в репозитории xvm/src/xpm/xvm_main/vehinfo_wn8.py это сделано так:

__WN8_EXPECTED_DATA_URL = 'http://stat.modxvm.com/wn8.json'

если в "калькуляторе эффективности" сделать так же, или просто импортить оттуда, это сильно отразится на пинге?

Edited by LuckyCrusky
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
если в "калькуляторе эффективности" сделать так же, или просто импортить оттуда, это сильно отразится на пинге?

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

Спасибо за наводку.

 

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

Edited by Kotyarko_O

Share this post


Link to post

Short link
Share on other sites

кстати, в репозитории xvm/src/xpm/xvm_main/vehinfo_wn8.py это сделано так:

__WN8_EXPECTED_DATA_URL = 'http://stat.modxvm.com/wn8.json'

если в "калькуляторе эффективности" сделать так же, или просто импортить оттуда, это сильно отразится на пинге?

не повлияет

Share this post


Link to post

Short link
Share on other sites

Обновлено.

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

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