| | |
| | | def OnCrossServerReceiveMsg(recvMsg, tick):
|
| | | ## 跨服服务器收到信息处理
|
| | | try:
|
| | | GameWorld.Log("收到OnCrossServerReceiveMsg" )
|
| | | if not GameWorld.GetGameWorld().GetDictByKey(ChConfig.Def_WorldKey_GameWorldInitOK):
|
| | | GameWorld.Log("服务器未启动好,不处理子服信息!")
|
| | | return
|
| | |
| | | GameWorld.ErrLog("没有该信息类型逻辑处理!")
|
| | |
|
| | | except:
|
| | | GameWorld.ErrLog("OnCrossServerReceiveMsg:%s; except:%s" % (cPickle.loads(recvMsg), traceback.format_exc()))
|
| | | GameWorld.ErrLog("OnCrossServerReceiveMsg: %s" % (traceback.format_exc()))
|
| | | if GameWorld.GetGameWorld().GetDebugLevel():
|
| | | raise BaseException(str(traceback.format_exc()))
|
| | | return
|
| | |
| | | dataMsg = dataPack.GetData()
|
| | |
|
| | | try:
|
| | | GameWorld.Log("收到OnClientServerReceiveMsg" )
|
| | | if not GameWorld.GetGameWorld().GetDictByKey(ChConfig.Def_WorldKey_GameWorldInitOK):
|
| | | GameWorld.Log("服务器未启动好,不处理跨服信息!")
|
| | | return
|
| | |
| | | GameWorld.ErrLog("没有该信息类型逻辑处理!")
|
| | |
|
| | | except:
|
| | | GameWorld.ErrLog("OnClientServerReceiveMsg:%s; except:%s" % (cPickle.loads(dataMsg), traceback.format_exc()))
|
| | | GameWorld.ErrLog("OnClientServerReceiveMsg: %s" % (traceback.format_exc()))
|
| | | if GameWorld.GetGameWorld().GetDebugLevel():
|
| | | raise BaseException(str(traceback.format_exc()))
|
| | |
|