예제 #1
0
    def __init__(self, baseChannel, stateServerChannel, districtName):
        ToontownInternalRepository.__init__(
            self, baseChannel, stateServerChannel, dcSuffix='AI')

        self.districtName = districtName

        self.notify.setInfo(True)  # Our AI repository should always log info.
        self.hoods = []
        self.cogHeadquarters = []
        self.dnaStoreMap = {}
        self.dnaDataMap = {}
        self.suitPlanners = {}
        self.buildingManagers = {}
        self.factoryMgr = None
        self.mintMgr = None
        self.lawOfficeMgr = None
        self.countryClubMgr = None

        self.zoneAllocator = UniqueIdAllocator(ToontownGlobals.DynamicZonesBegin,
                                               ToontownGlobals.DynamicZonesEnd)
        self.zoneDataStore = AIZoneDataStore()

        self.wantFishing = self.config.GetBool('want-fishing', True)
        self.wantHousing = self.config.GetBool('want-housing', True)
        self.wantPets = self.config.GetBool('want-pets', True)
        self.wantParties = self.config.GetBool('want-parties', True)
        self.wantCogbuildings = self.config.GetBool('want-cogbuildings', True)
        self.wantCogdominiums = self.config.GetBool('want-cogdominiums', True)
        self.doLiveUpdates = self.config.GetBool('want-live-updates', False)
        self.wantTrackClsends = self.config.GetBool('want-track-clsends', False)
        self.baseXpMultiplier = self.config.GetFloat('base-xp-multiplier', 1.0)
        self.wantHalloween = self.config.GetBool('want-halloween', False)
        self.wantChristmas = self.config.GetBool('want-christmas', False)

        self.cogSuitMessageSent = False
    def __init__(self, baseChannel, stateServerChannel, districtName):
        ToontownInternalRepository.__init__(
            self, baseChannel, stateServerChannel, dcSuffix='AI')

        self.districtName = districtName

        self.notify.setInfo(True)  # Our AI repository should always log info.
        self.hoods = []
        self.cogHeadquarters = []
        self.dnaStoreMap = {}
        self.dnaDataMap = {}
        self.suitPlanners = {}
        self.buildingManagers = {}
        self.factoryMgr = None
        self.mintMgr = None
        self.lawOfficeMgr = None
        self.countryClubMgr = None

        self.zoneAllocator = UniqueIdAllocator(ToontownGlobals.DynamicZonesBegin,
                                               ToontownGlobals.DynamicZonesEnd)
        self.zoneDataStore = AIZoneDataStore()

        self.wantFishing = self.config.GetBool('want-fishing', True)
        self.wantHousing = self.config.GetBool('want-housing', True)
        self.wantPets = self.config.GetBool('want-pets', True)
        self.wantParties = self.config.GetBool('want-parties', True)
        self.wantCogbuildings = self.config.GetBool('want-cogbuildings', True)
        self.wantCogdominiums = self.config.GetBool('want-cogdominiums', True)
        self.doLiveUpdates = self.config.GetBool('want-live-updates', False)
        self.wantTrackClsends = self.config.GetBool('want-track-clsends', False)
        self.wantAchievements = self.config.GetBool('want-achievements', True)
    def __init__(self, baseChannel, stateServerChannel, districtName):
        ToontownInternalRepository.__init__(
            self, baseChannel, stateServerChannel, dcSuffix='AI')

        self.districtName = districtName

        self.notify.setInfo(True)  # Our AI repository should always log info.
        self.hoods = []
        self.cogHeadquarters = []
        self.dnaStoreMap = {}
        self.dnaDataMap = {}
        self.suitPlanners = {}
        self.buildingManagers = {}
        self.factoryMgr = None
        self.mintMgr = None
        self.lawOfficeMgr = None
        self.countryClubMgr = None

        self.zoneAllocator = UniqueIdAllocator(ToontownGlobals.DynamicZonesBegin,
                                               ToontownGlobals.DynamicZonesEnd)
        self.zoneDataStore = AIZoneDataStore()

        self.wantFishing = self.config.GetBool('want-fishing', True)
        self.wantHousing = self.config.GetBool('want-housing', True)
        self.wantPets = self.config.GetBool('want-pets', True)
        self.wantKarts = self.config.GetBool('want-karts', True)
        self.wantParties = self.config.GetBool('want-parties', True)
        self.wantEmblems = self.config.GetBool('want-emblems', True)
        self.wantCogbuildings = self.config.GetBool('want-cogbuildings', True)
        self.wantCogdominiums = self.config.GetBool('want-cogdominiums', True)
        self.wantTrackClsends = self.config.GetBool('want-track-clsends', False)
        self.wantTopToons = self.config.GetBool('want-top-toons', True)
        self.baseXpMultiplier = self.config.GetFloat('base-xp-multiplier', 1.0)

        self.cogSuitMessageSent = False
