Tapx 226 #361671 Posted October 24, 2016 Котярко, у меня сложилось уважительное отношение к тебе, как и к дюжине других местных ребят. Спасибо за труды. Теперь к делу. Прибрёхивает твоя формула, ну например в сравнении с "минималистичными послебоевыми уведомлениями"(протапки) и армогаменновской сессионкой(если первый бой-то разница очевидна). Подчёркиваю свою благодарность за твою работу, но вот как-то так... З.Ы. После праздника, извиняйте... З.Ы.Ы.Может стоит из неё убрать поправки на засвет? Они такие призрачные.... Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #361709 Posted October 24, 2016 Прибрёхивает твоя формула, ну например в сравнении с "минималистичными послебоевыми уведомлениями"(протапки) и армогаменновской сессионкой(если первый бой-то разница очевидна). Видимо, все модификации используют какую-то одну формулу. Я о ней пока что не знаю.В ближайшее время постараюсь исправить. 3 Quote Share this post Link to post Short link Share on other sites
Tapx 226 #361722 Posted October 24, 2016 Видимо, все модификации используют какую-то одну формулу. Я о ней пока что не знаю. В ближайшее время постараюсь исправить. Я очень хотел НЕ обидеть. Quote Share this post Link to post Short link Share on other sites
Gtraicer 2 #361749 Posted October 24, 2016 (edited) Вещь классная,но требует доведения до ума. (в эффективности считает дичь !!! 70-90к) Edited October 24, 2016 by Gtraicer Quote Share this post Link to post Short link Share on other sites
SRQFlyer 9 #364791 Posted November 9, 2016 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 iterablearg=' efficiencyWN8()' Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #364795 Posted November 9, 2016 @SRQFlyer, please, attach archived "res_mods/configs/xvm" folder. Quote Share this post Link to post Short link Share on other sites
SRQFlyer 9 #364802 Posted November 9, 2016 @SRQFlyer, please, attach archived "res_mods/configs/xvm" folder. Could not figure out how to add a file here, so here is a link to the archive - http://www.mediafire.com/file/ruu0qb01019v4pj/xvm.zip Thanks for the help. Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #364804 Posted November 9, 2016 (edited) @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 November 9, 2016 by Kotyarko_O Quote Share this post Link to post Short link Share on other sites
SRQFlyer 9 #364810 Posted November 9, 2016 @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. Quote Share this post Link to post Short link Share on other sites
SRQFlyer 9 #365078 Posted November 10, 2016 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? Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #365080 Posted November 10, 2016 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. Quote Share this post Link to post Short link Share on other sites
SRQFlyer 9 #365137 Posted November 10, 2016 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. Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #365142 Posted November 10, 2016 I am getting and error when I try this. What error? Quote Share this post Link to post Short link Share on other sites
SRQFlyer 9 #365150 Posted November 10, 2016 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 Quote Share this post Link to post Short link Share on other sites
refaol 223 #366746 Posted November 22, 2016 (edited) @Kotyarko_O, появились Expected Tank Values v28 (16th November 2016) надо просто вместо 27 записать? expected_tank_values_28.json Edited November 22, 2016 by refaol Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #366762 Posted November 22, 2016 появились Expected Tank Values v28 (16th November 2016) надо просто вместо 27 записать? Я, не помню почему, сделал привязку к определённой версии в скрипте (по имени), так что можете заменить файл на новый, только переименовав его на 27-ю версию.Появится возможность, обновлю без этой "привязки" и сразу с новым списком ожидаемых. 1 Quote Share this post Link to post Short link Share on other sites
LuckyCrusky 36 #366795 Posted November 22, 2016 (edited) Я, не помню почему, сделал привязку к определённой версии в скрипте (по имени), так что можете заменить файл на новый, только переименовав его на 27-ю версию. Появится возможность, обновлю без этой "привязки" и сразу с новым списком ожидаемых. кстати, в репозитории xvm/src/xpm/xvm_main/vehinfo_wn8.py это сделано так: __WN8_EXPECTED_DATA_URL = 'http://stat.modxvm.com/wn8.json' если в "калькуляторе эффективности" сделать так же, или просто импортить оттуда, это сильно отразится на пинге? Edited November 22, 2016 by LuckyCrusky 1 Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #366796 Posted November 22, 2016 (edited) если в "калькуляторе эффективности" сделать так же, или просто импортить оттуда, это сильно отразится на пинге? Попробую подтянуть уже загруженные XVM`ом данные. Загрузку из сети не хотелось бы делать, я изначально эту идею откинул (с wnefficiency.net). Спасибо за наводку. з.ы. а на пинге вообще никак бы не отразилось, т.к. загрузка бы происходила при входе в игру. Edited November 22, 2016 by Kotyarko_O Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #366797 Posted November 22, 2016 кстати, в репозитории xvm/src/xpm/xvm_main/vehinfo_wn8.py это сделано так: __WN8_EXPECTED_DATA_URL = 'http://stat.modxvm.com/wn8.json' если в "калькуляторе эффективности" сделать так же, или просто импортить оттуда, это сильно отразится на пинге? не повлияет Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #366802 Posted November 22, 2016 Обновлено. Ожидаемые значения теперь берутся из XVM. Больше нет необходимости хранить внешний файл. Quote Share this post Link to post Short link Share on other sites