Jump to content

[PYTHON]Problem after adding killgui


Go to solution Solved by Deucalion,

Recommended Posts

Hello everyone!

 

I have a little problem after i add killgui.

This is the error that i get.

 


0117 09:47:17664 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0117 09:47:22450 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010).  Automatic conversion will be attempted.
0117 09:47:40618 :: Traceback (most recent call last):
 
0117 09:47:40618 ::   File "networkModule.py", line 237, in SetGamePhase
 
0117 09:47:40618 ::   File "system.py", line 130, in __pack_import
 
0117 09:47:40618 ::   File "
0117 09:47:40618 :: game.py
0117 09:47:40618 :: ", line 
0117 09:47:40618 :: 177
0117 09:47:40618 :: 
 
0117 09:47:40618 ::     
0117 09:47:40619 :: self.quickSlotPageIndex = 0
 
0117 09:47:40619 ::     
0117 09:47:40619 :: ^
 
0117 09:47:40619 :: IndentationError
0117 09:47:40619 :: : 
0117 09:47:40619 :: unexpected indent
0117 09:47:40619 :: 
 
I already checked line 177 in game.py
It's a problem cause by killgui because when i delete that piece  i dont get the error.
 
Here is the python code:

def Open(self):
app.SetFrameSkip(1)
 
self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight())
 
##START_KILLGUI 
        KillGuiBg = ui.AniImageBox() 
        KillGuiBg.AppendImage("d:/ymir work/ui/v4.tga") 
        self.KillGuiBg = KillGuiBg
         
        self.KillGuiBg.SetPosition(wndMgr.GetScreenWidth()-235,185) 
         
        self.KillBlauReich = ui.TextLine() 
        self.KillBlauReich.SetDefaultFontName() 
        self.KillBlauReich.SetPosition((wndMgr.GetScreenWidth()-345)+263, 460) 
        self.KillBlauReich.SetText("blue:   ") 
        self.KillBlauReich.SetOutline() 
         
        self.KillGelbReich = ui.TextLine() 
        self.KillGelbReich.SetDefaultFontName() 
        self.KillGelbReich.SetPosition((wndMgr.GetScreenWidth()-345)+263, 356) 
        self.KillGelbReich.SetText("yellow:    ") 
        self.KillGelbReich.SetOutline() 
 
        self.KillRotReich = ui.TextLine() 
        self.KillRotReich.SetDefaultFontName() 
        self.KillRotReich.SetPosition((wndMgr.GetScreenWidth()-345)+263, 244) 
        self.KillRotReich.SetText("red:    ") 
        self.KillRotReich.SetOutline() 
 
        self.KillMob = ui.TextLine() 
        self.KillMob.SetDefaultFontName() 
        self.KillMob.SetPosition((wndMgr.GetScreenWidth()-345)+263, 572) 
        self.KillMob.SetText("monster:    ") 
        self.KillMob.SetOutline() 
        ##END_KILLGUI 
 
self.quickSlotPageIndex = 0
self.PickingCharacterIndex = -1
self.PickingItemIndex = -1
self.consoleEnable = FALSE
self.isShowDebugInfo = FALSE
self.ShowNameFlag = FALSE
 
self.enableXMasBoom = FALSE
self.startTimeXMasBoom = 0.0
self.indexXMasBoom = 0

 
I hope someone can help me!

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.