Jump to content
Korean Random
Kotyarko_O

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

Recommended Posts

Я вам написал в личку все

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 by DKRUBEN

Share this post


Link to post

Short link
Share on other sites

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

Share this post


Link to post

Short link
Share on other sites

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.

Share this post


Link to post

Short link
Share on other sites

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

Share this post


Link to post

Short link
Share on other sites

already updated  attachicon.gifpy_macro.zip

из последних ночников выпилены vehinfo_wn8 и vehinfo_xte, невозможно импортировать. Надо переписывать скрипт.

Edited by arom

Share this post


Link to post

Short link
Share on other sites

из последних ночников выпилены vehinfo_wn8 и vehinfo_xte, невозможно импортировать. Надо переписывать скрипт.

методы перенесены в vehinfo

Share this post


Link to post

Short link
Share on other sites

из последних ночников выпилены vehinfo_wn8 и vehinfo_xte, невозможно импортировать. Надо переписывать скрипт.

что я выложил не рабочий файл или что ???

Share this post


Link to post

Short link
Share on other sites

из последних ночников выпилены vehinfo_wn8 и vehinfo_xte, невозможно импортировать. Надо переписывать скрипт.

И этот скрипт поломается?

Share this post


Link to post

Short link
Share on other sites

что я выложил не рабочий файл или что ???

Нет, не работает, И с твоим скриптом в логе ошибки.

 

sirmax, on 11 Sept 2017 - 20:51, said:

 

у тебя старый скрипт battleEfficiency.py, нужно обновлять. он не входит в поставку XVM

 

 

Как я понимаю, потому что 

 

методы перенесены в vehinfo

 Прикрепленный файл  battleEfficiency.rar   1,73 Кб   109 раз скачано

Почините plz 

Share this post


Link to post

Short link
Share on other sites

 

Это не будет работать, как я понимаю, потому что у вас там в коде есть строки

self.XTE = vehinfo_xte.calculateXTE(self.vehCD, self.damage, self.frags)

А такого скрипта vehinfo_xte уже нет 

Edited by refaol

Share this post


Link to post

Short link
Share on other sites

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)

Share this post


Link to post

Short link
Share on other sites

Нет, не работает, И с твоим скриптом в логе ошибки.

 

sirmax, on 11 Sept 2017 - 20:51, said:

 

 

Как я понимаю, потому что 

 

Почините plz 

какие ошибки покажи???  что в игре не считает или не показывает вообще напиши что происходит то 

Edited by P.S.Enot

Share this post


Link to post

Short link
Share on other sites


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

  • Upvote 1

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