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...")
 
(Removed old prototype docs)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Basics ==
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/FileName.html https://lua-api.factorio.com/latest/types/FileName.html]
Specified by [[Types/string]]


Slash (/) is always used as directory delimiter.
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
 
== 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, but can when the base mod is 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.

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/FileName.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.