예제 #4
0
 def __init__(self, baseChannel, serverId):
     ToontownInternalRepository.__init__(self,
                                         baseChannel,
                                         serverId,
                                         dcSuffix='UD')
     self.wantUD = config.GetBool('want-ud', True)
     self.adminAccess = 0
 def __init__(self, baseChannel, serverId):
     ToontownInternalRepository.__init__(self,
                                         baseChannel,
                                         serverId,
                                         dcSuffix='UD')
     self.__loader = DNALoader.DNALoader()
     self.__dnaMap = {}
    def __init__(self, baseChannel, serverId):
        ToontownInternalRepository.__init__(self,
                                            baseChannel,
                                            serverId,
                                            dcSuffix='UD')

        self.notify.setInfo(True)
 def __init__(self, baseChannel, serverId, districtName):
     ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix='AI')
     self.districtName = districtName
     self.doLiveUpdates = config.GetBool('want-live-updates', True)
     self.wantCogdominiums = config.GetBool('want-cogdominiums', True)
     self.districtId = None
     self.district = None
     self.districtStats = None
     self.holidayManager = None
     self.zoneDataStore = None
     self.petMgr = None
     self.suitInvasionManager = None
     self.questManager = None
     self.promotionMgr = None
     self.cogPageManager = None
     self.raceMgr = None
     self.timeManager = None
     self.newsManager = None
     self.welcomeValleyManager = None
     self.inGameNewsMgr = None
     self.catalogManager = None
     self.trophyMgr = None
     self.zoneTable = {}
     self.dnaStoreMap = {}
     self.dnaDataMap = {}
     self.hoods = []
     self.buildingManagers = {}
     self.suitPlanners = {}
