Satisfactory Blueprint Library
The SBL is used to provide BP-Scripts access to SML so they don’t need to use native code.
USMLBlueprintLibrary provides the functions you can use to interact with SML.
The debug logger is used to provide quick usage of the level based
logging for the the console of SML. It does that by providing multiple
static functions you can find under
Logs the given string with the "info-color" but only if debugMode of SML is enabled or ignoreDebugMode is set to true.
The SBL also provides the ability to save and load configurations just in BluePrints.
config you can pass any kind of custom struct.
But only these types will get parsed properly:
Array of allowed types
Dumps the given config struct as a Json and saves it as the config file for the mod with the given name.
Parses the config file of the given modid to the attributes of the given config struct. Attributes not existent in the config file wont get changed. (basically if you set default values for the struct, or just set the structs variables to the values you want to use as default, this would allow you to define default values for the config files) Settings set in the config file wich don’t have a corresponding attribute in the config struct simply get ignored.
Converts the given structure to a string. If use pretty property names is enabled, the property names will look more human readable.
There are functions allowing you to interact with the Mod Registry and other Mod info aswell as helper functions for converting information you might need handle to a more usefull format.
This function allows you to easily convert a string encoded version like
to a version structure.
This function allows you to convert a version structure
to a human readable version string like
This function takes a mod reference as input and checks if any kind of mod with that reference got loaded or not.
This function returns the mod references of all currently loaded mods in an array.
This function allows you to access additional information about the mod with the given reference.
This function allows you to load the mod icon of the mod witht the given reference as a Texture2D. If no Texture or mod is found, the function will return the fallback icon.
This function allows you to retrieve the version of the currently installed mod loader.
This function allows you to retrieve the version of the currently installed bootstrapper.
This struct contains information about a SemVer compatible version in a parsed state.
int64 Major (read only)
The major SemVer version number
int64 Minor (read only)
The minor SemVer version number
int64 Patch (read only)
The SemVer parch number
String Type (read only)
The version type of this SemVer version.
String BuildInfo (read only)
Additional information to the version build.
This struct contains infromation about a loaded mod. Mainly contents of the data.json of the mod.
String Modid (read only)
The mod reference
String Name (read only)
The display name of the mod
Version Version (read only)
The version of the mod
String Description (read only)
The description of the mod
Array<String> Authors (read only)
The names of the authors of the mod in a list.
String Credits (read only)
Credits of the mod