This repo holds a source data for the Lua Language Server Addon for X4: Foundations Lua Scripts. Mentioned repo contains 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.
Please refer to the appropriate Readme file for the respective addon.
- 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.
Located in the x4-lua-functions.hjson file.
This file contains the data for the documented functions. The data is collected from the X Wiki.
Located in the x4-undocumented-functions.hjson file.
This file contains the data for the undocumented functions. The data is collected from the extracted Lua files. The data is not reconciled with the X Wiki data.
Located in the x4-ffi-definitions.hjson file.
This file contains the data for the C functions and types definitions. The data is collected from the extracted Lua files.
Located in the x4-helper-functions.hjson file.
This file contains the data for the Helper functions. The data is collected from the extracted Lua files.
Located in the x4-globally-exposed.hjson file.
This file contains the data for the function globally accessed via AddGlobalAccess. The data is collected from the extracted Lua files.
- To reconcile the data from the X Wiki.
- To eliminate the Undocumented sections at all or by removing the possible duplicates with the documented functions or by moving them to it after documenting them.
If you want to contribute to the project, please take part in editing respective .hjson
files.
This addon is licensed under the MIT license. See LICENSE for the full license text.