예제 #8
0
    def __init__(self, baseChannel, serverId):
        ToontownInternalRepository.__init__(self,
                                            baseChannel,
                                            serverId,
                                            dcSuffix='UD')

        self.notify.setInfo(True)
        self.wantTopToons = self.config.GetBool('want-top-toons', True)
    def __init__(self, baseChannel, serverId, districtName):
        ToontownInternalRepository.__init__(self,
                                            baseChannel,
                                            serverId,
                                            dcSuffix='AI')

        self.districtName = districtName

        self.zoneAllocator = UniqueIdAllocator(
            ToontownGlobals.DynamicZonesBegin, ToontownGlobals.DynamicZonesEnd)
        self.zoneId2owner = {}

        NPCToons.generateZone2NpcDict()

        self.hoods = []
        self.zoneDataStore = AIZoneDataStore()
        self.dnaStoreMap = {}
        self.dnaDataMap = {}

        self.currentHour = 0
        self.isRaining = False

        self.useAllMinigames = self.config.GetBool('want-all-minigames', False)
        self.doLiveUpdates = self.config.GetBool('want-live-updates', True)
        self.wantFishing = self.config.GetBool('want-fishing', True)
        self.wantHousing = self.config.GetBool('want-housing', True)
        self.wantPets = self.config.GetBool('want-pets', True)
        self.wantParties = self.config.GetBool('want-parties', True)
        self.wantCogbuildings = self.config.GetBool('want-cogbuildings', True)
        self.wantCogdominiums = self.config.GetBool('want-cogdominiums', True)
        self.doLiveUpdates = self.config.GetBool('want-live-updates', False)
        self.wantTrackClsends = self.config.GetBool('want-track-clsends',
                                                    False)
        self.baseXpMultiplier = self.config.GetFloat('base-xp-multiplier', 1.0)
        self.wantHalloween = self.config.GetBool('want-halloween', False)
        self.wantChristmas = self.config.GetBool('want-christmas', False)

        self.holidayManager = HolidayManagerAI(self)

        self.fishManager = FishManagerAI()
        self.questManager = QuestManagerAI(self)
        self.cogPageManager = CogPageManagerAI()
        self.factoryMgr = FactoryManagerAI(self)
        self.mintMgr = MintManagerAI(self)
        self.lawOfficeMgr = LawOfficeManagerAI(self)
        self.countryClubMgr = CountryClubManagerAI(self)
        self.promotionMgr = PromotionManagerAI(self)
        self.cogSuitMgr = CogSuitManagerAI(self)
        self.suitInvasionManager = SuitInvasionManagerAI(self)
        self.wantCogdominiums = self.config.GetBool('want-cogdominums', False)
        self.temperatureManager = TemperatureManagerAI(self)

        self.statusSender = ShardStatusSender(self)

        self.dnaStoreMap = {}

        self.buildingManagers = {}
        self.suitPlanners = {}
예제 #10
0
 def __init__(self, baseChannel, serverId):
     ToontownInternalRepository.__init__(self,
                                         baseChannel,
                                         serverId,
                                         dcSuffix='UD')
     self.gameServicesManager = None
     self.ttoffFriendsManager = None
     self.chatManager = None
     self.deliveryManager = None
예제 #11
0
 def __init__(self, baseChannel, serverId, districtName):
     ToontownInternalRepository.__init__(self,
                                         baseChannel,
                                         serverId,
                                         dcSuffix='AI')
     self.districtName = districtName
     self.doLiveUpdates = self.config.GetBool('want-live-updates', True)
     self.wantCogdominiums = self.config.GetBool('want-cogdominiums', True)
     self.wantEmblems = self.config.GetBool('want-emblems', True)
     self.useAllMinigames = self.config.GetBool('want-all-minigames', True)
     self.districtId = None
     self.district = None
     self.districtStats = None
     self.timeManager = None
     self.newsManager = None
     self.holidayManager = None
     self.welcomeValleyManager = None
     self.catalogManager = None
     self.zoneDataStore = None
     self.inGameNewsMgr = None
     self.trophyMgr = None
     self.petMgr = None
     self.dnaStoreMap = {}
     self.dnaDataMap = {}
     self.zoneTable = {}
     self.hoods = []
     self.buildingManagers = {}
     self.suitPlanners = {}
     self.suitInvasionManager = None
     self.zoneAllocator = None
     self.zoneId2owner = {}
     self.questManager = None
     self.cogPageManager = None
     self.fishManager = None
     self.factoryMgr = None
     self.mintMgr = None
     self.lawMgr = None
     self.countryClubMgr = None
     self.promotionMgr = None
     self.cogSuitMgr = None
     self.partyManager = None
     self.safeZoneManager = None
     self.raceMgr = None
     self.polarPlaceEffectMgr = None
     self.resistanceEmoteMgr = None
     self.tutorialManager = None
     self.friendManager = None
     self.toontownTimeManager = None
     self.estateMgr = None
     self.magicWordManager = None
     self.deliveryManager = None
     self.defaultAccessLevel = OTPGlobals.accessLevelValues.get(
         'TTOFF_DEVELOPER')
    def __init__(self, baseChannel, serverId, districtName):
        ToontownInternalRepository.__init__(self,
                                            baseChannel,
                                            serverId,
                                            dcSuffix='AI')

        self.districtName = districtName

        self.zoneAllocator = UniqueIdAllocator(
            ToontownGlobals.DynamicZonesBegin, ToontownGlobals.DynamicZonesEnd)

        NPCToons.generateZone2NpcDict()

        self.use_libpandadna = simbase.config.GetBool('use-libpandadna', False)

        self.hoods = []
        self._dnaStoreMap = {}

        if self.use_libpandadna:
            self.__loader = DNALoader()

        self.zoneDataStore = AIZoneDataStore()

        self.useAllMinigames = self.config.GetBool('want-all-minigames', False)
        self.doLiveUpdates = True

        self.wantCogdominiums = self.config.GetBool('want-cogdo', False)
        self.wantParties = self.config.GetBool('want-parties', False)
        self.wantEmblems = self.config.GetBool('want-emblems', True)

        self.questManager = QuestManagerAI(self)
        self.promotionMgr = PromotionManagerAI(self)
        self.cogPageManager = CogPageManagerAI(self)
        self.cogSuitMgr = CogSuitManagerAI(self)

        self.trophyMgr = DistributedTrophyMgrAI(self)

        self.fishManager = FishManagerAI()

        self.dnaStoreMap = {}

        self.mintMgr = MintManagerAI.MintManagerAI(self)
        self.factoryMgr = FactoryManagerAI.FactoryManagerAI(self)
        self.lawMgr = LawOfficeManagerAI.LawOfficeManagerAI(self)
        self.countryClubMgr = CountryClubManagerAI.CountryClubManagerAI(self)

        self.buildingManagers = {}
        self.suitPlanners = {}

        self.wantMegaInvasions = str(
            self.ourChannel // 1000000) in self.config.GetString(
                'mega-invasion-shards', '402 403').split()
