Template:Collectors csv: Difference between revisions

From Against the Storm Official Wiki
m (fixing typos)
(It doesn't line up with icon names; it's possible this was a mistake. Undo revision 8538 by 76561197969631737 (talk))
Tag: Undo
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Version|0.63.2}}
{{Version|1.4.15}}


==Overview==
==Overview==


This template stores the CSV data for collectors as provided by the game developers.
This template stores the CSV data for rain catchers, as provided by the game developers, and manual data entry for geyser pumps and mines.


==Examples==
==Examples==
Line 15: Line 15:


</noinclude><pre>
</noinclude><pre>
id,displayName,description,category,sizeX,sizeY,requiredGood1,requiredGood2,requiredGood3,constructionTime,cityScore,movable,initiallyEssential,storage,workplace1,workplace2,workplace3,workplace4,recipe1Good,recipe1Grade,recipe1ProductionTime,recipe2Good,recipe2Grade,recipe2ProductionTime,recipe3Good,recipe3Grade,recipe3ProductionTime,
id,displayName,description,category,sizeX,sizeY,requiredGood1,requiredGood2,requiredGood3,constructionTime,cityScore,movable,initiallyEssential,storage,workplace1,workplace2,workplace3,workplace4,recipe1Good,recipe1Grade,recipe1ProductionTime,recipe2Good,recipe2Grade,recipe2ProductionTime,recipe3Good,recipe3Grade,recipe3ProductionTime
Water Extractor,Geyser Pump,"Used to extract and pump infused rainwater through underground pipes to production buildings, where it can be used to increase productivity. Must be placed on an active geyser. Has a tank capacity of 50.",Industry,2,2,6 [Mat Processed] Planks,4 [Mat Processed] Pipe,,5,2,FALSE,FALSE,50,Any,Any,,,2 [Water] Drizzle Water,Water T3,7,2 [Water] Clearance Water,Water T3,7,2 [Water] Storm Water,Water T3,7,
Water Extractor,Geyser Pump,"Used to extract and pump infused rainwater through underground pipes to production buildings, where it can be used to increase productivity. Must be placed on an active geyser. Has a tank capacity of 50.",Resource Gathering,2,2,6 [Mat Processed] Planks,4 [Mat Processed] Pipe,,5,2,FALSE,FALSE,50,Any,Any,,,2 [Water] Drizzle Water,Water T3,7,2 [Water] Clearance Water,Water T3,7,2 [Water] Storm Water,Water T3,7
Mine,Mine,Can only be placed on coal and ore veins. Digs up copper ore and  coal.,Industry,3,3,2 [Mat Processed] Planks,4 [Mat Processed] Bricks,2 [Mat Processed] Parts,16,5,FALSE,FALSE,10,Any,Any,Any,Any,1 [Crafting] Coal,Coal T2,40,1 [Metal] Copper Ore,Copper Ore T2,40,,,,
Mine,Mine,Can only be placed on coal and ore veins. Digs up copper ore and  coal.,Resource Gathering,3,3,2 [Mat Processed] Planks,4 [Mat Processed] Bricks,2 [Mat Processed] Parts,16,5,FALSE,FALSE,10,Any,Any,Any,Any,1 [Crafting] Coal,Coal T2,40,1 [Metal] Copper Ore,Copper Ore T2,40,,,
Advanced Rain Collector,Advanced Rain Collector,"Can collect rainwater used for crafting and powering Rain Engines in production buildings. The type of collected rainwater depends on the season. Has a tank capacity of 100.",Industry,2,3,5 [Mat Processed] Planks,5 [Mat Processed] Pipe,3 [Mat Processed] Parts,5,0,FALSE,FALSE,100,Any,Any,Any,,4 [Water] Drizzle Water,Water T2,20,4 [Water] Clearance Water,Water T2,20,4 [Water] Storm Water,Water T2,20,
Advanced Rain Collector,Advanced Rain Collector,Can collect rainwater used for crafting and powering Rain Engines in production buildings. The type of collected rainwater depends on the season. Has a tank capacity of 100.,Resource Gathering,2,3,5 [Mat Processed] Pipe,3 [Mat Processed] Parts,5 [Mat Processed] Planks,20,0,FALSE,FALSE,100,Any,Any,Any,,4 [Water] Drizzle Water,Water T2,20,4 [Water] Clearance Water,Water T2,20,4 [Water] Storm Water,Water T2,20
Rain Collector,Rain Collector,"Can collect rainwater used for crafting and powering Rain Engines in production buildings. The type of collected rainwater depends on the season. Has a tank capacity of 50.",Industry,2,2,2 [Mat Processed] Planks,3 [Mat Processed] Parts,,5,0,FALSE,TRUE,50,Any,Any,,,2 [Water] Drizzle Water,Water T2,20,2 [Water] Clearance Water,Water T2,20,2 [Water] Storm Water,Water T2,20,
Rain Collector,Rain Collector,Can collect rainwater used for crafting and powering Rain Engines in production buildings. The type of collected rainwater depends on the season. Has a tank capacity of 50.,Resource Gathering,2,2,2 [Mat Processed] Planks,3 [Mat Processed] Parts,,20,0,FALSE,TRUE,50,Any,Any,,,2 [Water] Drizzle Water,Water T2,20,2 [Water] Clearance Water,Water T2,20,2 [Water] Storm Water,Water T2,20
 
