This is an addon for X4: Foundations Lua Scripts that can be used by the Lua Language Server. It adds definitions for functions and data types. This addon is designed to enhance the development experience for Lua scripting in X4: Foundations.
The addon manager for VS Code allows users to easily install and manage their addons. The addons are pulled from LLS-Addons.
For other cases please refer to the Addon documentation.
Details
- Get data from the X Wiki
- Parse the data
- Reconciliation of the data from Wiki
- Add data from an extracted Lua files for ffi/C functions and data types
- Enrichment of the data from the extracted Lua files
- Add data from the extracted Lua files for the Helper functions
- Enrichment of the data for the Helper functions
- Add data from the extracted Lua files for the Globally Exposed functions via
AddGlobalAccess. - Reconciliation and enrichment of the Globally Exposed functions
- Detection of the undocumented functions
- Reconciliation and enrichment of the undocumented functions
The data is collected into the Hjson format for easier manipulation and access in another repo: X4-LuaLSAddonPrep. Where the data is then processed and converted into the Lua Language Server addon format.
If you want to contribute to the project, please take part in editing respective .hjson files in the X4-LuaLSAddonPrep repository.
This addon is licensed under the MIT license. See LICENSE for the full license text.