Exemple #1
0
def loadModule():
    from app.scense.nodeapp import *
#    from app.scense.publicnodeapp import *
    from app.scense.chatnodeapp import *
    dbScene.getALlInstanceSceneInfo()
    dbScene.getAllPublicSceneInfo()
    dbPortals.getAllPortalsInfo()
    dbStrengthen.getAll()
    dbInstance_colonize_title.updateAll()#更新殖民头衔配置
    dbNpc.getAllNpcInfo()
    dbAward.getAllAwardInfo()
    dbSchedule.getAllScheduleBound()
    dbSchedule.getAllScheduleConfig()
    dbdaily.getAllDaily()
    dbGodhead.getAllGodhead()
    dbGodhead.getAllHeadtype()
    dbItems.getAllsetInfo()
    dbItems.getAllGemInfo()
    dbItems.getAllCompoundInfo()
    dbMonster.getAllMonsterInfo()
    dbMap.getAllDoorInfo()
    dbMap.getAllMonsterConfig()
    dbMap.getAllMapInfo()
    GuildManager()
    MapManager()
    serviceByStart.doService()
    updateInstanceInfo(1)
    updateSceneInfo(1)
    cleanMeM(1800)
Exemple #2
0
def loadModule():
    from app.scense.nodeapp import *
    #    from app.scense.publicnodeapp import *
    from app.scense.chatnodeapp import *
    dbScene.getALlInstanceSceneInfo()
    dbScene.getAllPublicSceneInfo()
    dbPortals.getAllPortalsInfo()
    dbStrengthen.getAll()
    dbInstance_colonize_title.updateAll()  #更新殖民头衔配置
    dbNpc.getAllNpcInfo()
    dbAward.getAllAwardInfo()
    dbSchedule.getAllScheduleBound()
    dbSchedule.getAllScheduleConfig()
    dbdaily.getAllDaily()
    dbGodhead.getAllGodhead()
    dbGodhead.getAllHeadtype()
    dbItems.getAllsetInfo()
    dbItems.getAllGemInfo()
    dbItems.getAllCompoundInfo()
    dbMonster.getAllMonsterInfo()
    dbMap.getAllDoorInfo()
    dbMap.getAllMonsterConfig()
    dbMap.getAllMapInfo()
    GuildManager()
    MapManager()
    serviceByStart.doService()
    updateInstanceInfo(1)
    updateSceneInfo(1)
    cleanMeM(1800)
