Types/FileName: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "== Basics == Specified by Types/string Slash (/) is always used as directory delimiter. == Root placeholder == The path should always begin by the specification of the r...")
 
 
Line 11: Line 11:
=== base ===
=== base ===
Path starting with __base__ will access the resources in the base mod in data/base directory.
Path starting with __base__ will access the resources in the base mod in data/base directory.
These resources are usually available, but can when the base mod is removed/deactivated.
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"
     filename = "__base__/graphics/entity/basic-transport-belt/basic-transport-belt.png"
=== mod path ===
=== 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.
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.

Latest revision as of 14:52, 30 October 2013

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.