def _LoadMessagesFromFSD(): return fsdBinaryLoader.LoadFSDDataForCFG('res:/staticdata/dialogs.static', 'res:/staticdata/dialogs.schema', optimize=False)
def GetLandmarks(self): if self.landmarks is None: self.landmarks = fsdBinaryLoader.LoadFSDDataForCFG( 'res:/staticdata/landmarks.static') return self.landmarks
def __LoadBinaryFromResFolder(cls): data = binaryLoader.LoadFSDDataForCFG(cls.__resBuiltFile__) if data is None: raise ImportError return data
def GetFSDInfoForGroups(): data = fsdBinaryLoader.LoadFSDDataForCFG('res:/staticdata/podGuideGroups.static') return data
def _LoadRawAchievementData(self): import fsd.schemas.binaryLoader as fsdBinaryLoader return fsdBinaryLoader.LoadFSDDataForCFG( 'res:/staticdata/achievements.static')
def __init__(self, fsdResPath): self.componentDataByTypeID = fsdBinaryLoader.LoadFSDDataForCFG(fsdResPath)
def _LoadRawData(self): import fsd.schemas.binaryLoader as fsdBinaryLoader return fsdBinaryLoader.LoadFSDDataForCFG( 'res:/staticdata/cohorts.static')
def GotInitData(self, initdata): self.LogInfo('GotInitData') if machobase.mode == 'client': sm.GetService('bulkSvc').Connect() sm.ScatterEvent('OnProcessLoginProgress', 'loginprogress::miscinitdata', 'messages', 2, self.totalLogonSteps) self.graphics = fsdBinaryLoader.LoadFSDDataForCFG( 'res:/staticdata/graphicIDs.static') self.icons = fsdBinaryLoader.LoadFSDDataForCFG( 'res:/staticdata/iconIDs.static', 'res:/staticdata/iconIDs.schema') self.sounds = fsdBinaryLoader.LoadFSDDataForCFG( 'res:/staticdata/soundIDs.static', 'res:/staticdata/soundIDs.schema') self.detailMeshes = self.LoadBulkIndex('detailMeshes', const.cacheResDetailMeshes, 'detailGraphicID') self.detailMeshesByTarget = self.LoadBulkFilter( 'detailMeshesByTarget', const.cacheResDetailMeshes, 'targetGraphicID') self._worldspacesDistrictsCache = {} self.worldspaces = self.LoadBulkIndex('worldspaces', const.cacheWorldSpaces, 'worldSpaceTypeID', Worldspaces) self.entitySpawns = self.LoadBulkIndex('entitySpawns', const.cacheEntitySpawns, 'spawnID') self.entitySpawnsByWorldSpaceID = self.LoadBulkFilter( 'entitySpawnsByWorldSpaceID', const.cacheEntitySpawns, 'worldSpaceTypeID') self.entitySpawnsByRecipeID = self.LoadBulkFilter( 'entitySpawnsByRecipeID', const.cacheEntitySpawns, 'recipeID') self.entityIngredientInitialValues = self.LoadBulkFilter( 'entityIngredientInitialValues', const.cacheEntityIngredientInitialValues, 'ingredientID') self.entityIngredientsByParentID = self.LoadBulkFilter( 'entityIngredientsByParentID', const.cacheEntityIngredients, 'parentID') self.entityIngredientsByRecipeID = self.LoadBulkFilter( 'entityIngredientsByRecipeID', const.cacheEntityIngredients, 'recipeID') self.ingredients = self.LoadBulkIndex('ingredients', const.cacheEntityIngredients, 'ingredientID') self.entitySpawnGroups = self.LoadBulkIndex( 'entitySpawnGroups', const.cacheEntitySpawnGroups, 'spawnGroupID') self.entitySpawnsBySpawnGroup = self.LoadBulkFilter( 'entitySpawnsBySpawnGroup', const.cacheEntitySpawnGroupLinks, 'spawnGroupID') self.recipes = self.LoadBulkIndex('recipes', const.cacheEntityRecipes, 'recipeID') self.recipesByParentRecipeID = self.LoadBulkFilter( 'recipesByParentRecipeID', const.cacheEntityRecipes, 'parentRecipeID') self.treeNodes = self.LoadBulkIndex('treeNodes', const.cacheTreeNodes, 'treeNodeID') self.treeLinks = self.LoadBulkFilter('treeLinks', const.cacheTreeLinks, 'parentTreeNodeID') self.treeNodeProperties = self.LoadBulkIndex('treeNodeProperties', const.cacheTreeProperties, 'propertyID') self.actionTreeSteps = self.LoadBulkFilter('actionTreeSteps', const.cacheActionTreeSteps, 'actionID') self.actionTreeProcs = self.LoadBulkFilter('actionTreeProcs', const.cacheActionTreeProcs, 'actionID') self.actionObjects = self.LoadBulkIndex('actionObjects', const.cacheActionObjects, 'actionObjectID') self.actionStations = self.LoadBulkIndex('actionStations', const.cacheActionStations, 'actionStationTypeID') self.actionStationActions = self.LoadBulkFilter( 'actionStationActions', const.cacheActionStationActions, 'actionStationTypeID') self.actionObjectStations = self.LoadBulkFilter( 'actionObjectStations', const.cacheActionObjectStations, 'actionObjectID') self.actionObjectExits = self.LoadBulkFilter( 'actionObjectExits', const.cacheActionObjectExits, ['actionObjectID', 'actionStationInstanceID', True]) self.paperdollModifierLocations = self.LoadBulkIndex( 'paperdollModifierLocations', const.cachePaperdollModifierLocations, 'modifierLocationID') self.paperdollResources = self.LoadBulkIndex( 'paperdollResources', const.cachePaperdollResources, 'paperdollResourceID') self.paperdollSculptingLocations = self.LoadBulkIndex( 'paperdollSculptingLocations', const.cachePaperdollSculptingLocations, 'sculptLocationID') self.paperdollColors = self.LoadBulkIndex('paperdollColors', const.cachePaperdollColors, 'colorID') self.paperdollColorNames = self.LoadBulkIndex( 'paperdollColorNames', const.cachePaperdollColorNames, 'colorNameID') self.paperdollColorRestrictions = self.LoadBulkFilter( 'paperdollColorRestrictions', const.cachePaperdollColorRestrictions, 'colorNameID') self.perceptionSenses = self.LoadBulkIndex('perceptionSenses', const.cachePerceptionSenses, 'senseID') self.perceptionStimTypes = self.LoadBulkIndex( 'perceptionStimTypes', const.cachePerceptionStimTypes, 'stimTypeID') self.perceptionSubjects = self.LoadBulkIndex( 'perceptionSubjects', const.cachePerceptionSubjects, 'subjectID') self.perceptionTargets = self.LoadBulkIndex( 'perceptionTargets', const.cachePerceptionTargets, 'targetID') self.perceptionBehaviorSenses = self.LoadBulk( 'perceptionBehaviorSenses', const.cachePerceptionBehaviorSenses) self.perceptionBehaviorDecays = self.LoadBulk( 'perceptionBehaviorDecays', const.cachePerceptionBehaviorDecays) self.perceptionBehaviorFilters = self.LoadBulk( 'perceptionBehaviorFilters', const.cachePerceptionBehaviorFilters) self.encounters = self.LoadBulkIndex('encounters', const.cacheEncounterEncounters, 'encounterID') self.encounterCoordinateSets = self.LoadBulkIndex( 'encounterCoordinateSets', const.cacheEncounterCoordinateSets, 'coordinateSetID') self.encounterCoordinatesBySet = self.LoadBulkFilter( 'encounterCoordinatesBySet', const.cacheEncounterCoordinates, 'coordinateSetID') self.encounterCoordinates = self.LoadBulkIndex( 'encounterCoordinates', const.cacheEncounterCoordinates, 'coordinateID') self.encounterCoordinateSetsByWorldSpaceID = self.LoadBulkFilter( 'encounterCoordinateSetsByWorldSpaceID', const.cacheEncounterCoordinateSets, 'worldSpaceTypeID') self.encountersByCoordinateSet = self.LoadBulkFilter( 'encountersByCoordinateSet', const.cacheEncounterEncounters, 'coordinateSetID')
def GetGraphicIDs(): global _graphicIDs if _graphicIDs is None: _graphicIDs = fsdBinaryLoader.LoadFSDDataForCFG('res:/staticdata/graphicIDs.static') return _graphicIDs
def GetMaterialSets(): global _materialSets if _materialSets is None: _materialSets = fsdBinaryLoader.LoadFSDDataForCFG('res:/staticdata/graphicMaterialSets.static') return _materialSets