def initAlldata():
    '''初始化常用数据,从数据库读入到内存中
    '''
    dbaccess.All_ShieldWord = dbaccess.getAll_ShieldWord()
    dbaccess.tb_mallitem_Column_name=dbaccess.getTablecolumnName('tb_item_template')+['item_templateid','tag','promotion','gold','coupon','restrict','cheapstart','cheapend','discount','up','down','onoff']
    dbaccess.tb_mallitem_Column_name1=dbaccess.getTablecolumnName('tb_mall_item')
    dbaccess.tb_mall_restrict_Column_name=dbaccess.getTablecolumnName('tb_mall_restrict')
    dbaccess.tb_mall_log_Column_name=dbaccess.getTablecolumnName('tb_mall_log')
    dbaccess.tb_instanceinfo_Columen_name=dbaccess.getTablecolumnName('tb_instanceinfo')
    dbaccess.tb_instance_activation_Columen_name=dbaccess.getTablecolumnName('tb_instance_activation')
    dbaccess.tb_instance_close_Columen_name=dbaccess.getTablecolumnName('tb_instance_close')
    dbaccess.tb_instance_record_Columen_name=dbaccess.getTablecolumnName('tb_instance_record')
    dbaccess.tb_profession_Columen_name = dbaccess.getTablecolumnName("tb_profession")
    dbDropOut.tb_dropout_Column_name=dbaccess.getTablecolumnName('tb_dropout')
    dbaccess.tb_marix_Columen_name = dbaccess.getTablecolumnName("tb_matrix")#获取阵法表中所有的阵法数据
    dbDrinkery.tb_drinkery_Column_name=dbaccess.getTablecolumnName('tb_drinkery') #存储数据库中酒店表中的所有字段
    dbChat.tb_chat_astrict_name=dbaccess.getTablecolumnName('tb_chat_astrict')
    
    dbaccess.tb_Profession_Config = dbaccess.getProfession_Config()         #初始化职业成长配置表
    dbaccess.tb_Experience_config = dbaccess.getExperience_Config()        #初始化经验成长配置表
    dbaccess.all_ItemTemplate = dbaccess.getAll_ItemTemplate()              #获取所有的物品模板信息
    dbaccess.all_marix_info = dbaccess.getAllMarix_Info()                   #获取所有的阵法信息
    
    dbEffect.ALL_EFFECT_INFO = dbEffect.getAllEffectInfo()#获取所有的效果信息
    dbBuff.ALL_BUFF_INFO = dbBuff.getAllBuffInfo()#获取所有的buff信息
    instance_app.allInfo=dbInstanceInfo.getAllInfo() #获取所有副本信息
    guild.AllCharacterGuildInfo=dbGuild.getAllCharacterGuildInfo() #获取所有角色与行会对应关系
    dropout.alldrop=dbDropOut.getAll() #获取所有掉落信息
    instanceColonizeChallenge.allColonizeChallenge=dbInstanceColonizeChallenge.getAllColonizeChallenge()
    instanceColonizeChallenge.allMosterNameByinstance=dbInstanceColonizeChallenge.getAllMosterName()
    
    dbtask.ALL_MAIN_TASK = dbtask.getAllMainTask()
    dbtask.ALL_EXTEN_TASK = dbtask.getAllExtedTask()
    dbInstance_d.instance_dAll= dbInstance_d.getInstance_dAll()#副本掉落tip
    dbTeamInstance.getAll() #设置所有多人副本数据
    dbTeamInstanceDrop.getAll() #设置所有多人副本掉落数据
    dbNobility.getAll()#获取所有爵位信息
    dbPetShopConfigure.getAll()#获取所有宠物商店推荐宠物组合信息
    dbPublicscene.getAllInfo()
    dbSkill.getAllSkill()
    dbSkill.getBuffAddition()
    dbSkill.getBuffOffsetInfo()
    dbMonster.getAllMonsterInfo()
    dbCharacterPet.getPetTrainConfig()
    dbCharacterPet.getAllPetTemplate()
    dbCharacterPet.getPetExp()
    dbCharacterPet.getAllPetGrowthConfig()
    dbMail.getAllLevelMail()
    dbGuild.getAllTechnology()
    dbGuild.getTechnologyLimit()
    dbVIP.getAllVIPPer()
    dbVIP.getVIPExp()
    dbVIP.getAllLibao()
    dbfightfail.getAllFightFail()
    dbCharacterFate.getAllFateTemplate()
    dbtower.initAllTowerInfo()
    dbfigure.getAllFigureInfo()
    db_zhanyi.getAllZhanYiInfo()#获取所有的战役信息
    db_zhanyi.getAllZhangJieInfo()#获取所有的战役信息
    InstanceGroupManage()
#    ColonizeManage()
    FortressManager()
    ZYManage()
    configure.shuxingbianliang()
