Skip to content

Database types ​

The Database knows 71 types of resource. Each row says the type name you pass to the database (Database.get_resource("effect", id)), the class every resource of the type must be, the folder its files are saved in (one <id>.tres file per resource) and the editor tab you make them in. Every class in the table extends DatabaseResource.

The rows are in the order of the REGISTRY, grouped like the editor's categories. The type enviroment is spelled that way in the code.

TypeClassFolderEdited in
World
worldWorldDatasrc/data/worlds/Worlds
enviromentEnvironmentConfigsrc/data/worlds/enviroment/World Configs
skySkyConfigsrc/data/worlds/sky/World Configs
sunSunConfigsrc/data/worlds/sun/World Configs
timeTimeConfigsrc/data/worlds/time/World Configs
weatherWeatherConfigsrc/data/worlds/weather/
(the shelter profiles are the old way of making a shelter: the settings are now on the volume. The kind is kept so that a scene that still has a profile can be read)
shelterShelterProfilesrc/data/worlds/shelters/
weather_tableWeatherTablesrc/data/worlds/weather_tables/
sound_albumSoundAlbumsrc/data/audio/albums/sound_albums/Music Albums
dynamic_musicDynamicMusicsrc/data/audio/dynamic_music/Dynamic Music
Events & Quests
eventEventsrc/data/events/Events
questQuestsrc/data/quests/Quests
questlineQuestLinesrc/data/questlines/Quest Lines
global_variableGlobalVariablesrc/data/global_variables/Global Variables
Abilities & Effects
abilityAbilityDefinitionsrc/data/abilities/Abilities
effectEffectsrc/data/effects/Effects
skill_treeSkillTreesrc/data/player_classes/skill_trees/Skill Trees
skill_poolSkillPointPoolsrc/data/player_classes/skill_pools/Skill Trees
Entities
npcNPCDefinitionsrc/data/npc/NPCs
npc_templateNPCDefinitionsrc/data/npc/templates/NPCs (templates)
player_classPlayerClassDefinitionsrc/data/player_classes/Player Classes
player_class_templatePlayerClassDefinitionsrc/data/player_classes/templatesPlayer Classes (templates)
characterCharacterDefinitionsrc/data/characters/Playable Character
interactableInteractableDefinitionsrc/data/interactables/Interactables
interactable_templateInteractableDefinitionsrc/data/interactables/templates/
Behaviors
factionFactionDefinitionsrc/data/factions/Factions
conversationConversationsrc/data/behaviors/conversations/Conversations
combat_scriptModularCombatScriptsrc/data/behaviors/combat_scripts/Combat Scripts
behavior_scriptModularBehaviorScriptsrc/data/behaviors/behavior_scripts/Behavior Scripts
Entity Stats Definitions
damage_typeDamageTypeDefinitionsrc/data/stats/damage_types/Damage Types
school_typeSchoolTypeDefinitionsrc/data/stats/school_types/School Types
immunityImmunityDefinitionsrc/data/stats/immunities/Immunities
trigger_tagTriggerTagDefinitionsrc/data/stats/trigger_tags/Trigger Tags
entity_tagEntityTagDefinitionsrc/data/entity_tags/Entity Types
ui_tagUITagDefinitionsrc/data/ui_tags/
emoteEmoteDefinitionsrc/data/emotes/
groupGroupDefinitionsrc/data/groups/Groups
status_effectStatusEffectDefinitionsrc/data/stats/status_effects/Status Effects
statStatDefinitionsrc/data/stats/Stats
stat_groupStatGroupDefinitionsrc/data/stats/stat_groups/Stat Groups
proficiencyProficiencyDefinitionsrc/data/stats/proficiencies/
poolPoolDefinitionsrc/data/stats/pools/Pool
growth_profileGrowthProfilesrc/data/stats/growth_profiles/
Items
itemItemDefinitionsrc/data/items/Items
currencyCurrencyDefinitionsrc/data/items/currencies/Currency
loot_tableLootTablesrc/data/loot_tables/Loot Tables
recipeCraftingRecipeDefinitionsrc/data/crafting/recipes/Craft Recipes
craft_schoolCraftSchoolDefinitionsrc/data/crafting/schools/Craft Schools
vendorVendorDefinitionsrc/data/vendors/Vendors
trainerTrainerDefinitionsrc/data/trainers/
mountMountDefinitionsrc/data/mounts/Mounts
Equipment Definitions
armor_classArmorClassDefinitionsrc/data/items/armor_classes/Armor Class
weapon_classWeaponClassDefinitionsrc/data/items/weapon_classes/Weapon Class
weapon_profileWeaponProfilesrc/data/items/weapon_profiles/Weapon Profiles
equipment_typeEquipmentTypeDefinitionsrc/data/items/equipment_types/Equipment Type
weapon_typeWeaponTypeDefinitionsrc/data/items/weapon_types/Equipment Type
equipment_slotEquipmentSlotDefinitionsrc/data/items/equipment_slots/Equipment Slot
qualityQualitysrc/data/items/qualities/Quality
affixAffixsrc/data/items/affixes/Affixes
set_bonusSetBonusDefinitionsrc/data/items/set_bonuses/Set Bonus
socketSocketDefinitionsrc/data/items/sockets/Socket
Unique Objects Data
unique_entityUniqueEntityDatasrc/data/unique_entities/The Unique Object tool
unique_interactableUniqueInteractableDatasrc/data/unique_interactables/The Unique Object tool
unique_encounterUniqueEncounterDatasrc/data/unique_encounters/The Unique Object tool
unique_spawnerUniqueSpawnerDatasrc/data/unique_spawners/The Unique Object tool
Trigger areas
trigger_areaTriggerAreaDatasrc/data/trigger_areas/Trigger areas
Spawning
spawn_tableSpawnTableDefinitionsrc/data/spawn_tables/Spawn tables
Zones
zoneZoneDefinitionsrc/data/zones/Zones
Terrain
terrain_textureTerrainTextureDefinitionsrc/data/worlds/terrain/textures/Terrain Textures
foliageFoliageDefinitionsrc/data/worlds/foliage/entries/Foliage
UI
popupPopupDatasrc/data/popups/Popups

See Data and the Database for how the types are loaded, saved and referenced, and Asset databases for the libraries of animations, audio, VFX, meshes, models and icons, which are not resources of this registry.