</pre>
</pre>

Latest revision as of 02:43, 9 October 2024


Overview

This template stores the CSV data for rain catchers, as provided by the game developers, and manual data entry for geyser pumps and mines.

Examples

You can use this wiki's data templates to retrieve the game data for use in any Lua module on this wiki. A utility module, CsvUtils processes the document for you, giving you just the CSV data, if you need to parse it yourself. Or, the utility module can split it for you into a Lua table.

To do this, you need these two lines in your Lua code:

  1. local CsvUtils = require("Module:CsvUtils")
  2. local luaTable, headerLookup = CsvUtils.extractTables(Template:Collectors csv)

If you need the raw CSV code for some reason, to process it differently, the method extractTables is a shortcut method that calls two methods you can instead call directly: extractCSV and luaTableFromCSV. However, this is not advised.

Data

What follows on the rest of this wiki page is the only content that gets transcluded, the raw data enclosed in a <pre> block:

id,displayName,description,category,sizeX,sizeY,requiredGood1,requiredGood2,requiredGood3,constructionTime,cityScore,movable,initiallyEssential,storage,workplace1,workplace2,workplace3,workplace4,recipe1Good,recipe1Grade,recipe1ProductionTime,recipe2Good,recipe2Grade,recipe2ProductionTime,recipe3Good,recipe3Grade,recipe3ProductionTime
Water Extractor,Geyser Pump,"Used to extract and pump infused rainwater through underground pipes to production buildings, where it can be used to increase productivity. Must be placed on an active geyser. Has a tank capacity of 50.",Resource Gathering,2,2,6 [Mat Processed] Planks,4 [Mat Processed] Pipe,,5,2,FALSE,FALSE,50,Any,Any,,,2 [Water] Drizzle Water,Water T3,7,2 [Water] Clearance Water,Water T3,7,2 [Water] Storm Water,Water T3,7
Mine,Mine,Can only be placed on coal and ore veins. Digs up copper ore and  coal.,Resource Gathering,3,3,2 [Mat Processed] Planks,4 [Mat Processed] Bricks,2 [Mat Processed] Parts,16,5,FALSE,FALSE,10,Any,Any,Any,Any,1 [Crafting] Coal,Coal T2,40,1 [Metal] Copper Ore,Copper Ore T2,40,,,
Advanced Rain Collector,Advanced Rain Collector,Can collect rainwater used for crafting and powering Rain Engines in production buildings. The type of collected rainwater depends on the season. Has a tank capacity of 100.,Resource Gathering,2,3,5 [Mat Processed] Pipe,3 [Mat Processed] Parts,5 [Mat Processed] Planks,20,0,FALSE,FALSE,100,Any,Any,Any,,4 [Water] Drizzle Water,Water T2,20,4 [Water] Clearance Water,Water T2,20,4 [Water] Storm Water,Water T2,20
Rain Collector,Rain Collector,Can collect rainwater used for crafting and powering Rain Engines in production buildings. The type of collected rainwater depends on the season. Has a tank capacity of 50.,Resource Gathering,2,2,2 [Mat Processed] Planks,3 [Mat Processed] Parts,,20,0,FALSE,TRUE,50,Any,Any,,,2 [Water] Drizzle Water,Water T2,20,2 [Water] Clearance Water,Water T2,20,2 [Water] Storm Water,Water T2,20