def initAlldata():
    '''初始化常用数据,从数据库读入到内存中
    '''
    dbaccess.All_ShieldWord = dbaccess.getAll_ShieldWord()
    dbaccess.tb_mallitem_Column_name = dbaccess.getTablecolumnName(
        'tb_item_template') + [
            'item_templateid', 'tag', 'promotion', 'gold', 'coupon',
            'restrict', 'cheapstart', 'cheapend', 'discount', 'up', 'down',
            'onoff'
        ]
    dbaccess.tb_mallitem_Column_name1 = dbaccess.getTablecolumnName(
        'tb_mall_item')
    dbaccess.tb_mall_restrict_Column_name = dbaccess.getTablecolumnName(
        'tb_mall_restrict')
    dbaccess.tb_mall_log_Column_name = dbaccess.getTablecolumnName(
        'tb_mall_log')
    dbaccess.tb_instanceinfo_Columen_name = dbaccess.getTablecolumnName(
        'tb_instanceinfo')
    dbaccess.tb_instance_activation_Columen_name = dbaccess.getTablecolumnName(
        'tb_instance_activation')
    dbaccess.tb_instance_close_Columen_name = dbaccess.getTablecolumnName(
        'tb_instance_close')
    dbaccess.tb_instance_record_Columen_name = dbaccess.getTablecolumnName(
        'tb_instance_record')
    dbaccess.tb_profession_Columen_name = dbaccess.getTablecolumnName(
        "tb_profession")
    dbDropOut.tb_dropout_Column_name = dbaccess.getTablecolumnName(
        'tb_dropout')
    dbaccess.tb_marix_Columen_name = dbaccess.getTablecolumnName(
        "tb_matrix")  #获取阵法表中所有的阵法数据
    dbDrinkery.tb_drinkery_Column_name = dbaccess.getTablecolumnName(
        'tb_drinkery')  #存储数据库中酒店表中的所有字段
    dbChat.tb_chat_astrict_name = dbaccess.getTablecolumnName(
        'tb_chat_astrict')

    dbaccess.tb_Profession_Config = dbaccess.getProfession_Config(
    )  #初始化职业成长配置表
    dbaccess.tb_Experience_config = dbaccess.getExperience_Config(
    )  #初始化经验成长配置表
    dbaccess.all_ItemTemplate = dbaccess.getAll_ItemTemplate()  #获取所有的物品模板信息
    dbaccess.all_marix_info = dbaccess.getAllMarix_Info()  #获取所有的阵法信息

    dbEffect.ALL_EFFECT_INFO = dbEffect.getAllEffectInfo()  #获取所有的效果信息
    dbBuff.ALL_BUFF_INFO = dbBuff.getAllBuffInfo()  #获取所有的buff信息
    instance_app.allInfo = dbInstanceInfo.getAllInfo()  #获取所有副本信息
    guild.AllCharacterGuildInfo = dbGuild.getAllCharacterGuildInfo(
    )  #获取所有角色与行会对应关系
    dropout.alldrop = dbDropOut.getAll()  #获取所有掉落信息
    instanceColonizeChallenge.allColonizeChallenge = dbInstanceColonizeChallenge.getAllColonizeChallenge(
    )
    instanceColonizeChallenge.allMosterNameByinstance = dbInstanceColonizeChallenge.getAllMosterName(
    )

    dbtask.ALL_MAIN_TASK = dbtask.getAllMainTask()
    dbtask.ALL_EXTEN_TASK = dbtask.getAllExtedTask()
    dbInstance_d.instance_dAll = dbInstance_d.getInstance_dAll()  #副本掉落tip
    dbTeamInstance.getAll()  #设置所有多人副本数据
    dbTeamInstanceDrop.getAll()  #设置所有多人副本掉落数据
    dbNobility.getAll()  #获取所有爵位信息
    dbPetShopConfigure.getAll()  #获取所有宠物商店推荐宠物组合信息
    dbPublicscene.getAllInfo()
    dbSkill.getAllSkill()
    dbSkill.getBuffAddition()
    dbSkill.getBuffOffsetInfo()
    dbMonster.getAllMonsterInfo()
    dbCharacterPet.getPetTrainConfig()
    dbCharacterPet.getAllPetTemplate()
    dbCharacterPet.getPetExp()
    dbCharacterPet.getAllPetGrowthConfig()
    dbMail.getAllLevelMail()
    dbGuild.getAllTechnology()
    dbGuild.getTechnologyLimit()
    dbVIP.getAllVIPPer()
    dbVIP.getVIPExp()
    dbVIP.getAllLibao()
    dbfightfail.getAllFightFail()
    dbCharacterFate.getAllFateTemplate()
    dbtower.initAllTowerInfo()
    dbfigure.getAllFigureInfo()
    db_zhanyi.getAllZhanYiInfo()  #获取所有的战役信息
    db_zhanyi.getAllZhangJieInfo()  #获取所有的战役信息
    InstanceGroupManage()
    #    ColonizeManage()
    FortressManager()
    ZYManage()
    configure.shuxingbianliang()