Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## FileName :: string Example code

A slash `"/"` is always used as the directory delimiter. A path always begins with the specification of a root, which can be one of three formats:

- core: A path starting with `__core__` will access the resources in the data/core directory, these resources are always accessible regardless of mod specifications.

- base: A path starting with `__base__` will access the resources in the base mod in data/base directory. These resources are usually available, as long as the base mod isn't removed/deactivated.

- mod path: The format `__<mod-name>__` is placeholder for root of any other mod (mods/), and is accessible as long as the mod is active.

## Examples

    filename = "__base__/graphics/entity/accumulator/accumulator.png"

    filename = "__a-mod__/animations/assembler.png"

Type used in

- AchievementPrototype::icon
- AmmoCategory::icon
- Animation::filename
- Animation::filenames
- AnimationPrototype::filename
- AnimationPrototype::filenames
- AnimationSheet::filename
- AnimationSheet::filenames
- AsteroidChunkPrototype::icon
- BaseModifier::icon
- ColorLookupTable
- ElementImageSetLayer::filename
- EntityPrototype::icon
- FluidPrototype::icon
- GuiStyle::default_tileset
- IconData::icon
- ItemGroup::icon
- ItemPrototype::icon
- ItemPrototype::dark_background_icon
- ItemWithEntityDataPrototype::icon_tintable_mask
- ItemWithEntityDataPrototype::icon_tintable
- MaterialTextureParameters::picture
- MouseCursor::filename
- QualityPrototype::icon
- RecipePrototype::icon
- RotatedAnimation::filename
- RotatedAnimation::filenames
- RotatedSprite::filename
- RotatedSprite::filenames
- ShortcutPrototype::icon
- ShortcutPrototype::small_icon
- SimulationDefinition::save
- SimulationDefinition::init_file
- SimulationDefinition::update_file
- Sound::filename
- SoundDefinition
- SoundDefinition::filename
- SoundPrototype::filename
- SpaceConnectionPrototype::icon
- SpaceLocationPrototype::icon
- SpaceLocationPrototype::starmap_icon
- Sprite::filename
- SpritePrototype::filename
- SpriteSheet::filenames
- SpriteSource::filename
- Stripe::filename
- SurfacePrototype::icon
- TechnologyPrototype::icon
- TilePrototype::icon
- TileSpriteLayout::picture
- TileSpriteLayoutVariant::spritesheet
- TileTransitions::spritesheet
- TileTransitions::mask_spritesheet
- TileTransitions::background_spritesheet
- TileTransitions::background_mask_spritesheet
- TileTransitions::effect_map_spritesheet
- TileTransitions::lightmap_spritesheet
- TileTransitions::auxiliary_effect_mask_spritesheet
- TipsAndTricksItem::image
- TipsAndTricksItem::icon
- UtilityConstants::missing_preview_sprite_location
- UtilityConstants::main_menu_background_image_location
- VirtualSignalPrototype::icon