Welcome to Onforum.net - Web and gaming resource community

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?
  • elefant.ro%20

Upgrade to python2.7 issue (uitooltip)

Status
Not open for further replies.

Aioria

Banned
Banned
Credits
1
Hi guys! I've a problem with the upgrade to python 2.7.

When i try to update to python 2.7 i get this error in syserr:

Python:
0125 23:20:43598 ::   File "ui.py", line 1493, in OnOverInItem

0125 23:20:43598 ::   File "ui.py", line 84, in __call__

0125 23:20:43598 ::   File "ui.py", line 75, in __call__

0125 23:20:43598 ::   File "uiInventory.py", line 968, in OverInItem

0125 23:20:43598 ::   File "uiInventory.py", line 1144, in ShowToolTip

0125 23:20:43598 ::   File "uiToolTip.py", line 545, in SetInventoryItem

0125 23:20:43598 ::   File "uiToolTip.py", line 1212, in AddItemData

0125 23:20:43598 ::   File "uiToolTip.py", line 844, in __AppendAttributeInformation

0125 23:20:43598 ::   File "uiToolTip.py", line 524, in AppendTextLine

0125 23:20:43598 ::   File "uiToolTip.py", line 207, in AppendTextLine

0125 23:20:43598 ::   File "uiToolTip.py", line 239, in ResizeToolTip

0125 23:20:43598 ::   File "ui.py", line 1912, in SetSize

0125 23:20:43598 :: TypeError
0125 23:20:43598 :: :
0125 23:20:43598 :: an integer is required

and this is what happens in game Click here to see
What i can do? where i have to look?
 

Aioria

Banned
Banned
Credits
1
Thank you for reply topo, I'll check when I'm come back at home, do you know what I should lookin for in the item proto client?
 

Aioria

Banned
Banned
Credits
1
Ok! I tried replacing item proto, etc, with others that works, but still have the issue, i just noticed that it occours only for weapons with avg/abi like lv. 30/75 weapons
 

Aioria

Banned
Banned
Credits
1
Ok i think i solved. I don't know if it is correct, help me to understand but:
This was the code before:

Python:
                    affectColor = self.__GetAttributeColorMax(value, type)  <------------------
                    self.AppendTextLine(affectString, affectColor)

    def __GetAttributeColor(self, index, value):
        if value > 0:
            if index >= 5:
                return self.SPECIAL_POSITIVE_COLOR2
            else:
                return self.SPECIAL_POSITIVE_COLOR
        elif value == 0:
            return self.NORMAL_COLOR
        else:
            return self.NEGATIVE_COLOR

    def __GetAttributeColorMax(self, value, index): <------------------------
        MAX_ATTR_VALUE = (
            [1,2000, "MAX_HP"],

and then:

Python:
                    affectColor = self.__GetAttributeColorMax(i, value, type) <------------------
                    self.AppendTextLine(affectString, affectColor)

    def __GetAttributeColor(self, index, value):
        if value > 0:
            if index >= 5:
                return self.SPECIAL_POSITIVE_COLOR2
            else:
                return self.SPECIAL_POSITIVE_COLOR
        elif value == 0:
            return self.NORMAL_COLOR
        else:
            return self.NEGATIVE_COLOR

    def __GetAttributeColorMax(self, value, index, type): <------------------
        MAX_ATTR_VALUE = (
            [1,2000, "MAX_HP"],
 
Status
Not open for further replies.

About us

OnForum.net is a resource community where aspiring webmasters and designers can share content and receive support for a wide variety of software platforms. We are working every day to make sure our community is one of the best.

PARTNERS

Follow us

We recommend

Doza de Blog
Top

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

The advertises that you'll see aren't intrusive they just help us to keep the community alive

If you don't want to see those ads just buy an upgrade.

Thank you for understanding!