Module:Item recipe/doc: Difference between revisions
From Space Station 14 Wiki
→JSON files: wording |
update datalinks |
||
Line 1: | Line 1: | ||
{{module docs|bb= | {{module docs|bb= | ||
{{uses json data<!-- | {{uses json data<!-- | ||
-->|Module:Item recipe/ | -->|Module:Item recipe/data/auto/recipe map of recipe id to recipe.json<!-- | ||
-->|Module:Item recipe/recipe | -->|Module:Item recipe/data/auto/recipe map of product id to recipe id.json<!-- | ||
-->|Module:Item recipe/order of materials.json<!-- | -->|Module:Item recipe/order of materials.json<!-- | ||
-->|Module:Item recipe/product overrides.json<!-- | -->|Module:Item recipe/product overrides.json<!-- | ||
Line 13: | Line 12: | ||
== JSON files == | == JSON files == | ||
'''JSON files that are updated automatically, syncing with the upstream:''' | '''JSON files that are updated automatically, syncing with the upstream:''' | ||
* [[Module:Item recipe/ | * [[Module:Item recipe/data/auto/recipe map of recipe id to recipe.json]] - contains 1 to 1 mapping of recipe IDs to recipes. | ||
* [[Module:Item recipe/recipe | * [[Module:Item recipe/data/auto/recipe map of product id to recipe id.json]] - contains mapping of recipe products to recipe IDs that produce these...products. Can be 1 to 1, or 1 to many. | ||
{{Callout|Warning|Do not make changes to the above JSON files - any changes made will be erased on next update.}} | {{Callout|Warning|Do not make changes to the above JSON files - any changes made will be erased on next update.}} |
Latest revision as of 06:42, 9 July 2025
Module documentation
|
---|
View or edit this documentation • (about module documentation) |
Implements {{item recipe}}.
JSON files
JSON files that are updated automatically, syncing with the upstream:
- Module:Item recipe/data/auto/recipe map of recipe id to recipe.json - contains 1 to 1 mapping of recipe IDs to recipes.
- Module:Item recipe/data/auto/recipe map of product id to recipe id.json - contains mapping of recipe products to recipe IDs that produce these...products. Can be 1 to 1, or 1 to many.
Warning
Do not make changes to the above JSON files - any changes made will be erased on next update.
JSON files that are filled manually:
- Module:Item recipe/order of materials.json - a 1 to 1 mapping of recipe materials to order at which they appear in recipes. Less number = higher order. Materials that do not have an order defined here, will appear after those that do.
- Module:Item recipe/product overrides.json - a 1 to 1 mapping of recipe products to item IDs. Not all products are the same as item IDs they "represent", so sometimes a connection needs to be established explicitly.