hxp
2025-05-19 9a9d59da84b4f721ea6fcc0ae5f58b2646c65332
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
GÏ%hc@sKddlZddlZddlZddlZddlZddlZddlZd„Zd„Zd„Z    d„Z
d„Z d„Z d„Z d    „Zd
„Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!dS(iÿÿÿÿNcCstjƒjtjƒS(N(t    DBDataMgrtGetEventTrigMgrtGetValuet ShareDefinetDef_Server_Year(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytGet_Server_YearscCs)tjƒjtjtjjƒjƒdS(N(RRtSetValueRRtdatetimettodaytyear(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytSet_Server_Years%cCstjƒjtjƒS(N(RRRRtDef_Server_Month(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytGet_Server_MonthscCs)tjƒjtjtjjƒjƒdS(N(RRRRR RRtmonth(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytSet_Server_Month s%cCstjƒjtjƒS(N(RRRRtDef_Server_Week(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytGet_Server_Week#scCs6tjƒjtjtjjtjjƒƒdƒdS(Ni(RRRRRRt isocalendarR(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytSet_Server_Week$s2cCstjƒjtjƒS(N(RRRRtDef_Server_Day(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytGet_Server_Day'scCs)tjƒjtjtjjƒjƒdS(N(RRRRRRRtday(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytSet_Server_Day(s%cCstjƒjtjƒS(N(RRRRtDef_Server_Hour(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytGet_Server_Hour+scCs)tjƒjtjtjjƒjƒdS(N(RRRRRRRthour(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytSet_Server_Hour,s%cCs^tƒs<tƒtƒtƒtƒtƒtjdƒntƒt    ƒt
ƒt ƒtƒfS(Ns!###·þÎñÆ÷пª, ³õʼ»¯·þÎñÆ÷ʱ¼ä !( RRRRRR
t    GameWorldtLogRRRR (((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytInitServerTime0s    cCs:tjr dSttjƒƒt_tjƒ}tjd|ƒtjƒt    ƒtj
ƒj t j ƒ}tj
ƒj t jƒ}|dks˜|dkr½t|r§|nttjƒƒƒntƒt|ƒt|ƒtjdƒtjƒ}|rún#tjƒ}tjd||fƒtjƒjt jdƒdS(Ns*·þÎñÆ÷Æô¶¯³õʼ»¯InitGameWorld: serverID=%sisR=============================== ·þÎñÆ÷Æô¶¯³É¹¦ ===================================s,·þÎñÆ÷Æô¶¯³É¹¦: ServerGroupID=%s,serverID=%si(t
PyGameDatatg_initGameTimetintttimeRt GetServerIDRRt OnServerStartt LoadDBPlayerRRRtDef_InitOpenServerTimetDef_OpenServerWeekdaytSetInitOpenServerTimet__DoMixServerInitt OnHighProcesstOnMinutet IsCrossServertGetServerGroupIDt GetGameWorldtSetGameWorldDicttDef_WorldKey_GameWorldInitOK(tticktserverIDtinitOpenServerTimetopenServerWeekdayt isCrossServert serverGroupID((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyt InitGameWorld<s,     
%
 
   cCsdS(N((R0((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytAllMapServerInitOK`scCstjƒrdSdS(N(RR+(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR$cs cCsãtjƒ}ttjƒƒ}||kr?tjd|ƒdStjƒjtj    ƒ}|r~||kr~tjd|ƒdStjƒj
tj    |ƒtj d|tj |ƒ|fƒ||krßt tjƒjƒƒndS(s…GMÉèÖÿª·þʱ¼ä
    @param openServerTime: ¿ª·þʱ¼ä´Á
    @return: 1-³É¹¦£»-1-ÉèÖõÄʱ¼äÒì³££»-2-ÒѾ­ÉèÖùýÇÒ¿ª·þÁË£¬²»ÄÜÖØ¸´ÉèÖÃ
    s5µ±Ç°Ê±¼äÒѾ­³¬¹ýÉèÖõĿª·þʱ¼ä£¬²»ÄÜÉèÖÃ! serverID=%siÿÿÿÿs-ÒѾ­ÉèÖùýÇÒ¿ª·þÁË£¬²»ÄÜÖØ¸´ÉèÖÃ! serverID=%siþÿÿÿs"GMÉèÖÿª·þʱ¼ä£º serverID=%s,%s,%si(RR"R R!tErrLogRRRRtDef_SetOpenServerTimeRRtChangeTimeNumToStrtOnNewServerOpenR-tGetTick(topenServerTimeR1tcurTimetsetOpenServerTime((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytGMSetOpenServerTimeis  # cCsztjƒjtjƒ}|s"dStjƒjtjƒ}||krJdSttjƒƒ}||krldSt|ƒdS(N(    RRRRR9R%R R!R;(R0R?tcurOpenServerTimeR>((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pytDoCheckNewServerOpens  
cCsÉtjƒ}tjd|ƒtjƒjtjƒ}|s?dStjtjg}tjƒj    |ƒtj
ƒj ƒtj ƒj ƒtjƒjƒt|ƒt|ƒtjƒjƒtjdƒdS(sзþ¿ªÆôÐèÒª´¦ÀíµÄÂß¼­s#Ö´ÐÐÕýʽ¿ª·þÖØÖÃÂß¼­... serverID=%sNtClearOpenServerOK(RR"RRRRRR9R%t    DelAllKeyt GetFamilyMgrt DelAllFamilyt
GetMailMgrt
DelAllMailtGetPlayerViewCacheMgrt DelAllCacheR'R7R-tSaveGameServerDatat SendGameError(R0R1R?t excludeList((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR;‘s 
 
 cCsÆtj|ƒ}|jƒd}tjƒjtj|ƒtjƒjtj|ƒtj    d|||fƒtjƒj
tj ƒ}|rÂ||krÂtjƒjtj |ƒtj    d|ƒndS(NisÉèÖÿª·þʱ¼ä: %s(%s), ÖÜ%ss%    Í¬²½¸üРDef_SetOpenServerTime=%s( RtChangeTimeNumToDatetimetweekdayRRRRR%R&RRR9(tinitTimet openDatetimeR3R?((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR'«scCsÊtjƒjtjƒ}|s/tjdƒdStjƒjtjƒ}|r^tjdƒdStjdƒtjƒj    tjdƒtjƒjtj
ƒ}tjƒj    tj |ƒtjd|ƒdS(Ns$·ÇºÏ·þ£¬²»´¦ÀíºÏ·þÊ×´ÎÆô¶¯Êý¾Ý¼ÓÔØ£¡sºÏ·þÊ×´ÎÆô¶¯¼ÓÔØÒѾ­´¦Àí¹ý£¡sºÏ·þÊ×´ÎÆô¶¯¼ÓÔØ´¦Àí...is&    ºÏ·þÊ×´ÎÆô¶¯¼ÓÔØ³É¹¦! serverDay=%s( RRRRtDef_IsMixServerRtDebugLogtDef_IsMixServerInitOKRRt Def_ServerDaytDef_LastMixServerDay(t isMixServertisMixServerInitOKt    serverDay((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR(¸s   cCsdS(N((R0((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR)ØscCs1tjƒ}t|ƒtj|ƒt|ƒdS(N(RtGetCurrentTimeRBRR*tDoLogic_GameWorldEvenByTime(R0R>((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR*Üs
 
 
c CsMtjjƒ}|j}|j}tjj|ƒd}|j}|j}tƒ\}}}    }
} ||ks‘||ks‘|
|ks‘| |kr¥tƒt    |ƒn||ksÉ|
|ksÉ| |krÝt
ƒt |ƒn|    |krýt ƒt |ƒn|
|ks| |kr)tƒt|ƒn| |krItƒt|ƒndS(Ni(RRRRRR R    RRtOnHourRtOnDayRtOnWeekRtOnMonthR
tOnYear( R0R>t curTimeHourt
curTimeDayt curTimeWeekt curTimeMontht curTimeYeart
serverHourRYt
serverWeekt serverMontht
serverYear((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR[ês.                0 $      cCstjdƒtj|ƒdS(NsServer -> OnHour!(RRtPlayerEventCountertDoLogic_OnHour(R0((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR\s  cCsetjdƒtjƒ}|jtjƒ|jtjƒ}|rT|jtj    ƒnt
j |ƒdS(NsServer -> OnDay!( RRRRtSetValueIncrementRRURRRtDef_MixServerDayRjt DoLogic_OnDay(R0teventMgrRW((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR]s   cCs:tjdƒtjƒ}|jtjƒtj|ƒdS(NsServer -> OnWeek!(    RRRRRlRtDef_ServerWeekRjtDoLogic_OnWeek(R0Ro((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR^$s
   cCstjdƒtj|ƒdS(NsServer -> OnMonth!(RRRjtDoLogic_OnMonth(R0((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR_,s  cCstjdƒtj|ƒdS(NsServer -> OnYear!(RRRjtDoLogic_OnYear(R0((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyR`1s  ("RRRjRRRR!RR
R RRRRRRRRR6R7R$R@RBR;R'R(R)R*R[R\R]R^R_R`(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldEvent.pyt<module>sB                                                        $                                          )