[Python] Effect meghívások hiba

Indította Fantasy™, 2017-08-07, 09:14:47

Sziasztok mint a témában is írtam beraktam red effect leírását majd a kliens karakter választás után elkezd tölteni de nem lép be a játékba ezt írja sys:
0807 09:10:30840 :: CTextFileLoader::LoadGroup : must have a value (filename: d:/ymir work/effect/etc/emoticon/vip.mse line: 0 key: ‰png)
0807 09:10:30841 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/emoticon/pvp.mse) Error
0807 09:10:30841 :: CInstanceBase::RegisterEffect(eEftType=122, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/emoticon/pvp.mse, isCache=0) - Error
0807 09:10:30841 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/emoticon/kaszt.mse) Error
0807 09:10:30841 :: CInstanceBase::RegisterEffect(eEftType=123, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/emoticon/kaszt.mse, isCache=0) - Error
0807 09:10:38442 :: Traceback (most recent call last):

0807 09:10:38442 ::   File "networkModule.py", line 238, in SetGamePhase

0807 09:10:38442 ::   File "system.py", line 130, in __pack_import

0807 09:10:38443 ::   File "
0807 09:10:38443 :: game.py
0807 09:10:38443 :: ", line
0807 09:10:38443 :: 1441
0807 09:10:38443 ::

0807 09:10:38443 ::     
0807 09:10:38443 :: app.UpdateGame()

0807 09:10:38443 ::     
0807 09:10:38443 :: ^

0807 09:10:38443 :: IndentationError
0807 09:10:38443 :: :
0807 09:10:38443 :: unexpected indent
0807 09:10:38443 ::


Egész véletlen nem maradt ott egy felesleges vessző vagy valami az 1441-i sorba? Leht véletlen ahogy másoltad be felé a sorokat plusz dolgokat is bemásoltál

így van :
def OnUpdate(self):
        gamemasta = player.GetName()
app.UpdateGame()

if self.mapNameShower.IsShow():
self.mapNameShower.Update()

if self.isShowDebugInfo:
self.UpdateDebugInfo()

if self.enableXMasBoom:
self.__XMasBoom_Update()
self.interface.BUILD_OnUpdate()

if app.GetGlobalTimeStamp() - self.lastupdate < 0:
self.lastupdate = app.GetGlobalTimeStamp()
if app.GetGlobalTimeStamp() - self.lastupdatee < 0:
self.lastupdatee = app.GetGlobalTimeStamp()
if gamemasta.find("[VIP]")!=-1:
if self.lastupdate == 0:
self.lastupdate = app.GetGlobalTimeStamp()
if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
self.lastupdate = app.GetGlobalTimeStamp()
net.SendEmoticon(29)
if gamemasta.find("[PvP]")!=-1:
if self.lastupdate == 0:
self.lastupdate = app.GetGlobalTimeStamp()
if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
self.lastupdate = app.GetGlobalTimeStamp()
net.SendEmoticon(30)

2017-08-07, 13:26:48 #3 Utolsó szerkesztés: 2017-08-07, 13:31:06 Szerző: mikee0121
egy komplett game.py adj mert ebből nem látom melyik a 1441-sor és most betűről betúre nem fogom át nézni hol van a hiba

Üzenet összefésülés: 2017-08-07, 13:31:06

Na így hiurtelen át másolva notepadból nem szereti a python ha a 1-2-3 négy tabulátor szóközzel van megadva
ez esetben neked ennél a sorban

        gamemasta = player.GetName()

szóközökkel van megadva a kívánt tabbolás cseréld két tab-ra és elviekben nem fog rá panaszkodni. De ha igen akkor kopmlet game.py és sysert adj légykedves

[code0807 13:47:19123 :: Cannot find item by 0
0807 13:47:19123 :: Cannot find item by 0
0807 13:47:19123 :: Cannot find item by 0
0807 13:47:19123 :: Cannot find item by 0
0807 13:47:19123 :: Cannot find item by 0
0807 13:47:19123 :: Cannot find item by 0
0807 13:47:19123 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19124 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19125 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19126 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19127 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19128 :: Cannot find item by 0
0807 13:47:19129 :: Cannot find item by 0
0807 13:47:19129 :: Cannot find item by 0
0807 13:47:19129 :: Cannot find item by 0
0807 13:47:19129 :: Cannot find item by 0
0807 13:47:19129 :: Cannot find item by 0
0807 13:47:19129 :: Cannot find item by 0
0807 13:47:32447 :: CTextFileLoader::LoadGroup : must have a value (filename: d:/ymir work/effect/etc/emoticon/vip.mse line: 0 key: ‰png)
0807 13:47:32447 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/emoticon/pvp.mse) Error
0807 13:47:32447 :: CInstanceBase::RegisterEffect(eEftType=122, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/emoticon/pvp.mse, isCache=0) - Error
0807 13:47:40137 :: Traceback (most recent call last):

0807 13:47:40137 ::   File "networkModule.py", line 238, in SetGamePhase

0807 13:47:40137 ::   File "system.py", line 130, in __pack_import

0807 13:47:40138 ::   File "
0807 13:47:40138 :: game.py
0807 13:47:40138 :: ", line
0807 13:47:40138 :: 1439
0807 13:47:40138 ::

0807 13:47:40138 ::     
0807 13:47:40138 :: gamemasta = player.GetName()

0807 13:47:40138 ::     
0807 13:47:40138 :: 
0807 13:47:40138 :: 
0807 13:47:40138 :: 
0807 13:47:40138 :: 
0807 13:47:40138 :: 
0807 13:47:40138 :: 
0807 13:47:40138 :: 
0807 13:47:40138 :: 
0807 13:47:40138 :: ^

0807 13:47:40138 :: IndentationError
0807 13:47:40138 :: :
0807 13:47:40138 :: expected an indented block
0807 13:47:40138 ::

]

Amit mondtam csináld meg előző hozzászólásomban találod meg