hxp
2025-05-08 89f7f7d58dadee954ce631260046ed79dceb0acf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
î+hc@s ddlZddlZddlZddlZddlZddlZddlZddlZdZdZ    e
a idd6dd6Z d„Z d    „Zd
„Zd „Zd „Zd „Zd„Zd„Zdefd„ƒYZd„Zd„Zd„Zd„ZdS(iÿÿÿÿNsC:\ServerRealTimeBackups.bakiWi'iYij'cCstjdƒtƒdS(NsµØÍ¼·þÎñÆ÷Æô¶¯(t    GameWorldtDebugLogtLoadServerDataBackup(((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyt OnServerStart&s cCsdS(N((((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyt OnServerClose+scCstƒtj|ƒdS(N(tServerDataBackuptDBFamilytOnMinute(t    curMinute((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyR.s cCs´g}x—tj|ƒD]†\}}}xt|D]l}|jtƒsGq,ntjj||ƒ}tj||jdƒ j    dƒdƒ}|j
||gƒq,WqW|j dt ƒ|S(Ns.t_itreverse( tostwalktendswitht BakFileTypetpathtjoinRtToIntDeftindextsplittappendtsorttTrue(tbakPatht bakFileListtparentR    t    filenamestfilenametfullPathtbakTime((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pytGetBakFileSortList4s )c    Cs    tjƒjƒ}|tkr"dSdt|}tjjt|ƒ}tjd|ƒt    |ƒ}|sytjdƒdS|dd}tjd|ƒt
|dƒ}|j ƒj ƒ}|j ƒy"tj|ƒ}tj|ƒ}Wnta‚nXt|dƒdS(NsS%ss ¼ÓÔØ±¸µµ: %ss ²»´æÔÚ±¸µµ!iis ¶ÁÈ¡±¸µµ: %strb(RtGetMaptGetMapIDt Map2ServerIDR RRtBakRoottLogRtopentreadtstriptclosetzlibt
decompresstbinasciita2b_hexRt    g_loadErrtLoadPyGameData(    tmapIDt
serverNametBakDirRt bakFilePathtftcompressed_datatdecompressed_datatbakData((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyRAs.   
 c Cs™trtjdƒdStjƒjƒ}|tkr9dSdt|}tjjt    |ƒ}d}tj
d|ƒtjj |ƒs•tj |ƒnt tjƒƒ}tjj|d||tfƒ}tƒ}tj
d|t|ƒ|fƒyStj|dƒ}tj
dt|ƒƒt|d    ƒ}|j|ƒ|jƒWndSXt|ƒ}    x6|    |D]*\}
} tj| ƒtj
d
| ƒqgWdS( Ns ¼ÓÔØ±¸µµÒÑÒì³££¬ÔÝʱ²»ÔÚ´æ´¢±¸µµsS%sis·þÎñÆ÷±¸µµ: %ss%s_%s%ssBak:%s, len=%s, %si    scompress len=%stwbsɾ³ý¶àÓ౸µµÎļþ: %s(R-RtErrLogR R!R"R RRR#R$texiststmakedirstintttimeRt GetSavePyDatatlenR)tcompressR%twriteR(Rtremove( R/R0R1t BackupCopyMaxtcurTimeR2R6R4tfpRR    tfilePath((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyR_s:  "        cCsKtƒ}|jƒ}tjdt|ƒt|ƒfƒtj|ƒ}|S(NsGetSavePyData!! id = %s-%s(t GetDBDataMgrt GetSaveDataRR$tidR>R+tb2a_hex(t pyGameDataMgrtresult((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyR=†s
     #cCsBtƒ}tjdt|ƒt|ƒfƒ|j||ƒ}|S(NsLoadPyGameData!!id = %s %s(RFRR$RHR>t LoadGameData(t
gameBuffertposRJ((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyR.•s    #tPyGameDataManagercBs#eZd„Zd„Zd„ZRS(cCs"tjƒ|_tjƒ|_dS(N(tDBPlayerViewCachetPlayerViewCacheMgrRt    FamilyMgr(tself((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyt__init__ scCs0d}||jjƒ7}||jjƒ7}|S(Nt(RQRGRR(RStbuff((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyRG¥scCs@|jj||t|ƒƒ}|jj||t|ƒƒ}|S(N(RQR.R>RR(RSRMRN((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyRL«s(t__name__t
__module__RTRGRL(((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyROŸs        cCs(tj}|s$tƒ}|t_n|S(N(t
PyGameDatatg_pyGameDataManagerRO(RJ((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyRF°s
         cCstƒ}|jS(N(RFRQ(t    dbDataMgr((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pytGetPlayerViewCacheMgr¸s    cCstƒ}|jS(N(RFRR(R[((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyt GetFamilyMgr½s    cCs tƒjƒS(N(R]tGetFamilyActionMgr(((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyR^Âs(RRYRPRR+R<R)R R#RtFalseR-R"RRRRRRR=R.tobjectRORFR\R]R^(((sdD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\DBDataMgr.pyt<module>s4        
                         '