Converts a scriptBinding.xml file to a Lua file with LuaDoc annotation suitable fopr suggestions/type ahead in VS Code
python ScriptBindingToLua.py [input_file] [output_file]
- input_file (optional): The path to the scriptBinding.xml file to convert. Defaults to "scriptBinding.xml".
- output_file (optional): The path to the output Lua file. Defaults to "scriptBinding.lua".
Currently, all float types are converted to number to avoid warnings in the Lua language server. This can be disabled by changing SUBSTITUE_FLOAT to False:
SUBSTITUE_FLOAT = Falsepython ScriptBindingToLua.py C:\FS25\debugger\scriptBinding.xml C:\MyProjects\scriptBinding.lua
The output file will be overwritten if it already exists.