Jump to content
Korean Random
Sign in to follow this  
Mixaill

[1.10.0.4/8.6.4_0005] [Fixed] xvm.tooltips: type object 'ConsumablesPanel' has no attribute '_ConsumablesPanel__makeShellTooltip'

Recommended Posts

2020-09-28 16:32:46.118: ERROR: [root] [XFW/Loader] Loading mod: 'com.modxvm.xvm.tooltips' FAILED (exception)
Traceback (most recent call last):
  File "./__init__.py", line 454, in mods_load
  File "scripts/common/Lib/importlib/__init__.py", line 37, in import_module
  File "res_mods/mods/xfw_packages\xvm_tooltips\python\__init__.py", line 524, in <module>
    @overrideMethod(ConsumablesPanel, '_ConsumablesPanel__makeShellTooltip')
  File "./xfw/events.py", line 92, in decorator2
  File "./xfw/events.py", line 70, in _OverrideMethod
AttributeError: type object 'ConsumablesPanel' has no attribute '_ConsumablesPanel__makeShellTooltip'

 

Edited by Mixaill

Share this post


Link to post

Short link
Share on other sites

fix:

change

@overrideMethod(ConsumablesPanel, '_ConsumablesPanel__makeShellTooltip')
def ConsumablesPanel__makeShellTooltip(base, self, descriptor, piercingPower, shotSpeed):

to

overrideMethod(ConsumablesPanel, '_makeShellTooltip')
def ConsumablesPanel_makeShellTooltip(base, self, descriptor, piercingPower, shotSpeed):

 

 

Edited by Aslain
  • Upvote 3

Share this post


Link to post

Short link
Share on other sites
13 минут назад, Aslain сказал:

fix: change  __makeShellTooltip to _makeShellTooltip

something like that?

@overrideMethod(ConsumablesPanel, '_ConsumablesPanel_to_makeShellTooltip')
def ConsumablesPanel_to_makeShellTooltip(base, self, descriptor, piercingPower, shotSpeed):
    result = base(self, descriptor, piercingPower, shotSpeed)
    try:
        if descriptor.kind == SHELL_TYPES.HIGH_EXPLOSIVE:
            key_str = i18n.makeString(MENU.TANK_PARAMS_EXPLOSIONRADIUS)
            result = result.replace('{/BODY}', '\n%s: %s{/BODY}' % (key_str, formatNumber(descriptor.type.explosionRadius)))
    except Exception as ex:
        err(traceback.format_exc())
    return result

хочется поиграть уже наконец :)

Share this post


Link to post

Short link
Share on other sites
42 минуты назад, Aslain сказал:

сенкь вери матч:Default:

все го то один лишний пробел,как много еще нужно узнать в этом языке..а не,не один пробел,теперь все ясно и в принципе понятно...в общих чертах.

Все равно миллион багов,я штук 10 насчитал,ждем Макса в общем

Edited by Slava7572
  • 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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...