Parsers & Relative Paths
Starting with version 1.0.6, ConfigBP includes parsers that allow you to get at various paths related to your project using the Open Configuration File node.
To use these parsers, use one of the parsing tags, followed by the name of your configuration file. See the below table for the currently implemented parsers. Please also ensure that the "relative path" box is unchecked: the parsers will be substituted `for the paths.
An example of a configuration file could be: {{UserDir}}/test.ini. This will open up the test.ini configuration file, located at your project's root/the main project directory.
For a full overview of all parsers available in v1.0.6+, please refer to the table below:
| Parser | Description | Example Path (in Editor) | Example Path (in Packaged Game) |
|---|---|---|---|
{{UserDir}} | Project (User) Directory | D:/Users/UserName/Documents/Unreal Projects/ConfigBPProject | D:/Users/UserName/Documents/Unreal Projects/ConfigBPProject/WindowsNoEditor/ConfigBPProject |
{{GameConfig}} | Project Configuration Directory | D:/Users/UserName/Documents/Unreal Projects/ConfigBPProject/Config | D:/Users/UserName/Documents/Unreal Projects/ConfigBPProject/WindowsNoEditor/ConfigBPProject/Config |
{{ProjectDir}} | Project Directory | D:/Users/UserName/Documents/Unreal Projects/ConfigBPProject | D:/Users/UserName/Documents/Unreal Projects/ConfigBPProject/WindowsNoEditor/ConfigBPProject |
{{ContentDir}} | Content Directory | D:/Users/UserName/Documents/Unreal Projects/ConfigBPProject/Content | D:/Users/UserName/Documents/Unreal Projects/ConfigBPProject/WindowsNoEditor/ConfigBPProject/Content |
{{ProjectSavedDir}} | Saved Directory | D:/Users/UserName/Documents/Unreal Projects/ConfigBPProject/Saved | D:/Users/UserName/Documents/Unreal Projects/ConfigBPProject/WindowsNoEditor/ConfigBPProject/Saved |