[0.15.5] MINOR: Missing API documentation for recipes

Bugs that are actually features.
User avatar
DRY411S
Filter Inserter
Filter Inserter
Posts: 736
Joined: Sun Mar 13, 2016 9:48 am
Contact:

[0.15.5] MINOR: Missing API documentation for recipes

Post by DRY411S »

At http://lua-api.factorio.com/latest/LuaR ... otype.html the new constructs for normal and expensive ingredients are not documented.
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post 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).
User avatar
DRY411S
Filter Inserter
Filter Inserter
Posts: 736
Joined: Sun Mar 13, 2016 9:48 am
Contact:

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

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15984
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post 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.
User avatar
DRY411S
Filter Inserter
Filter Inserter
Posts: 736
Joined: Sun Mar 13, 2016 9:48 am
Contact:

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

Post 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?
Post Reply

Return to “Not a bug”