Skip to main content

File Path References#

This page lists available file path references and which folders they represent.

"$MOD_DATA"

Represents the root directory of the current mod.

note

This path can only be used from within a workshop mod.
Some functions do not work with this (for example guiInterface:setImage() ).
It is recommended to use $CONTENT_DATA instead.


"$CONTENT_DATA"

If used in a mod, this represents the root directory of the current mod.
If used in the game files, this represents the Challenges/MasterMechanicTrials
directory in the game files.


"$CONTENT_UUID"

Represents the root directory of the content with the given UUID.
To use this, replace UUID with the UUID of a mod or blueprint.
The UUID can be found in the content's description.json file
in the localId entry.


"$GAME_DATA"

Represents the Data directory in the game files.


"$SURVIVAL_DATA"

Represents the Survival directory in the game files.


"$CHALLENGE_DATA"

Represents the ChallengeData directory in the game files.


"$CACHE_DATA"

Represents the Cache directory in the game files.


"$TEMP_DATA"

Represents the Temp folder in the %LocalAppData%/Axolot Games/Scrap Mechanic/ directory.
This folder normally only exists while the game is running, though it only gets deleted if
the game is closed using the Exit Game button in the main menu.
It is not deleted if the game is closed in any other way.