예제 #13
0
    def __init__(self, baseChannel, stateServerChannel, districtName, startTime=6):
        ToontownInternalRepository.__init__(self, baseChannel, stateServerChannel, dcSuffix='AI')
        self.districtName = districtName
        self.notify.setInfo(True)
        self.hoods = []
        self.hoodId2Hood = {}
        self.cogHeadquarters = []
        self.dnaStoreMap = {}
        self.dnaDataMap = {}
        self.suitPlanners = {}
        self.buildingManagers = {}
        self.sillyMeterMgr = None
        self.factoryMgr = None
        self.mintMgr = None
        self.lawOfficeMgr = None
        self.countryClubMgr = None
        self.boardofficeMgr = None
        self.startTime = startTime
        import pymongo
        self.isRaining = False
        self.betaEventTTC = None
        self.betaEventBDHQ = None
        self.invLastPop = None
        self.invLastStatus = None

        import pymongo

        # Mongo stuff to store seperate database things
        self.dbConn = pymongo.MongoClient(config.GetString('mongodb-url', 'localhost'))
        self.dbGlobalCursor = self.dbConn.altis
        self.dbCursor = self.dbGlobalCursor['air-%d' % self.ourChannel]
        self.zoneAllocator = UniqueIdAllocator(ToontownGlobals.DynamicZonesBegin,
                                               ToontownGlobals.DynamicZonesEnd)
        self.zoneDataStore = AIZoneDataStore()

        self.wantFishing = self.config.GetBool('want-fishing', True)
        self.wantHousing = self.config.GetBool('want-housing', True)
        self.wantPets = self.config.GetBool('want-pets', True)
        self.wantParties = self.config.GetBool('want-parties', True)
        self.wantCogbuildings = self.config.GetBool('want-cogbuildings', True)
        self.wantCogdominiums = self.config.GetBool('want-cogdominiums', True)
        self.doLiveUpdates = self.config.GetBool('want-live-updates', False)
        self.wantTrackClsends = self.config.GetBool('want-track-clsends', False)
        self.wantAchievements = self.config.GetBool('want-achievements', True)
        self.wantCharityScreen = self.config.GetBool('want-charity-screen', False)
        self.baseXpMultiplier = self.config.GetFloat('base-xp-multiplier', 1.0)
        self.wantHalloween = self.config.GetBool('want-halloween', False)
        self.wantChristmas = self.config.GetBool('want-christmas', False)
        self.wantGardening = self.config.GetBool('want-gardening', False)
        self.cogSuitMessageSent = False
        self.weatherCycleDuration = self.config.GetInt('weather-cycle-duration', 100)
