Onforum.net - Web and gaming resource community

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members .

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

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!

Baba2

Baba2 Purchase

User upgrade! at

🔥 Upgrade Now

Escanor25 Purchase

User upgrade! at

🔥 Upgrade Now
Tigrex

Tigrex Purchase

User upgrade! at

🔥 Upgrade Now