Page 1 of 1

[0.15.5] MINOR: Missing API documentation for recipes

Posted: Mon May 01, 2017 8:56 am
by DRY411S
At http://lua-api.factorio.com/latest/LuaR ... otype.html the new constructs for normal and expensive ingredients are not documented.

Re: [0.15.5] MINOR: Missing API documentation for recipes

Posted: Tue May 09, 2017 2:56 pm
by posila
Hi, there are no new repice prototpye properties exposed to Lua API regarding to difficulty settings (the API should always give you values based on current map difficulty settings).

Re: [0.15.5] MINOR: Missing API documentation for recipes

Posted: Tue May 09, 2017 3:50 pm
by DRY411S
posila wrote:Hi, there are no new repice prototpye properties exposed to Lua API regarding to difficulty settings (the API should always give you values based on current map difficulty settings).
Perhaps I should not have used API in my topic title. What is missing in the documentation is a description of the recipe data structure. Mods that want to provide normal and expensive recipes have no documentation to use.

Re: [0.15.5] MINOR: Missing API documentation for recipes

Posted: Tue May 09, 2017 7:05 pm
by Rseding91
DRY411S wrote:
posila wrote:Hi, there are no new repice prototpye properties exposed to Lua API regarding to difficulty settings (the API should always give you values based on current map difficulty settings).
Perhaps I should not have used API in my topic title. What is missing in the documentation is a description of the recipe data structure. Mods that want to provide normal and expensive recipes have no documentation to use.
There's zero prototype documentation so it's expected that there's no documentation on the normal/expensive format.

Re: [0.15.5] MINOR: Missing API documentation for recipes

Posted: Tue May 09, 2017 9:09 pm
by posila
As Rseding said, we don't have documentation for prototypes unfortunately. It is something in our backlog and hopefully we will be able to create it before 1.0, but for now, you have to just "guess" how to use it based on usage in base mod.

Re: [0.15.5] MINOR: Missing API documentation for recipes

Posted: Wed May 10, 2017 7:32 am
by DRY411S
posila wrote:As Rseding said, we don't have documentation for prototypes unfortunately. It is something in our backlog and hopefully we will be able to create it before 1.0, but for now, you have to just "guess" how to use it based on usage in base mod.
Thanks for the clarification folks. Perhaps a section in the wiki would be a way to go forward?