Compare commits

...

2 Commits

Author SHA1 Message Date
a9be76866f Describe Pump in guide 2025-11-29 19:00:10 +01:00
9b0792f1ff Describe power storage in guide 2025-11-29 18:40:01 +01:00
4 changed files with 145 additions and 2 deletions

147
guide.lua
View File

@ -60,8 +60,9 @@ end
-- \brief Creates table with machine information while providing few shortcuts for common fields -- \brief Creates table with machine information while providing few shortcuts for common fields
-- \param fields table -- \param fields table
-- \param machineName string -- \param machineName string
-- \param num (optional) number
-- \returns string -- \returns string
local function createMachineInformationTable(fields,machineName) local function createMachineInformationTable(fields,machineName,num)
local fieldLabels={ local fieldLabels={
inputVoltage="Input voltage level", inputVoltage="Input voltage level",
outputVoltage="Output voltage level", outputVoltage="Output voltage level",
@ -81,7 +82,7 @@ local function createMachineInformationTable(fields,machineName)
}) })
end end
return createTable(rows,false,string.format("Figure 1. Machine information for %s",machineName)) return createTable(rows,false,string.format("Figure %d. Machine information for %s",(num or 1),machineName))
end end
local pages={ local pages={
@ -660,6 +661,148 @@ local pages={
<left>||Picture 2. Nuclear Reactor with some <item name="industrialtest:nuclear_reactor_chamber" height="{{ITEM_HEIGHT}}"> <b>Nuclear Reactor Chamber</b>.||</left> <left>||Picture 2. Nuclear Reactor with some <item name="industrialtest:nuclear_reactor_chamber" height="{{ITEM_HEIGHT}}"> <b>Nuclear Reactor Chamber</b>.||</left>
]] ]]
} }
},
{
name="powerStorage",
title=S("Power storage"),
icon="industrialtest:batbox",
content={
[[
<big>||Power storage||</big>
<left>
||This mod introduces a few nodes which allow for storing energy in them. It is useful in case some energy deficit happens or to charge electric items in them. Each of those have power input on each side except one marked with connector which is the output. Those are following:||
</left>
<mono>
</mono>
<left>
<item name="industrialtest:batbox" height="{{ITEM_HEIGHT}}"> <b>||BatBox||</b>
</left>
]],
createMachineInformationTable({
{
name="inputVoltage",
value="LV"
},
{
name="outputVoltage",
value="LV"
},
{
name="powerCapacity",
value=string.format("%d EU",industrialtest.BatBox.capacity)
}
},S("BatBox")),
[[
<mono></mono>
<left>
<item name="industrialtest:cesu" height="{{ITEM_HEIGHT}}"> <b>||CESU||</b>
</left>
]],
createMachineInformationTable({
{
name="inputVoltage",
value="MV"
},
{
name="outputVoltage",
value="MV"
},
{
name="powerCapacity",
value=string.format("%d EU",industrialtest.CESU.capacity)
}
},S("CESU"),2),
[[
<mono></mono>
<left>
<item name="industrialtest:mfe" height="{{ITEM_HEIGHT}}"> <b>||MFE||</b>
</left>
]],
createMachineInformationTable({
{
name="inputVoltage",
value="HV"
},
{
name="outputVoltage",
value="HV"
},
{
name="powerCapacity",
value=string.format("%d EU",industrialtest.MFE.capacity)
}
},S("MFE"),3),
[[
<mono></mono>
<left>
<item name="industrialtest:mfsu" height="{{ITEM_HEIGHT}}"> <b>||MFSU||</b>
</left>
]],
createMachineInformationTable({
{
name="inputVoltage",
value="EV"
},
{
name="outputVoltage",
value="EV"
},
{
name="powerCapacity",
value=string.format("%d EU",industrialtest.MFSU.capacity)
}
},S("MFSU"),4),
[[
<mono></mono>
<img name="industrialtest_guide_batbox.png" width="{{IMAGE_WIDTH}}">
<left>||Picture 1. BatBox with some energy.||</left>
]]
}
},
{
name="pump",
title=S("Pump"),
icon="industrialtest:pump",
content={
[[
<big>||Pump||</big>
<left>
||Pump is used to pump fluids under it into internal fluid storage. It is later possible to move that fluid into some item, for example <item name="industrialtest:empty_cell" height="{{ITEM_HEIGHT}}"> <b>Empty Cell</b>. Pump when used together with <item name="industrialtest:miner" height="{{ITEM_HEIGHT}}"> <b>Miner</b> can pump fluids found.||
</left>
]],
createMachineInformationTable({
{
name="inputVoltage",
value="LV"
},
{
name="powerCapacity",
value=string.format("%d EU",industrialtest.Pump.capacity)
},
{
name="opPower",
value=string.format("%d EU",industrialtest.Pump._opPower)
},
{
name="Fluid capacity",
value=string.format("%d mB",industrialtest.Pump._fluidCapacity)
},
{
name="Pump time",
value=string.format("%d seconds",industrialtest.Pump._pumpTime)
}
},S("Pump")),
[[
<img name="industrialtest_guide_pump_formspec.png" width="{{IMAGE_WIDTH}}">
<left>||Picture 1. Pump with some fluid.||</left>
<mono>
</mono>
<img name="industrialtest_guide_pump.png">
<left>||Picture 1. Pump attached to <item name="industrialtest:miner" height="{{ITEM_HEIGHT}}"> <b>Miner</b>.||</left>
]]
}
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB