berticus0001
Refugee
Hey all, it's been a while since i posted anything, RL and all that, but thought I'd share this little proof of concept to turn the water cooler into a water filtration system.
To filter one can or jar of murky water takes five minutes by default (it is a drip filter after all) or add the helmet filter mod (if you have one) to the tool section to decrease the time to 30 seconds.
Why bother when you can just boil it much faster? I hear you ask... this doesn't require fuel and nor does it raise your heat map.
Just remember, as the game stands, when you add the helmet filter mod you have to exit then re-enter the filter for the "quick" recipes to become active.
Like I said, it's PoC so quick and dirty, didn't bother with the localization but if you want to add that help yourselves.
Rejig, rework, repost, it's up to you.
bert
Edit: Added Modlet
Modlet¬
View attachment 26625
CODE¬
Water Filter.zip
To filter one can or jar of murky water takes five minutes by default (it is a drip filter after all) or add the helmet filter mod (if you have one) to the tool section to decrease the time to 30 seconds.
Why bother when you can just boil it much faster? I hear you ask... this doesn't require fuel and nor does it raise your heat map.
Just remember, as the game stands, when you add the helmet filter mod you have to exit then re-enter the filter for the "quick" recipes to become active.
Like I said, it's PoC so quick and dirty, didn't bother with the localization but if you want to add that help yourselves.
Rejig, rework, repost, it's up to you.
bert
Edit: Added Modlet
Modlet¬
View attachment 26625
CODE¬
recipes.xml¬
<recipe name="drinkJarBoiledWater" count="1" craft_area="waterfilter" craft_time="300">
<ingredient name="drinkJarRiverWater" count="1"/>
</recipe>
<recipe name="drinkJarBoiledWater" count="1" craft_area="waterfilter" craft_time="300">
<ingredient name="resourceSnowBall" count="1"/>
<ingredient name="drinkJarEmpty" count="1"/>
</recipe>
<recipe name="drinkCanBoiledWater" count="1" craft_area="waterfilter" craft_time="300">
<ingredient name="drinkCanRiverWater" count="1"/>
</recipe>
<recipe name="drinkCanBoiledWater" count="1" craft_area="waterfilter" craft_time="300">
<ingredient name="resourceSnowBall" count="1"/>
<ingredient name="drinkCanEmpty" count="1"/>
</recipe>
<recipe name="drinkJarBoiledWater" count="1" craft_area="waterfilter" craft_time="30" craft_tool="modArmorWaterPurifier">
<ingredient name="resourceSnowBall" count="1"/>
<ingredient name="drinkJarEmpty" count="1"/>
</recipe>
<recipe name="drinkJarBoiledWater" count="1" craft_area="waterfilter" craft_time="30" craft_tool="modArmorWaterPurifier">
<ingredient name="drinkJarRiverWater" count="1"/>
</recipe>
<recipe name="drinkCanBoiledWater" count="1" craft_area="waterfilter" craft_time="30" craft_tool="modArmorWaterPurifier">
<ingredient name="drinkCanRiverWater" count="1"/>
</recipe>
<recipe name="drinkCanBoiledWater" count="1" craft_area="waterfilter" craft_time="30" craft_tool="modArmorWaterPurifier">
<ingredient name="resourceSnowBall" count="1"/>
<ingredient name="drinkCanEmpty" count="1"/>
</recipe>
<recipe name="waterfilter" count="1" craft_area="workbench">
<ingredient name="cntWaterCoolerFull" count="1"/>
<ingredient name="resourceDuctTape" count="5"/>
<ingredient name="resourceCloth" count="20"/>
<ingredient name="resourceCoal" count="10"/>
<ingredient name="resourceMetalPipe" count="5"/>
</recipe>
===========
blocks.xml¬
<block name="waterfilter">
<property name="Class" value="Workstation"/>
<property name="Material" value="Mmetal"/>
<property name="MaxDamage" value="250"/>
<property name="StabilitySupport" value="false"/>
<property name="Shape" value="ModelEntity"/>
<property name="Model" value="Entities/LootContainers/water_cooler_fullPrefab"/>
<property name="CustomIcon" value="cntWaterCoolerFull"/>
<property name="DisplayType" value="blockMulti" />
<property name="MultiBlockDim" value="1,2,1"/>
<property name="ImposterDontBlock" value="true"/>
<property name="Place" value="TowardsPlacerInverted"/>
<property name="OnlySimpleRotations" value="true"/>
<property name="IsTerrainDecoration" value="true"/>
<property name="Stacknumber" value="1"/>
<property class="Workstation">
<property name="Modules" value="tools,output"/>
<property name="CraftingAreaRecipes" value="waterfilter"/>
</property>
<property name="WorkstationIcon" value="ui_game_symbol_workbench" />
<property name="OpenSound" value="bucketfill_water" />
<property name="CloseSound" value="bucketfill_water" />
<property name="WorkstationJournalTip" value="workbenchTip" />
<property class="RepairItems">
<property name="resourceDuctTape" value="3"/>
<property name="resourceCloth" value="15"/>
<property name="resourceCoal" value="7"/>
<property name="resourceMetalPipe" value="3"/>
</property>
<drop event="Harvest" name="resourceDuctTape" count="3" tag="Disassemble"/>
<drop event="Harvest" name="resourceCloth" count="15" tag="Disassemble"/>
<drop event="Harvest" name="resourceCoal" count="7" tool_category="Disassemble"/>
<drop event="Harvest" name="resourceMetalPipe" count="3" tag="Disassemble"/>
<drop event="Destroy" count="0"/>
<drop event="Fall" name="terrDestroyedWoodDebris" count="0" prob="0.0" stick_chance="0"/>
<property name="TakeDelay" value="15"/>
<property name="DescriptionKey" value="workbenchDesc"/>
<property name="EconomicValue" value="776"/>
<property name="Group" value="Building,Science"/>
<property name="FilterTags" value="fdecor,fother,ffurniture"/>
<property name="SortOrder1" value="70i0"/>
</block>
===========
xui.xml¬
<window_group name="workstation_waterfilter" controller="XUiC_WorkstationWindowGroup">
<window name="windowCraftingList"/>
<window name="craftingInfoPanel"/>
<window name="windowCraftingQueue"/>
<window name="windowToolsFilter" />
<window name="windowOutput" />
<window name="windowNonPagingHeader" />
</window_group>
===========
windows.xml¬
<!--#$-IGS BEGIN: Adding cursor area. -$#-->
<window name="windowToolsFilter" width="228" height="121" panel="Right" cursor_area="true" >
<!--#$-IGS END.-$#-->
<panel style="header.panel">
<sprite style="header.icon" sprite="ui_game_symbol_wrench"/>
<label style="header.name" text="TOOLS" text_key="xuiTools" />
</panel>
<rect name="content" depth="0" pos="0,-46" height="75" disablefallthrough="true" on_press="true">
<grid name="inventory" rows="1" cols="3" pos="3,-3" cell_width="75" cell_height="75" controller="WorkstationToolGrid" repeat_content="true" allow_sort_order="false"
required_tools="modArmorWaterPurifier" required_tools_only="true">
<required_item_stack name="0"/>
</grid>
</rect>
</window>
<recipe name="drinkJarBoiledWater" count="1" craft_area="waterfilter" craft_time="300">
<ingredient name="drinkJarRiverWater" count="1"/>
</recipe>
<recipe name="drinkJarBoiledWater" count="1" craft_area="waterfilter" craft_time="300">
<ingredient name="resourceSnowBall" count="1"/>
<ingredient name="drinkJarEmpty" count="1"/>
</recipe>
<recipe name="drinkCanBoiledWater" count="1" craft_area="waterfilter" craft_time="300">
<ingredient name="drinkCanRiverWater" count="1"/>
</recipe>
<recipe name="drinkCanBoiledWater" count="1" craft_area="waterfilter" craft_time="300">
<ingredient name="resourceSnowBall" count="1"/>
<ingredient name="drinkCanEmpty" count="1"/>
</recipe>
<recipe name="drinkJarBoiledWater" count="1" craft_area="waterfilter" craft_time="30" craft_tool="modArmorWaterPurifier">
<ingredient name="resourceSnowBall" count="1"/>
<ingredient name="drinkJarEmpty" count="1"/>
</recipe>
<recipe name="drinkJarBoiledWater" count="1" craft_area="waterfilter" craft_time="30" craft_tool="modArmorWaterPurifier">
<ingredient name="drinkJarRiverWater" count="1"/>
</recipe>
<recipe name="drinkCanBoiledWater" count="1" craft_area="waterfilter" craft_time="30" craft_tool="modArmorWaterPurifier">
<ingredient name="drinkCanRiverWater" count="1"/>
</recipe>
<recipe name="drinkCanBoiledWater" count="1" craft_area="waterfilter" craft_time="30" craft_tool="modArmorWaterPurifier">
<ingredient name="resourceSnowBall" count="1"/>
<ingredient name="drinkCanEmpty" count="1"/>
</recipe>
<recipe name="waterfilter" count="1" craft_area="workbench">
<ingredient name="cntWaterCoolerFull" count="1"/>
<ingredient name="resourceDuctTape" count="5"/>
<ingredient name="resourceCloth" count="20"/>
<ingredient name="resourceCoal" count="10"/>
<ingredient name="resourceMetalPipe" count="5"/>
</recipe>
===========
blocks.xml¬
<block name="waterfilter">
<property name="Class" value="Workstation"/>
<property name="Material" value="Mmetal"/>
<property name="MaxDamage" value="250"/>
<property name="StabilitySupport" value="false"/>
<property name="Shape" value="ModelEntity"/>
<property name="Model" value="Entities/LootContainers/water_cooler_fullPrefab"/>
<property name="CustomIcon" value="cntWaterCoolerFull"/>
<property name="DisplayType" value="blockMulti" />
<property name="MultiBlockDim" value="1,2,1"/>
<property name="ImposterDontBlock" value="true"/>
<property name="Place" value="TowardsPlacerInverted"/>
<property name="OnlySimpleRotations" value="true"/>
<property name="IsTerrainDecoration" value="true"/>
<property name="Stacknumber" value="1"/>
<property class="Workstation">
<property name="Modules" value="tools,output"/>
<property name="CraftingAreaRecipes" value="waterfilter"/>
</property>
<property name="WorkstationIcon" value="ui_game_symbol_workbench" />
<property name="OpenSound" value="bucketfill_water" />
<property name="CloseSound" value="bucketfill_water" />
<property name="WorkstationJournalTip" value="workbenchTip" />
<property class="RepairItems">
<property name="resourceDuctTape" value="3"/>
<property name="resourceCloth" value="15"/>
<property name="resourceCoal" value="7"/>
<property name="resourceMetalPipe" value="3"/>
</property>
<drop event="Harvest" name="resourceDuctTape" count="3" tag="Disassemble"/>
<drop event="Harvest" name="resourceCloth" count="15" tag="Disassemble"/>
<drop event="Harvest" name="resourceCoal" count="7" tool_category="Disassemble"/>
<drop event="Harvest" name="resourceMetalPipe" count="3" tag="Disassemble"/>
<drop event="Destroy" count="0"/>
<drop event="Fall" name="terrDestroyedWoodDebris" count="0" prob="0.0" stick_chance="0"/>
<property name="TakeDelay" value="15"/>
<property name="DescriptionKey" value="workbenchDesc"/>
<property name="EconomicValue" value="776"/>
<property name="Group" value="Building,Science"/>
<property name="FilterTags" value="fdecor,fother,ffurniture"/>
<property name="SortOrder1" value="70i0"/>
</block>
===========
xui.xml¬
<window_group name="workstation_waterfilter" controller="XUiC_WorkstationWindowGroup">
<window name="windowCraftingList"/>
<window name="craftingInfoPanel"/>
<window name="windowCraftingQueue"/>
<window name="windowToolsFilter" />
<window name="windowOutput" />
<window name="windowNonPagingHeader" />
</window_group>
===========
windows.xml¬
<!--#$-IGS BEGIN: Adding cursor area. -$#-->
<window name="windowToolsFilter" width="228" height="121" panel="Right" cursor_area="true" >
<!--#$-IGS END.-$#-->
<panel style="header.panel">
<sprite style="header.icon" sprite="ui_game_symbol_wrench"/>
<label style="header.name" text="TOOLS" text_key="xuiTools" />
</panel>
<rect name="content" depth="0" pos="0,-46" height="75" disablefallthrough="true" on_press="true">
<grid name="inventory" rows="1" cols="3" pos="3,-3" cell_width="75" cell_height="75" controller="WorkstationToolGrid" repeat_content="true" allow_sort_order="false"
required_tools="modArmorWaterPurifier" required_tools_only="true">
<required_item_stack name="0"/>
</grid>
</rect>
</window>
Attachments
Last edited by a moderator: