This VS Code extension contains useful tools, snippets and helpers for creating mods for Baldur's Gate 3.
Table of Contents
-
workspaceContains:/**/meta.lsx
The extension activates for a workspace that contains the
meta.lsx
file.
The extension contributes the following snippets:
Name | Activation | Description |
---|---|---|
BG3 UUID | uuid |
Generate a random UUID |
BG3 Handle | handle |
Generates a random UUID handle used in localization files |
Ext.Utils.Print() |
print , eup |
Ext.Utils.Print() |
Ext.Osiris.RegisterListener() |
rl , orl , eorl |
Ext.Osiris.RegisterListener() |
Override Stat Entry | new , override |
Create an override for an existing Stat Entry |
Script-Extender Config | cfg , Config.json |
Generates the boilerplate Script-Extender Config.json |
meta.lsx |
meta |
Generates the boilerplate template for meta.lsx |
The extension contributes the following commands:
Generate a random UUID and insert at the current selection.
b7b98e25-ff34-40dd-b019-ab25521ae5a0
Generate Handle and insert at the current selection.
hb7b98e25gff34g40ddgb019gab25521ae5a0
Copies the Mod's UUID to the clipboard.
Convert between BG3 version numbers.
1.0.0.0 --> 36028797018963968
36028797018963968 --> 1.0.0.0
Takes the version number as input in either the string format (e.g. 1.0.0.0
) or bigint format (e.g. 36028797018963968
).
Bumps the version number in the meta.lsx
by the specified type.
1.0.0.0 --- Bump Minor Version --> 1.1.0.0
1.2.0.7 --- Bump Major Version --> 2.0.0.0
Major
Minor
Revision
Build
The extension contributes JSON validation schemas for:
This will enable intellisense and provide validation for these files.
The extension provides default configuration settings for:
"files.associations": {
"*.lsx": "xml",
"*.lsj": "json"
},
"search.exclude": {
"**/*.raw": true,
"**/Story/*.div": true,
"**/*.osi": true,
"**/*.dat": true
}
Include if your extension adds any VS Code settings through the contributes.configuration
extension point.
For example:
This extension contributes the following settings:
myExtension.enable
: Enable/disable this extension.myExtension.thing
: Set toblah
to do something.
This project is licensed under the MIT License.