A small script that goes through the Factorio API documentation html and exports a json intented to be used by autocomplete extensions such as https://github.com/simonvizzini/vscode-factorio-lua-api-autocomplete
Hi I've been working further to ingest context.json and produce my own flavor of outputs. In that process I have noticed a couple of inconsistencies/issues/potential improvements to the data.
I'm able to work around/special case these, but I'm reporting them to you for your information.
Thank you.
There are a lot of such problems. Currently I have a list of around 150 elements that are not parsed correctly and generate less than satisfactory output.
I intend to address them all.
Hi I've been working further to ingest context.json and produce my own flavor of outputs. In that process I have noticed a couple of inconsistencies/issues/potential improvements to the data.
I'm able to work around/special case these, but I'm reporting them to you for your information.
LuaItemStack https://lua-api.factorio.com/latest/LuaItemStack.html has a couple of return types that might require some more parsing or special handling. Specifically it produces types with spaces in them.
CustomDictionary and CustomArray are encoded like
and
while they might be more consistenly represented like
to match