예제 #14
0
    def __init__(self, baseChannel, serverId):
        ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix='UD')

        if config.GetBool('want-mongo-client', False):
            url = config.GetString('mongodb-url', 'mongodb://localhost')
            replicaset = config.GetString('mongodb-replicaset', '')
            if replicaset:
                self.mongo = pymongo.MongoClient(url, replicaset=replicaset)
            else:
                self.mongo = pymongo.MongoClient(url)
            db = (urlparse.urlparse(url).path or '/test')[1:]
            self.mongodb = self.mongo[db]

        self.notify.setInfo(True)
예제 #15
0
 def __init__(self, baseChannel, serverId):
     ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix='UD')
     self.rpcServer = None
     self.rpcClient = None
     if config.GetBool('want-mongo-client', False):
         url = config.GetString('mongodb-url', 'mongodb://localhost')
         replicaset = config.GetString('mongodb-replicaset', '')
         if replicaset:
             self.mongo = pymongo.MongoClient(url, replicaset=replicaset)
         else:
             self.mongo = pymongo.MongoClient(url)
         db = (urlparse.urlparse(url).path or '/test')[1:]
         self.mongodb = self.mongo[db]
     self.notify.setInfo(True)
    def __init__(self, baseChannel, serverId, districtName):
        ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix='AI')

        self.districtName = districtName

        self.zoneAllocator = UniqueIdAllocator(ToontownGlobals.DynamicZonesBegin,
                                               ToontownGlobals.DynamicZonesEnd)

        NPCToons.generateZone2NpcDict()
        
        self.use_libpandadna = simbase.config.GetBool('use-libpandadna', False)
        
        self.hoods = []
        self._dnaStoreMap = {}
        
        if self.use_libpandadna:
            self.__loader = DNALoader()
        
        self.zoneDataStore = AIZoneDataStore()

        self.useAllMinigames = self.config.GetBool('want-all-minigames', False)
        self.doLiveUpdates = True
        
        self.wantCogdominiums = self.config.GetBool('want-cogdo', False)
        self.wantParties = self.config.GetBool('want-parties', False)
        self.wantEmblems = self.config.GetBool('want-emblems', True)
        
        self.questManager = QuestManagerAI(self)
        self.promotionMgr = PromotionManagerAI(self)
        self.cogPageManager = CogPageManagerAI(self)
        self.cogSuitMgr = CogSuitManagerAI(self)

        self.trophyMgr = DistributedTrophyMgrAI(self)
        
        self.fishManager = FishManagerAI()
		
        self.dnaStoreMap = {}
        
        self.mintMgr = MintManagerAI.MintManagerAI(self)
        self.factoryMgr = FactoryManagerAI.FactoryManagerAI(self)
        self.lawMgr = LawOfficeManagerAI.LawOfficeManagerAI(self)
        self.countryClubMgr = CountryClubManagerAI.CountryClubManagerAI(self)
        
        self.buildingManagers = {}
        self.suitPlanners = {}
        
        self.wantMegaInvasions = str(self.ourChannel // 1000000) in self.config.GetString('mega-invasion-shards', '402 403').split()            
    def __init__(self, baseChannel, serverId, districtName):
        ToontownInternalRepository.__init__(
            self, baseChannel, serverId, dcSuffix='AI')

        self.dnaSpawner = DNASpawnerAI(self)

        self.districtName = districtName

        self.zoneAllocator = UniqueIdAllocator(
            ToontownGlobals.DynamicZonesBegin,
            ToontownGlobals.DynamicZonesEnd)
        self.zoneId2owner = {}

        NPCToons.generateZone2NpcDict()

        self.hoods = []
        self.zoneDataStore = AIZoneDataStore()

        self.useAllMinigames = self.config.GetBool('want-all-minigames', False)
        self.doLiveUpdates = self.config.GetBool('want-live-updates', True)
        self.baseXpMultiplier = self.config.GetFloat('base-xp-multiplier', 1.0)
        self.wantHalloween = self.config.GetBool('want-halloween', False)
	self.wantChristmas = self.config.GetBool('want-christmas', False)
        self.holidayManager = HolidayManagerAI(self)
        if config.GetBool('want-pets', True):
            self.PetManager = PetManagerAI(self)
        self.fishManager = FishManagerAI()
        self.questManager = QuestManagerAI(self)
        self.cogPageManager = CogPageManagerAI()
        self.factoryMgr = FactoryManagerAI(self)
        self.mintMgr = MintManagerAI(self)
        self.lawOfficeMgr = LawOfficeManagerAI(self)
        self.countryClubMgr = CountryClubManagerAI(self)
        self.promotionMgr = PromotionManagerAI(self)
        self.cogSuitMgr = CogSuitManagerAI(self)
        self.suitInvasionManager = SuitInvasionManagerAI(self)

        self.statusSender = ShardStatusSender(self)

        self.dnaStoreMap = {}

        self.buildingManagers = {}
        self.suitPlanners = {}
예제 #18
0
 def __init__(self, baseChannel, serverId, districtName, holidayPasscode,
              serverDescription, miniserverId):
     ToontownInternalRepository.__init__(self,
                                         baseChannel,
                                         serverId,
                                         dcSuffix='AI')
     self.districtName = districtName
     self.holidayPasscode = holidayPasscode
     self.holidayValue = 0
     self.serverDescription = serverDescription
     self.zoneAllocator = UniqueIdAllocator(
         ToontownGlobals.DynamicZonesBegin, ToontownGlobals.DynamicZonesEnd)
     self.zoneId2owner = {}
     NPCToons.generateZone2NpcDict()
     self.zoneTable = {}
     self.hoodArray = []
     self.hoods = []
     self._dnaStoreMap = {}
     self.zoneDataStore = AIZoneDataStore()
     self.useAllMinigames = self.config.GetBool('want-all-minigames', False)
     self.doLiveUpdates = self.config.GetBool('want-live-updates', True)
     self.reachedPlayerLimit = False
     self.fishManager = FishManagerAI()
     self.questManager = QuestManagerAI(self)
     self.cogPageManager = CogPageManagerAI()
     self.factoryMgr = FactoryManagerAI(self)
     self.mintMgr = MintManagerAI(self)
     self.lawOfficeMgr = LawOfficeManagerAI(self)
     self.countryClubMgr = CountryClubManagerAI(self)
     self.promotionMgr = PromotionManagerAI(self)
     self.cogSuitMgr = CogSuitManagerAI(self)
     self.wantCogdominiums = self.config.GetBool('want-cogdominums', False)
     self.buildingManagers = {}
     self.suitPlanners = {}
     self.inEpisode = False
     self.cutsceneActivated = False
     self.currentEpisode = None
     self.wantMiniServer = config.GetBool('want-mini-server', False)
     if not self.wantMiniServer:
         self.wantPrologue = config.GetBool('want-prologue', False)
     else:
         self.wantPrologue = False
     return
예제 #19
0
    def __init__(self, baseChannel, serverId, districtName):
        ToontownInternalRepository.__init__(self,
                                            baseChannel,
                                            serverId,
                                            dcSuffix='AI')

        self.dnaSpawner = DNASpawnerAI(self)

        self.districtName = districtName

        self.notify.setInfo(True)  # Our AI repository should always log info.

        self.zoneAllocator = UniqueIdAllocator(
            ToontownGlobals.DynamicZonesBegin, ToontownGlobals.DynamicZonesEnd)
        self.zoneId2owner = {}

        NPCToons.generateZone2NpcDict()

        self.hoods = []
        self.zoneDataStore = AIZoneDataStore()

        self.useAllMinigames = self.config.GetBool('want-all-minigames', False)
        self.doLiveUpdates = self.config.GetBool('want-live-updates', True)

        self.holidayManager = HolidayManagerAI(self)

        self.fishManager = FishManagerAI()
        self.questManager = QuestManagerAI(self)
        self.cogPageManager = CogPageManagerAI()
        self.factoryMgr = FactoryManagerAI(self)
        self.mintMgr = MintManagerAI(self)
        self.lawOfficeMgr = LawOfficeManagerAI(self)
        self.countryClubMgr = CountryClubManagerAI(self)
        self.promotionMgr = PromotionManagerAI(self)
        self.cogSuitMgr = CogSuitManagerAI(self)
        self.suitInvasionManager = SuitInvasionManagerAI(self)

        self.statusSender = ShardStatusSender(self)

        self.dnaStoreMap = {}

        self.buildingManagers = {}
        self.suitPlanners = {}
    def __init__(self, baseChannel, serverId):
        ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix="UD")

        self.rpcServer = None
        self.webRpc = None

        if config.GetBool("want-mongo-client", False):
            url = config.GetString("mongodb-url", "mongodb://localhost")
            replicaset = config.GetString("mongodb-replicaset", "")
            if replicaset:
                self.mongo = pymongo.MongoClient(url, replicaset=replicaset)
            else:
                self.mongo = pymongo.MongoClient(url)
            db = (urlparse.urlparse(url).path or "/test")[1:]
            self.mongodb = self.mongo[db]
        else:
            self.mongo = None
            self.mongodb = None

        self.notify.setInfo(True)
