hxp
2025-05-29 59040fb759b668f16bca6c0f083bd1acaef621dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[8hc@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z d„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&dS(iÿÿÿÿNcCsÖ|jƒdkrBtjd|jƒ|jƒ|jƒfƒdStjd|jƒ|jƒfƒ|jtjƒ|j    |ƒ|j
dƒtj ƒ}|j dƒ|j |ƒtj|ƒt|tjƒdS(Nis5FB Open! lineID = %s, openState = %s, OpenFBTick = %ss$FB Open! lineID = %s, openState = %s(t GetOpenFBTickt    GameWorldtErrLogt    GetLineIDt GetOpenStatetLogt SetOpenStatet IPY_GameWorldtfbosOpent SetOpenFBTicktSetCloseFBTickt    GetGameFBt    SetFBStept SetFBStepTicktFBLogictOnOpenFBt$GameServer_DynamicLineMapStateChange(t    gameWorldtticktgameFB((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__OpenFB:s    ##      cCsBtj|ƒ|jdƒ|jdƒ|jdƒ|jƒ}|jdƒ|jdƒ|jƒ}|j    ƒ}t
j d||j ƒfƒ|j tjƒ|jƒ}|jƒ}|dkrÇdS|tjkr|jtjƒ}|tjkrotjj|ƒt
jd|ƒqonQ|tjkro|jƒ}|tjkrotjj|ƒt
jd|ƒqontjƒ|tjkr›tjj|ƒntj |j!ƒƒ}    i}
g} t
j"ƒ} x6t#| j$ƒƒD]"} | j%| ƒ}| j&|ƒqÛWxÛ| D]Ó}| s|j'ƒr'qn|tjkrK|jtjƒ}n*|j(ƒtj)kro|j*ƒ}nd}|j+ƒ}|rÑ|j,ƒtj-krÑ|
j.|gƒ}|j&t/j0|ƒƒ||
|<n|j1ƒqW|    tj2kr«|
r«t
j3ƒ}tj4j.|iƒ}x“|
j5ƒD]‚\}}t
j d||ƒ|r‚|j.|dƒ}t6j7|d|g||j!ƒgƒq"t6j8d|g||j!ƒgƒq"Wn|j9ƒ}t:|tjƒ|j;ƒdkrt
j d|j;ƒƒ|j tj<ƒdS|j tjƒt=|ƒ|j>dƒtj4j|dƒdS(Nis%FB Close! lineID = %s, openState = %ss$Çå³ýµ¥È˸±±¾¾µÏñÖúÕ½ÐÅÏ¢: ownerID=%ss#Çå³ý×é¶Ó¸±±¾¶ÓÔ±¹ØÏµÐÅÏ¢: teamID=%ss·¢ËÍδʰȡµÄÎïÆ·¸øÍæ¼Ò: %st ItemNoPickUps¹Ø±Õ¸±±¾Ê±»¹ÓÐÍæ¼Ò! %s(@Rt    OnCloseFBR    R
tSetFBFirstOpenR tSetPlayerLogoffTicktSetIsSafeCloseRt GetCopyMapIDRRRRRt
fbosClosedtGetMapt GetMapFBTypet    fbtSingletGetGameFBDictByKeytChConfigtDef_FB_SingleFBPlayerIDt
PyGameDatatg_fbHelpBattlePlayerDicttpoptDebugLogtfbtTeamt GetPropertyIDtg_teamFBMemRelationDicttFBCommont
ClearFBNPCtg_fbRobotJobDicttGetRecordMapIDtGetMapIDtGetMapItemManagertxrangetGetMapItemCounttGetMapItemByIndextappendtIsEmptyt GetOwnerTypetDef_NPCHurtTypePlayert
GetOwnerIDtGetItemtGetTypetDef_ItemType_Moneytgett
ItemCommontGetMailItemDictt    DisappeartDef_SendUnPickItemMailMapIDListt IsCrossServertg_crossPlayerServerGroupIDInfotitemst PlayerControlt SendCrossMailt SendMailByKeytGetMapCopyPlayerManagerRtGetPlayerCounttfbosWaitForClosetFreeOrClearFBByAutoSizet SetPropertyIDtNone(RRt    gameFBMgrtlineIDt    copyMapIDtgameMaptfbTypetownerIDtteamIDtmapIDtunPickItemDictt mapItem_ListtmapItemManagertindext
curMapItemtmapItemtcurItemt mailItemListt isCrossServertplayerServerGroupIDDictt serverGroupIDt playerManager((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt    __CloseFBWsŠ             
     () 
 cCsítj|jƒƒ}|tjkr(dS|jƒ}|jƒ|jƒ}}|tjkr€t    j
ƒ}|||||g}n||||g}t |ƒ}t j ƒjdddd|t|ƒƒt jd|||jƒ|fƒdS(NitDynamicLineMapStateChangesMDynamicLineMapStateChange realMapID=%s, copyMapID=%s, PropertyID=%s, state=%s(R)R,R-R tDef_CrossDynamicLineMapt GetRealMapIDRRRGRtOnGetCrossFuncLineDataCachetstrRtGetPlayerManagertGameServer_QueryPlayerResulttlenRR'(RtstateRRt    realMapIDRMtcrossFuncLineDataCachetmsgInfo((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRºs   (#cCs?|jƒjƒdkr1tjƒ}|jƒn
|jƒdS(Ni(Rt GetAutoSizeRR tClearR(RR((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRHÏs  cCs™|jƒtjkrdS|jƒ}x6t|jƒƒD]"}|j|ƒ}tj|ƒq8Wt    j
ƒj dƒt    j d|jƒƒt ||ƒdS(Nis---------------%d(RRRREtrangeRFtGetPlayerByIndexRBt PlayerLeaveFBRR tGameServer_FbInfoRefreshRR_(RRR^tit    curPlayer((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__KickAllPlayerAndCloseFBÞs  cCs
|jƒ}|dkrdStjƒjƒ}|dkr>dS||jƒ|krXdStj|ƒ|jƒ}xRtd|jƒƒD];}|j    |ƒ}||j
ƒ}||dkr‡q‡q‡q‡Wtj d|j ƒ|j ƒfƒt||ƒt|tjƒdS(Niis4__ProcessTimeKickPlayer! LineID = %s, openState = %s(RRRt GetExistTimeRt DoFBTimeOutRERnRFRot GetLoginTickRRRRtRRR(RRtopenTickt    existTimeR^RrRstplayerExistTime((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessTimeKickPlayerös&     
# cCs|jƒ}|dkrdS|jƒtjkrB|jdƒdS||tjkrYdStjd|j    ƒ|jƒfƒt
||ƒdS(Nis7__ProcessFBDelayKickPlayer! LineID = %s, openState = %s( tGetCloseFBTickRRRR
R tDef_FBKickPlayerTimeRRRRt(RRt closeFBTick((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessFBDelayKickPlayer s   # cCs.|jƒsdSt||ƒ|jdƒdS(Ni(tGetFBFirstOpenRR(RR((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt __ProcessOpen<s
   cCs9tjƒ}tjƒjƒdkr(dSt||ƒdS(Ni(Rt GetGameWorldRRlR(RR((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt EnterOpenFBKs c    Cs5|jƒsdS|jƒ}|jƒdkr2dStƒs?dStjƒ}|jƒ}|tjkr¸tj|\}}|dkr¥||}|t    j
kr¥dSntjj |ƒn@|j ƒ}|dkrÔdS|j ƒ rø||t    j
krødStjd|jƒ|jƒ|j ƒfƒt||ƒdS(Niis=__ProcessClose! LineID = %s, openState = %s, isSafeClose = %s(t    GetInitOKRERFtIsNoPlayerNeedCloseFBRR tGetCurGameWorldIndexR"tg_lastExitFBTypeR tDef_EmptyFBKeepTimeR$tGetPlayerLogoffTicktGetIsSafeCloseRRRRt(    RRR^RtfbIndext
exitFBTypetexitTicktpassTickt
logOffTick((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessCloseYs2         
       # cCsptjs dS||jƒdkr'dStjƒ}|jƒtjkrLdS|j|ƒ|j    ƒt
t_dS(Ni
ièi'( R"tg_needRefreshMapServerStatetGetSyncMapServerStateTickRRRRtfbtNulltSetSyncMapServerStateTicktGameServer_MapServerStatetFalse(RRRN((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessRefreshMapServerState”s      
    cCsctjƒ}|jtjƒ}|dkr.dS||tjtjkrLdS|jtj|ƒdS(Niÿÿÿÿ(RR‚t GetTickByTypeR tTYPE_Map_Tick_MapAcPlayertTYPE_Map_Tick_Timet SetTickByType(RRtlastTick((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessMapServerAcPlayer«s  c
Cstjƒ}|j|jƒ|jƒƒs¨tj|jƒ|jƒtjƒ\}}|dkr¨|dkr¨tj    d|j
ƒ|jƒ|jƒfƒt j dfSn|j
ƒtj kr|jƒjƒsÖt jS|jƒr|j|jƒƒrt jSntj|ƒ}t|ƒttgkr7|df}n|\}}|sVt j |fStj||ƒ}    |    dkr{t jS|    S(Nis@´«ËÍÖÁÄ¿±êµãΪÕϰ­µã, ´«ËÍʧ°Ü, mapid = %s, posX = %s, posY = %ss#04BBF813-7A30-47A8-927DE1ACCC4F378EtFB_andyshao_861048(RRtCanMovetGetPosXtGetPosYtGameMaptGetNearbyPosByDisR tDef_RebornPos_Area_RangeRR-Rt    cmeCustomtDef_FB_SystemAssignMapIDListRetIsPlayerCanLogint cmePlayerFullRlt IsMapCopyFulltGetBMChangeMapAskCountR)tCheckFBStateCanEnterttypettupletlistRtOnChangeMapAskRJt    cmeAccept(
Rt    askStructRRNtnearPosXtnearPosYtcheckRettcanEntert
notifyMarktchangeMapAskResult((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessCurrentChangeMapAskÁs, *    #!
   cCsštjƒ}x}t|jƒƒD]i}|j|ƒ}t|||ƒ}t|ƒtkrg|df}n|j|j    ƒ|d|dƒqW|j
ƒdS(Ntii( RR‚RnRªtGetBMChangeMapAskAtR¸R¬tinttRouteServer_ChangeMapAnswert GetPlayerIDtClearBMChangeMapAsk(RRRrtasktresult((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessChangeMapAskís %
cCstjtƒ|ƒdS(N(Rt GetPsycoFunct__Func_OnGameWorldProcess(R((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytOnGameWorldProcessÿscCsÓtjƒ}|jƒsdStj|ƒt||ƒt||ƒt||ƒt||ƒt    |ƒt
|ƒt j |ƒt ||ƒt||ƒtjƒtj|ƒtj||ƒtj||ƒdS(N(RR‚R„tGameWorldEventt OnHighProcessRR{RRRRÁRt    OnProcessR—t__ProcessRouteServert EventReporttOnTimeCloseScribeTxtt FamilyRobBosstOnFamilyOwnerBossProcesstNPCCustomRefreshtProcessMapRandomRefreshNPCtNPCRealmRefreshtProcessRealmNPCRefresh(RR((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRÃs$       
 
 
 cCsg|jtjƒ}|dkr"dS||tjtjkr@dS|jtj|ƒtjƒjƒdS(Niÿÿÿÿ(R˜R t!TYPE_Map_Tick_SendMsg_RouteServerRšR›RR‚t SendHeartBeat(RRRœ((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRÈ3s cCsXtjƒ}tjƒtj|ƒ|jtjƒt    j
ƒ|j t ƒ|j ƒdS(N(RR‚R;t
InitPyItemRtOnInittSetTickTypeCountR tTYPE_Map_Tick_CountRÉt InitDllAppIDt    SetInitOKtTruetBalanceServer_MapServerInitOK(RR((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt InitGameWorldHs 
 
 
c    Cstjƒjƒtjkrvt|jƒ|jƒ|jƒ|j    ƒgƒ}tj
ƒj dddd|t |ƒƒnt j|jƒƒ}|tjkrÿ|j    ƒ|jƒdkrÿt|jƒ|jƒgƒ}tj
ƒj dddd|t |ƒƒndS(s‡
    Í¨ÖªGameServerµØÍ¼Æô¶¯Íê±Ï
    GetMapID=10010,GetLineID=0,GetRealMapID=10010,GetCopyMapID=0,GetLineNO=-1
    GetMapID=10010,GetLineID=1,GetRealMapID=10010,GetCopyMapID=1,GetLineNO=-1
    GetMapID=10010,GetLineID=2,GetRealMapID=10010,GetCopyMapID=2,GetLineNO=-1
    GetMapID=10010,GetLineID=3,GetRealMapID=10010,GetCopyMapID=3,GetLineNO=-1
    GetMapID=10010,GetLineID=4,GetRealMapID=10010,GetCopyMapID=4,GetLineNO=-1
    GetMapID=10010,GetLineID=5,GetRealMapID=10011,GetCopyMapID=0,GetLineNO=-1
    GetMapID=10010,GetLineID=6,GetRealMapID=10011,GetCopyMapID=1,GetLineNO=-1
    GetMapID=10010,GetLineID=7,GetRealMapID=10011,GetCopyMapID=2,GetLineNO=-1
    GameWorld.DebugLog("GetMapID=%s,GetLineID=%s,GetRealMapID=%s,GetCopyMapID=%s,GetLineNO=%s" 
                       % (gameWorld.GetMapID(), gameWorld.GetLineID(), gameWorld.GetRealMapID(), gameWorld.GetCopyMapID(), gameWorld.GetLineNO()))
    itCommMapServerInitOKitDynamicLineMapInitOKN(RRRRR“RdR-RRbRReRfRgR)R,R RatGetGameWorldCount(RRkt    dataMapID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytGameServer_CommMapServerInitOK[s0+++cCs3tjƒj|ƒtjƒ}t|tjƒdS(N(RR‚R
RRRG(RR((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytCloseFBzs cCstjƒ}|jƒ}|jƒdkr.dStƒs;dS|jƒ}|jƒdkr{ttjƒtjƒjƒƒndS(Nii(    RR‚RRR…RERFR_tGetTick(RRNR^((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytOnPlayerLeaveMapCloseFB…s       cCs\tjƒjƒr5tjƒjƒtjkr1tStStjƒjƒtjkrTtStSdS(N(    RRRlR-R tDef_NoPlayerNotCloseAutoSizeMapR–RÙtDef_NoPlayerCloseNotAutoSizeMap(((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyR…–scCsttjƒ}tjƒ}|jd|jƒƒ|jd|jƒƒ|jd|jƒƒ|jd|jƒƒdS(Niiii(    RtIPY_MPlayerCountByCountryRR‚tSetPlayerByCountryCounttGetCountry1CounttGetCountry2CounttGetCountry3CounttGetCountryOtherCount(RVRtpackR((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytGameSever_PlayerCountByCountryµs  cCsFtjdƒtjƒjdddddƒtjƒjd|ƒdS(Ns×¢²á¼¶Áª¼ÆÊ±Æ÷t ProcessFighti‚t PlayerStatetPlayerProcessFighti(RRR‚t
RegLvTimert StartLvTimer(R((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRñÌs
  c CsÊddlm}ddlm}m}m}ddlm}ddl}ddl    }ddl
}|j |j |j j|jƒ|jdƒƒ}    |    |j |j|j j|jƒ|jdƒƒ7}    |    |j |j|j j|jƒ|jdƒƒ7}    |    |j |j|j j|jƒ|jdƒƒ7}    |    |j |j|j j|jƒ|jd    ƒƒ7}    |    |j |j|j j|jƒ|jd
ƒƒ7}    |    |j |j|j j|jƒ|jd ƒƒ7}    |    |j |j|j j|jƒ|jd ƒƒ7}    |    |j |j|j j|jƒ|jd ƒƒ7}    |    |j |j|j j|jƒ|jdƒƒ7}    |    |j |j|j j|jƒ|jdƒƒ7}    |    |j |j|j j|jƒ|jdƒƒ7}    |    |j |j|j j|jƒ|jdƒƒ7}    |    |j |j|j j|jƒ|jdƒƒ7}    |    |j |j|j j|jƒ|jdƒƒ7}    |    |j |j|j j|jƒ|jdƒƒ7}    |    |j |j |j j|jƒ|jdƒƒ7}    |    |j |j!|j j|jƒ|jdƒƒ7}    |    |j |j"|j j|jƒ|jdƒƒ7}    |    |j |j#|j j|jƒ|jdƒƒ7}    |    |j |j$|j j|jƒ|jdƒƒ7}    |    |j |j%|j j|jƒ|jdƒƒ7}    |    |j |j&|j j|jƒ|jdƒƒ7}    y…|j'|    dƒ}
d} |j(| |j)ƒ} |j*| t+|
ƒ|
ƒ} t,j-dt+|
ƒt+| ƒfƒ|j.| t+| ƒƒWn6|j/d|j0d t1j2ƒƒ} t,j3| ƒnXdS(!Niÿÿÿÿ(tDataServerGameData(tGlobalFunctionst CommonDefineterror(tCommFuncstagChinNPC.txtstagNPCRefresh.txtstagChinSkill.txtstagChinExp.txtstagChinItem.txtstagTransportRefresh.txtstagChinShopItem.txtstagBornRefresh.txtstagChinMixItem.txtstagBuildEquip.txtstagSuiteActivation.txtstagSuiteEffect.txtstagRepeatEvent.txtstagEffectRefresh.txtstagChinMap.txtstagDBStoreItem.txtstagOnMissionDelete.txts
tagPet.txtstagPetGrade.txtstagPetFriendliness.txts tagPetExp.txtstagNPC_Item_Pet.txtstagFlyObjBaseInfo.txti    R¹s(Load game sys data for len = %s - %s ok!tfatals)Compress game sys data failed!error = 
%s(4tPyMongoDB.CollectionsRótPyMongoDB.DBCommonRôRõRötPyMongoDB.CommonR÷t NetPackCommontostzlibtsysDBLoadFromFilet
tagChinNPCtpathtjointgetServerConfigPatht
SYSDB_PATHt tagNPCRefresht tagChinSkillt
tagChinExpt tagChinItemttagTransportRefreshttagChinShopItemttagBornRefreshttagChinMixItemt tagBuildEquipttagSuiteActivationttagSuiteEffectttagRepeatEventttagEffectRefresht
tagChinMapttagDBStoreItemttagOnMissionDeletettagPett tagPetGradettagPetFriendlinesst    tagPetExpttagNPC_Item_PetttagFlyObjBaseInfotcompresst    WriteBYTEt
dgGameDatat WriteStringRgRRtSendPyPackToMapServerSelft    formatMsgt ERROR_NO_53t    tracebackt
format_excR( RRóRôRõRöR÷RüRýRþtsysDatatcompressSysDatatdatatmsg((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt ReadShareDataÛsÚ                           #"('RRR RBRËRÍRR)RÉR;R"R¢RÏRÅRR_RRHRtR{RRRƒRR—RR¸RÁRÄRÃRÈRÛRàRáRãR…RíRñR((((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt<module>&sL                      c                *                ;            ,            ,