DKRUBEN 18 #401340 Posted August 22, 2017 (edited) Я вам написал в личку все Next language I have to learn Russian. Well I needed to move the battle efficiency, so the player does not have to do it manually, therefore, I'm doing a configuration based on XVM addons. Edited August 22, 2017 by DKRUBEN Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #401341 Posted August 22, 2017 Next language I have to learn Russian. Well I needed to move the battle efficiency, so the player does not have to do it manually, therefore, I'm doing a configuration based on XVM addons. I understand you perfectly . here, try to write it the Collector addon ru Marco: ktulho Quote Share this post Link to post Short link Share on other sites
DKRUBEN 18 #401342 Posted August 22, 2017 I understand you perfectly . here, try to write it the Collector addon ru Marco: ktulho ok I will see. Many thanks and sorry for the Russian part. Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #401343 Posted August 22, 2017 ok I will see. Many thanks and sorry for the Russian part. All Good . I understand you perfectly. it happens that the information we need is far from Quote Share this post Link to post Short link Share on other sites
DKRUBEN 18 #402889 Posted September 3, 2017 need update Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #402896 Posted September 3, 2017 (edited) need update already updated py_macro.zip Edited September 3, 2017 by P.S.Enot Quote Share this post Link to post Short link Share on other sites
arom 30 #402912 Posted September 3, 2017 (edited) already updated py_macro.zip из последних ночников выпилены vehinfo_wn8 и vehinfo_xte, невозможно импортировать. Надо переписывать скрипт. Edited September 3, 2017 by arom Quote Share this post Link to post Short link Share on other sites
DKRUBEN 18 #402922 Posted September 3, 2017 already updated py_macro.zip thx Quote Share this post Link to post Short link Share on other sites
sirmax 5,499 #402929 Posted September 3, 2017 из последних ночников выпилены vehinfo_wn8 и vehinfo_xte, невозможно импортировать. Надо переписывать скрипт. методы перенесены в vehinfo Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #402942 Posted September 3, 2017 из последних ночников выпилены vehinfo_wn8 и vehinfo_xte, невозможно импортировать. Надо переписывать скрипт. что я выложил не рабочий файл или что ??? Quote Share this post Link to post Short link Share on other sites
Slava7572 1,685 #402972 Posted September 3, 2017 из последних ночников выпилены vehinfo_wn8 и vehinfo_xte, невозможно импортировать. Надо переписывать скрипт. И этот скрипт поломается? Quote Share this post Link to post Short link Share on other sites
refaol 223 #403839 Posted September 11, 2017 что я выложил не рабочий файл или что ??? Нет, не работает, И с твоим скриптом в логе ошибки. sirmax, on 11 Sept 2017 - 20:51, said: у тебя старый скрипт battleEfficiency.py, нужно обновлять. он не входит в поставку XVM Как я понимаю, потому что методы перенесены в vehinfo Прикрепленный файл battleEfficiency.rar 1,73 Кб 109 раз скачано Почините plz Quote Share this post Link to post Short link Share on other sites
DKRUBEN 18 #403854 Posted September 11, 2017 test this... http://www.mediafire.com/file/qm0tndf7udkdzyt/BattleTotalWN8.zip Quote Share this post Link to post Short link Share on other sites
refaol 223 #403874 Posted September 11, 2017 (edited) test this... http://www.mediafire.com/file/qm0tndf7udkdzyt/BattleTotalWN8.zip Это не будет работать, как я понимаю, потому что у вас там в коде есть строки self.XTE = vehinfo_xte.calculateXTE(self.vehCD, self.damage, self.frags) А такого скрипта vehinfo_xte уже нет Edited September 11, 2017 by refaol Quote Share this post Link to post Short link Share on other sites
DKRUBEN 18 #403880 Posted September 11, 2017 def _load_xte_data_callback(url, bytes): try: if bytes: global _xte_data _xte_data = simplejson.loads(gzip.GzipFile(fileobj=StringIO.StringIO(bytes)).read()) for k, v in _xte_data.iteritems(): vinfo = getVehicleInfoData(int(k)) if vinfo is not None: vinfo['avgdmg'] = float(v['ad']) vinfo['topdmg'] = float(v['td']) vinfo['avgfrg'] = float(v['af']) vinfo['topfrg'] = float(v['tf']) self.XTE = vehinfo.calculateXTE(self.vehCD, self.damage, self.frags) Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #403883 Posted September 11, 2017 (edited) Нет, не работает, И с твоим скриптом в логе ошибки. sirmax, on 11 Sept 2017 - 20:51, said: Как я понимаю, потому что Почините plz какие ошибки покажи??? что в игре не считает или не показывает вообще напиши что происходит то Edited September 11, 2017 by P.S.Enot Quote Share this post Link to post Short link Share on other sites
refaol 223 #403894 Posted September 12, 2017 2017-09-11 20:34:00: [ERROR] Traceback (most recent call last): File "./res_mods/mods/packages\xvm_main\python\python_macro.py", line 128, in load_macros_lib execute(code, file_name, {'xvm': XvmNamespace}) File "./res_mods/mods/packages\xvm_main\python\python_macro.py", line 112, in execute raise ExecutionException("{} at file '{}' line {}: {}".format(error_name, file_name, line_number, message)) ExecutionException: ImportError at file 'res_mods/configs/xvm/py_macro\battleEfficiency.py' line 3: cannot import name vehinfo_wn8 1 Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #404043 Posted September 13, 2017 (edited) Адаптировал к 0.9.20.0. P.S. Еще раз поправил battleEfficiency.rar Edited September 13, 2017 by ktulho 7 Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #404045 Posted September 13, 2017 Адаптировал к 0.9.20.0. P.S. Еще раз поправил battleEfficiency Огромнейшее спасибо вам Quote Share this post Link to post Short link Share on other sites
DKRUBEN 18 #404171 Posted September 14, 2017 Адаптировал к 0.9.20.0. P.S. Еще раз поправил battleEfficiency.rar thx love you. Quote Share this post Link to post Short link Share on other sites