예제 #21
0
    def __init__(self, baseChannel, serverId, districtName):
        ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix='AI')

        self.dnaSpawner = DNASpawnerAI(self)

        self.districtName = districtName
        
        self.notify.setInfo(True)  # Our AI repository should always log info.

        self.zoneAllocator = UniqueIdAllocator(ToontownGlobals.DynamicZonesBegin,
                                               ToontownGlobals.DynamicZonesEnd)
        self.zoneId2owner = {}

        NPCToons.generateZone2NpcDict()

        self.hoods = []
        self.zoneDataStore = AIZoneDataStore()

        self.useAllMinigames = self.config.GetBool('want-all-minigames', False)
        self.doLiveUpdates = self.config.GetBool('want-live-updates', True)

        self.holidayManager = HolidayManagerAI(self)

        self.fishManager = FishManagerAI()
        self.questManager = QuestManagerAI(self)
        self.cogPageManager = CogPageManagerAI()
        self.factoryMgr = FactoryManagerAI(self)
        self.mintMgr = MintManagerAI(self)
        self.lawOfficeMgr = LawOfficeManagerAI(self)
        self.countryClubMgr = CountryClubManagerAI(self)
        self.promotionMgr = PromotionManagerAI(self)
        self.cogSuitMgr = CogSuitManagerAI(self)
        self.suitInvasionManager = SuitInvasionManagerAI(self)

        self.statusSender = ShardStatusSender(self)

        self.dnaStoreMap = {}

        self.buildingManagers = {}
        self.suitPlanners = {}
