Types/FileName

From Official Factorio Wiki
Revision as of 14:52, 30 October 2013 by Kovarex (talk | contribs) (→‎base)
Jump to navigation Jump to search

Basics

Specified by Types/string

Slash (/) is always used as directory delimiter.

Root placeholder

The path should always begin by the specification of the root.

core

Path starting with __core__ will access the resources in the data/core directory, these resources are always accessible regardless of mod specifications.

   filename = "__core__/graphics/arrows/underground-lines.png"

base

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.

   filename = "__base__/graphics/entity/basic-transport-belt/basic-transport-belt.png"

mod path

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