Phinist Posted October 24, 2016 Share Posted October 24, 2016 Котярко, у меня сложилось уважительное отношение к тебе, как и к дюжине других местных ребят. Спасибо за труды. Теперь к делу. Прибрёхивает твоя формула, ну например в сравнении с "минималистичными послебоевыми уведомлениями"(протапки) и армогаменновской сессионкой(если первый бой-то разница очевидна). Подчёркиваю свою благодарность за твою работу, но вот как-то так... З.Ы. После праздника, извиняйте... З.Ы.Ы.Может стоит из неё убрать поправки на засвет? Они такие призрачные.... @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted October 24, 2016 Author Share Posted October 24, 2016 Прибрёхивает твоя формула, ну например в сравнении с "минималистичными послебоевыми уведомлениями"(протапки) и армогаменновской сессионкой(если первый бой-то разница очевидна). Видимо, все модификации используют какую-то одну формулу. Я о ней пока что не знаю.В ближайшее время постараюсь исправить. 3 @ Quote Link to comment Short link Share on other sites More sharing options...
Phinist Posted October 24, 2016 Share Posted October 24, 2016 Видимо, все модификации используют какую-то одну формулу. Я о ней пока что не знаю. В ближайшее время постараюсь исправить. Я очень хотел НЕ обидеть. @ Quote Link to comment Short link Share on other sites More sharing options...
Gtraicer Posted October 24, 2016 Share Posted October 24, 2016 (edited) Вещь классная,но требует доведения до ума. (в эффективности считает дичь !!! 70-90к) Edited October 24, 2016 by Gtraicer @ Quote Link to comment Short link Share on other sites More sharing options...
SRQFlyer Posted November 9, 2016 Share 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 Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted November 9, 2016 Author Share Posted November 9, 2016 @SRQFlyer, please, attach archived "res_mods/configs/xvm" folder. @ Quote Link to comment Short link Share on other sites More sharing options...
SRQFlyer Posted November 9, 2016 Share 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 Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted November 9, 2016 Author Share 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 Link to comment Short link Share on other sites More sharing options...
SRQFlyer Posted November 9, 2016 Share 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 Link to comment Short link Share on other sites More sharing options...
SRQFlyer Posted November 10, 2016 Share 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 Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted November 10, 2016 Author Share 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 Link to comment Short link Share on other sites More sharing options...
SRQFlyer Posted November 10, 2016 Share 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 Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted November 10, 2016 Author Share Posted November 10, 2016 I am getting and error when I try this. What error? @ Quote Link to comment Short link Share on other sites More sharing options...
SRQFlyer Posted November 10, 2016 Share 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 Link to comment Short link Share on other sites More sharing options...
refaol Posted November 22, 2016 Share 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 Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted November 22, 2016 Author Share Posted November 22, 2016 появились Expected Tank Values v28 (16th November 2016) надо просто вместо 27 записать? Я, не помню почему, сделал привязку к определённой версии в скрипте (по имени), так что можете заменить файл на новый, только переименовав его на 27-ю версию.Появится возможность, обновлю без этой "привязки" и сразу с новым списком ожидаемых. 1 @ Quote Link to comment Short link Share on other sites More sharing options...
LuckyCrusky Posted November 22, 2016 Share 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 Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted November 22, 2016 Author Share Posted November 22, 2016 (edited) если в "калькуляторе эффективности" сделать так же, или просто импортить оттуда, это сильно отразится на пинге? Попробую подтянуть уже загруженные XVM`ом данные. Загрузку из сети не хотелось бы делать, я изначально эту идею откинул (с wnefficiency.net). Спасибо за наводку. з.ы. а на пинге вообще никак бы не отразилось, т.к. загрузка бы происходила при входе в игру. Edited November 22, 2016 by Kotyarko_O @ Quote Link to comment Short link Share on other sites More sharing options...
Ekspoint Posted November 22, 2016 Share Posted November 22, 2016 кстати, в репозитории xvm/src/xpm/xvm_main/vehinfo_wn8.py это сделано так: __WN8_EXPECTED_DATA_URL = 'http://stat.modxvm.com/wn8.json' если в "калькуляторе эффективности" сделать так же, или просто импортить оттуда, это сильно отразится на пинге? не повлияет @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted November 22, 2016 Author Share Posted November 22, 2016 Обновлено. Ожидаемые значения теперь берутся из XVM. Больше нет необходимости хранить внешний файл. @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.