예제 #22
0
    def __init__(self, baseChannel, serverId, districtName):
        ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix='AI')

        self.districtName = districtName

        self.zoneAllocator = UniqueIdAllocator(ToontownGlobals.DynamicZonesBegin,
                                               ToontownGlobals.DynamicZonesEnd)

        NPCToons.generateZone2NpcDict()

        self.hoods = []
        self.zoneDataStore = AIZoneDataStore()

        self.useAllMinigames = self.config.GetBool('want-all-minigames', False)
        self.doLiveUpdates = False

        self.holidayManager = HolidayManagerAI()
        
        self.fishManager = FishManagerAI()
        
        self.mintMgr = MintManagerAI.MintManagerAI(self)
        self.factoryMgr = FactoryManagerAI.FactoryManagerAI(self)
예제 #23
0
 def __init__(self, baseChannel, serverId):
     ToontownInternalRepository.__init__(self,
                                         baseChannel,
                                         serverId,
                                         dcSuffix='UD')
     self.astronLoginManager = None
예제 #24
0
 def __init__(self, baseChannel, serverId):
     ToontownInternalRepository.__init__(self,
                                         baseChannel,
                                         serverId,
                                         dcSuffix='UD')
    def __init__(self, baseChannel, serverId):
        ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix='UD')

        self.notify.setInfo(True)
        self.wantTopToons = self.config.GetBool('want-top-toons', True)
 def __init__(self, baseChannel, serverId):
     ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix='UD')
 def __init__(self, baseChannel, serverId):
     ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix = 'UD')
     self.__loader = DNALoader.DNALoader()
     self.__dnaMap = {}
    def __init__(self, baseChannel, serverId):
        ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix='UD')

        self.notify.setInfo(True)
 def __init__(self, baseChannel, serverId):
     ToontownInternalRepository.__init__(self, baseChannel, serverId, dcSuffix='UD')
     self.wantUD = config.GetBool('want-ud', True)
