☓♫Leozão♫☓ 3 Posted June 24, 2013 Obrigado por partilhares com a comunidade. Cumprimentos, Share this post Link to post Share on other sites
TiiTѳiɳѳ 173 Posted June 24, 2013 Alguem que conseguiu deixe ai o game.py ou diga onde meter isto: def __ServerCommand_Build(self):serverCommandList={##TEAM_LOGIN_WITH_LIST"SetTeamOnline" : self.__TeamLogin,"SetTeamOffline" : self.__TeamLogout,##END_OF_TEAM_LOGIN_WITH_LIST}# TEAM_LISTdef __TeamLogin(self, name):if self.interface.wndMessenger:self.interface.wndMessenger.OnLogin(2, name)def __TeamLogout(self, name):if self.interface.wndMessenger:self.interface.wndMessenger.OnLogout(2, name)# END_OF_TEAM_LISTna game.pyalguem? Share this post Link to post Share on other sites
мαя¢σs ๖ۣۣۜDaniel 69 Posted June 25, 2013 O problema é que vocês querem a papinha toda na mão, se vocês repararem bem nos comandos e nos ficheiros reparam +/- onde têm que por as coisas é que é easy mesmo este tuturial, se tivesse algo mal no tópico ainda compreendia, mas eu pos tudo direito. Cumprimentos. Share this post Link to post Share on other sites
kimameixede 70 Posted June 29, 2013 Pois eu sei o que falta ai ..... Tópico incompleto noob falta acrescentares isto. procura pro def __ServerCommand_Build(self): E acrecenta # TEAM_LIST def __TeamLogin(self, name): if self.interface.wndMessenger: self.interface.wndMessenger.OnLogin(2, name) def __TeamLogout(self, name): if self.interface.wndMessenger: self.interface.wndMessenger.OnLogout(2, name) # END_OF_TEAM_LIST ajudei? http://cyber-gamers.org/public/style_emoticons/default/451960.gif senao nunca mais ajudo. 7 SINVAL o.O, Apolo, amptteixeira1 and 4 others reacted to this Share this post Link to post Share on other sites
ISunset 4 Posted August 20, 2015 Pessoal ajudem-me, faz o loading mas chega a 100 e fica parado syserr: 0820 14:07:11448 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR 0820 14:07:13406 :: 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. 0820 14:07:19647 :: Traceback (most recent call last): 0820 14:07:19647 :: File "networkModule.py", line 231, in SetGamePhase 0820 14:07:19648 :: File "system.py", line 130, in __pack_import 0820 14:07:19648 :: File " 0820 14:07:19648 :: <string> 0820 14:07:19648 :: ", line 0820 14:07:19648 :: 1700 0820 14:07:19648 :: 0820 14:07:19648 :: 0820 14:07:19648 :: def __TeamLogin(self, name): 0820 14:07:19648 :: 0820 14:07:19648 :: 0820 14:07:19648 :: 0820 14:07:19648 :: ^ 0820 14:07:19648 :: SyntaxError 0820 14:07:19648 :: : 0820 14:07:19648 :: invalid syntax 0820 14:07:19648 :: Share this post Link to post Share on other sites
ISunset 4 Posted August 20, 2015 Resolvido :) Pessoal, se alguem tiver duvida a colocar isto funcional diga... Mande MP Sorry Double post Share this post Link to post Share on other sites
Francisco Afonso 2 Posted January 13, 2019 Em 29/06/2013 at 18:34, kimameixede disse: Pois eu sei o que falta ai ..... Tópico incompleto noob falta acrescentares isto. procura pro def __ServerCommand_Build(self): E acrecenta # TEAM_LIST def __TeamLogin(self, name): if self.interface.wndMessenger: self.interface.wndMessenger.OnLogin(2, name) def __TeamLogout(self, name): if self.interface.wndMessenger: self.interface.wndMessenger.OnLogout(2, name) # END_OF_TEAM_LIST ajudei? http://cyber-gamers.org/public/style_emoticons/default/451960.gif senao nunca mais ajudo. Sei que já passou muito tempo, mas alguém que consegue fazer ver como fica essa parte em "def __ServerCommand_Build(self):" por exemplo num print ou numa explicação mais detalhada? Obrigado Cumprimentos Share this post Link to post Share on other sites
.Rui 157 Posted January 13, 2019 Tens de meter essas funções debaixo dessa função. Não é dentro dela. Share this post Link to post Share on other sites
Francisco Afonso 2 Posted January 13, 2019 (edited) 5 minutos atrás, .Rui disse: Tens de meter essas funções debaixo dessa função. Não é dentro dela. Desde já agradeço imenso a tua resposta rápida à minha questão visto que o post é bastante antigo. Poderias dizer-me se fiz bem ? Se está mal como corrijo? Esquerda Editado / Direita Original http://prntscr.com/m6kr3z Obrigado Cumprimentos Edited January 13, 2019 by Francisco Afonso (see edit history) Share this post Link to post Share on other sites
.Rui 157 Posted January 13, 2019 Mete por cima de def BINARY__ServerCommandRun(self): Com o mesmo alinhamento desta função. Share this post Link to post Share on other sites
Francisco Afonso 2 Posted January 13, 2019 51 minutos atrás, .Rui disse: Mete por cima de def BINARY__ServerCommandRun(self): Com o mesmo alinhamento desta função. Pelos vistos não fiz bem... vou deixar print e o syserr... http://prntscr.com/m6mh20 Spoiler 0113 15:41:13968 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage1.mse) Error 0113 15:41:13968 :: CInstanceBase::RegisterEffect(eEftType=264, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage1.mse, isCache=1) - Error 0113 15:41:13968 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage2.mse) Error 0113 15:41:13968 :: CInstanceBase::RegisterEffect(eEftType=265, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage2.mse, isCache=1) - Error 0113 15:41:13968 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage3.mse) Error 0113 15:41:13968 :: CInstanceBase::RegisterEffect(eEftType=266, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage3.mse, isCache=1) - Error 0113 15:41:14326 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x80000015, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted. 0113 15:41:21102 :: 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. 0113 15:41:24804 :: Traceback (most recent call last): 0113 15:41:24804 :: File "networkModule.py", line 231, in SetGamePhase 0113 15:41:24804 :: File "system.py", line 130, in __pack_import 0113 15:41:24804 :: File " 0113 15:41:24804 :: <string> 0113 15:41:24804 :: ", line 0113 15:41:24804 :: 1680 0113 15:41:24804 :: 0113 15:41:24804 :: 0113 15:41:24804 :: if self.interface.wndMessenger 0113 15:41:24804 :: 0113 15:41:24804 :: 0113 15:41:24804 :: 0113 15:41:24804 :: 0113 15:41:24804 :: 0113 15:41:24804 :: 0113 15:41:24804 :: 0113 15:41:24804 :: 0113 15:41:24804 :: 0113 15:41:24804 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: 0113 15:41:24805 :: ^ 0113 15:41:24805 :: SyntaxError 0113 15:41:24805 :: : 0113 15:41:24805 :: invalid syntax 0113 15:41:24805 :: Eu já estive a ver o syserr mas não sei que fazer na tal linha 1860... Obrigado Agradeço Resposta Cumprimentos Share this post Link to post Share on other sites