Jump to content

Problem with Target information system


Recommended Posts

  • Premium

Hello community,

i have problem with Target information system.. 

1221 18:36:15609 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
1221 18:36:24828 :: Traceback (most recent call last):

1221 18:36:24828 ::   File "networkModule.py", line 247, in SetGamePhase

1221 18:36:24829 ::   File "game.py", line 106, in __init__

1221 18:36:24829 ::   File "uiTarget.py", line 436, in __init__

1221 18:36:24829 :: AttributeError
1221 18:36:24829 :: : 
1221 18:36:24829 :: 'TargetBoard' object has no attribute 'InfoBoard'
1221 18:36:24829 :: 

 

Here is my uiTarget.py

CLICK ME

 

 

How fix this? thanks for every advice. 

~ stussko

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Search:

    if app.ENABLE_SEND_TARGET_INFO:
        class InfoBoard(ui.ThinBoard):
            class ItemListBoxItem(ui.ListBoxExNew.Item):
                def __init__(self, width):
                    ui.ListBoxExNew.Item.__init__(self)

                    image = ui.ExpandedImageBox()
                    image.SetParent(self)
                    image.Show()
                    self.image = image

                    nameLine = ui.TextLine()
                    nameLine.SetParent(self)
                    nameLine.SetPosition(32 + 5, 0)
                    nameLine.Show()
                    self.nameLine = nameLine

                    self.SetSize(width, 32 + 5)

                def LoadImage(self, image, name = None):
                    self.image.LoadImage(image)
                    self.SetSize(self.GetWidth(), self.image.GetHeight() + 5 * (self.image.GetHeight() / 32))
                    if name != None:
                        self.SetText(name)

                def SetText(self, text):
                    self.nameLine.SetText(text)

                def RefreshHeight(self):
                    ui.ListBoxExNew.Item.RefreshHeight(self)
                    self.image.SetRenderingRect(0.0, 0.0 - float(self.removeTop) / float(self.GetHeight()), 0.0, 0.0 - float(self.removeBottom) / float(self.GetHeight()))
                    self.image.SetPosition(0, - self.removeTop)

 

change with this:

 

class TargetBoard(ui.ThinBoard):

    if app.ENABLE_SEND_TARGET_INFO:
        class InfoBoard(ui.ThinBoard):
            class ItemListBoxItem(ui.ListBoxExNew.Item):
                def __init__(self, width):
                    ui.ListBoxExNew.Item.__init__(self)

                    image = ui.ExpandedImageBox()
                    image.SetParent(self)
                    image.Show()
                    self.image = image

                    nameLine = ui.TextLine()
                    nameLine.SetParent(self)
                    nameLine.SetPosition(32 + 5, 0)
                    nameLine.Show()
                    self.nameLine = nameLine

                    self.SetSize(width, 32 + 5)

                def LoadImage(self, image, name = None):
                    self.image.LoadImage(image)
                    self.SetSize(self.GetWidth(), self.image.GetHeight() + 5 * (self.image.GetHeight() / 32))
                    if name != None:
                        self.SetText(name)

                def SetText(self, text):
                    self.nameLine.SetText(text)

                def RefreshHeight(self):
                    ui.ListBoxExNew.Item.RefreshHeight(self)
                    self.image.SetRenderingRect(0.0, 0.0 - float(self.removeTop) / float(self.GetHeight()), 0.0, 0.0 - float(self.removeBottom) / float(self.GetHeight()))
                    self.image.SetPosition(0, - self.removeTop)
 

Link to comment
Share on other sites

  • Premium

New error.

1222 21:20:32967 :: ValueError
1222 21:20:32967 :: : 
1222 21:20:32967 :: incomplete format
1222 21:20:32967 :: 

1222 21:20:33097 :: Traceback (most recent call last):

1222 21:20:33097 ::   File "ui.py", line 1350, in CallEvent

1222 21:20:33097 ::   File "ui.py", line 87, in __call__

1222 21:20:33098 ::   File "ui.py", line 69, in __call__

1222 21:20:33098 ::   File "uiTarget.py", line 545, in OnPressedInfoButton

1222 21:20:33098 ::   File "uiTarget.py", line 143, in Open

1222 21:20:33099 ::   File "uiTarget.py", line 167, in __LoadInformation

1222 21:20:33099 ::   File "uiTarget.py", line 234, in __LoadInformation_Race

1222 21:20:33099 :: ValueError
1222 21:20:33099 :: : 
1222 21:20:33099 :: incomplete format
1222 21:20:33099 :: 

 

Link to comment
Share on other sites

  • 1 month later...
On 22/12/2017 at 8:21 PM, stussy said:

New error.


1222 21:20:32967 :: ValueError
1222 21:20:32967 :: : 
1222 21:20:32967 :: incomplete format
1222 21:20:32967 :: 

1222 21:20:33097 :: Traceback (most recent call last):

1222 21:20:33097 ::   File "ui.py", line 1350, in CallEvent

1222 21:20:33097 ::   File "ui.py", line 87, in __call__

1222 21:20:33098 ::   File "ui.py", line 69, in __call__

1222 21:20:33098 ::   File "uiTarget.py", line 545, in OnPressedInfoButton

1222 21:20:33098 ::   File "uiTarget.py", line 143, in Open

1222 21:20:33099 ::   File "uiTarget.py", line 167, in __LoadInformation

1222 21:20:33099 ::   File "uiTarget.py", line 234, in __LoadInformation_Race

1222 21:20:33099 :: ValueError
1222 21:20:33099 :: : 
1222 21:20:33099 :: incomplete format
1222 21:20:33099 :: 

 

I have this error too what's the fix ? 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.