예제 #30
0
 def __init__(self, baseChannel, serverId, expMultiplier, meritMultiplier,
              doodleMultiplier, defaultMaxToon, defaultZone, districtName,
              districtLimit, districtDescription, districtWebsiteId,
              eventId, defaultAccessLevel):
     ToontownInternalRepository.__init__(self,
                                         baseChannel,
                                         serverId,
                                         dcSuffix='AI')
     self.expMultiplier = expMultiplier
     self.meritMultiplier = meritMultiplier
     self.doodleMultiplier = doodleMultiplier
     self.defaultMaxToon = defaultMaxToon
     self.defaultZone = defaultZone
     self.districtName = districtName
     self.districtLimit = districtLimit
     if self.districtLimit < ToontownGlobals.MIN_POP:
         self.districtLimit = ToontownGlobals.MIN_POP
     elif self.districtLimit > ToontownGlobals.HIGH_POP:
         self.districtLimit = ToontownGlobals.HIGH_POP
     self.districtDescription = districtDescription
     self.districtWebsiteId = districtWebsiteId
     self.eventId = eventId
     self.defaultAccessLevel = defaultAccessLevel
     self.doLiveUpdates = self.config.GetBool('want-live-updates', True)
     self.wantCogdominiums = self.config.GetBool('want-cogdominiums', True)
     self.wantEmblems = self.config.GetBool('want-emblems', True)
     self.useAllMinigames = self.config.GetBool('want-all-minigames', True)
     self.wantEmblems = self.config.GetBool('want-emblems', True)
     self.districtId = None
     self.district = None
     self.districtStats = None
     self.districtFull = False
     self.timeManager = None
     self.newsManager = None
     self.holidayManager = None
     self.welcomeValleyManager = None
     self.catalogManager = None
     self.zoneDataStore = None
     self.inGameNewsMgr = None
     self.trophyMgr = None
     self.petMgr = None
     self.dnaStoreMap = {}
     self.dnaDataMap = {}
     self.zoneTable = {}
     self.hoods = []
     self.buildingManagers = {}
     self.suitPlanners = {}
     self.suitInvasionManager = None
     self.zoneAllocator = None
     self.zoneId2owner = {}
     self.questManager = None
     self.cogPageManager = None
     self.fishManager = None
     self.factoryMgr = None
     self.mintMgr = None
     self.lawMgr = None
     self.countryClubMgr = None
     self.promotionMgr = None
     self.cogSuitMgr = None
     self.partyManager = None
     self.safeZoneManager = None
     self.raceMgr = None
     self.polarPlaceEffectMgr = None
     self.resistanceEmoteMgr = None
     self.tutorialManager = None
     self.friendManager = None
     self.chatManager = None
     self.toontownTimeManager = None
     self.estateMgr = None
     self.magicWordManager = None
     self.deliveryManager = None
     self.cogSuitMessageSent = False
     self.propGenerators = {}
     self.propGeneratorsLocked = False
     self.moddingManager = None
     self.discordManager = None
     return