Jump to content

(A21) Hydroponic Farming - V2 - Now has a patch for SMX


WimpingEgo

Recommended Posts

wtQw9nn.jpeg

 

(A21) Hydroponic Farming -

 

A modlet that adds Hydroponic Farming to the game. Using the in game models that can be found in POIs across the work,

You can craft seeds cheaper using the Hydroponic Seed Station as well as using the Hydroponic Growing Station to grow your seeds into crops.

Craft times are based on in game crop growth times with the Living Off The Land perk helping with the crafting times and costs.

 

What this modlet does:

 

Adds a new level to Living off the land

Plus two new workstations

 

Hydroponic Growing Station :

 

- Needs Nitrates Power in the tool windows to work

- 5 seeds can then be grown (crafted) in to 20 crops

- Growing (crafting) time is base on a crops in game taking 126 mins to fully grow.

- Living off the land level 3 (25%) and 4 (50%) time decrease for growing crops in the Growing Station.

- Adding steroids to the tool window will give a 15% crafting time buff.

- Adding an engine to the tool window will give  50% crafting time buff.

 

So having the Living off the land perk maxed plus the steroids and engine means you can "grow" craft 20 crops in 31.30 minutes

 

Hydroponic Seed Station :

- Needs a bucket of water in the Water Tank to work 

- For the cost of 4 crops you can craft a seed of that type.

- Living off the land level 3 and 4 lets you use less crops to make your seeds

- Adding a water filter to the tool window will decease the crop cost to make the seeds by 1 .

- Adding an engine to the tool window will give  50% crafting time buff.

 

So having the Living off the land perk maxed plus the a water filter and engine means you can "grow" craft seeds 1:1 1:15 minutes

 

Install:

To install this modlet, unzip the folder and place it inside "/7 Days to Die/Mods". If "Mods" folder doesn't exist, just create one.

The folder structure should look at like this "7 Days to Die/Mods/Hydroponic_Farming_(Version_Number)".

 

Has only been tested on solo worlds but servers should be all good.

 

How to Tweak:

You can change the conversion rate or time to whatever you want. Just edit the number in recipes.xml.

 

SMX Patch:

The SMX patch will only work with version 2+ of this modlet as the block names have been changed from version 1.

 

Things to note:

 

When shift clicking items in to the tool windows their buffs will not be counted, You need to place them in to the window for them to work right.

 

Strongly recommend starting a new game after installing this modlet. If you wish to try using it on a world that has had version 1 installed you will need to remove the version 1 stations from your world and then close the game update the modlet and load back in, but a new world is Strongly recommend.

 

Changelog:

 

For 2.1

Changed the stations names in the xml file.

Changed the stations window ui names to use the new naming layout.

Changed the stations base recipes to need a cooking pot and not a beaker.

Added steroids and an engine as tools to the Hydroponic Growing Station

Added water filter and an engine as tools to the Hydroponic Seed Station

Fixed living of the land 4 not giving you the buff of level 3 for 3x crop drops in world

Added an SMX Patch for version 2+ of the modlet

 

Download HERE

Edited by WimpingEgo (see edit history)
Link to comment
Share on other sites

  • WimpingEgo changed the title to (A21) Hydroponic Farming - V2 - Now has a patch for SMX
  • 2 weeks later...
On 8/5/2023 at 2:01 AM, FramFramson said:

Tiny thing: I think you mean Living off the Land level 2 & 3, not 3 & 4 as you have it in several sections of your description?

The mod adds a new level to Living off the land so 3 the max default level has added perk stuff added to it and the new level 4 build on it.

Link to comment
Share on other sites

Seems like other crafting speed bonuses are being calculated off the base craft time and not the shortened after adding tools in the stations.

 

For example with the Perk Mastery mod. It has a crafting perk that increases crafting speed by 5-60% and this causes it to go into negative crafting time (instant craft). 

 

The same happens with nerdy glasses 10%, when you have the craft time at 1:15 in the seed station (with the engine) instead of going down to 1:08 it goes to 1:00.

 

Link to comment
Share on other sites

On 8/18/2023 at 11:54 AM, Drevi said:

Seems like other crafting speed bonuses are being calculated off the base craft time and not the shortened after adding tools in the stations.

 

For example with the Perk Mastery mod. It has a crafting perk that increases crafting speed by 5-60% and this causes it to go into negative crafting time (instant craft). 

 

The same happens with nerdy glasses 10%, when you have the craft time at 1:15 in the seed station (with the engine) instead of going down to 1:08 it goes to 1:00.

 

I will have to take a look, I'm just not very will just now but I will take a look when I can.

Edited by WimpingEgo (see edit history)
Link to comment
Share on other sites

Hello good, I love your creation.

But I have a little problem;
I have a custom mod,
and this adds a buff to the character:

<passive_effect name="CraftingTime" operation="perc_add" value="-0.40"/>

this buff works well for other tables.

But for these tables, it makes the craft last 0 seconds

Instant crafting.

Can you try this yourself? If you want I'll share my mod.

Link to comment
Share on other sites

  • 2 months later...
  • 7 months later...
  • 2 weeks later...

This is working for me in 1.0 (Very limited testing) 

Replace the top section in "blocks.xml"

 

From this:

<!-- HYDROPONICE SEED STATION UI LIST -->

	<append xpath="/blocks/block[@name='plantedAloe1']/property[@name='Group']/@value">,HSS_All,HSS_Med</append>
	<append xpath="/blocks/block[@name='plantedBlueberry1']/property[@name='Group']/@value">,HSS_All,HSS_Food,HSS_Drink,HSS_Med</append>	
	<append xpath="/blocks/block[@name='plantedChrysanthemum1']/property[@name='Group']/@value">,HSS_All,HSS_Drink,HSS_Med,HSS_Res</append>
	<append xpath="/blocks/block[@name='plantedCoffee1']/property[@name='Group']/@value">,HSS_All,HSS_Drink</append>
	<append xpath="/blocks/block[@name='plantedCorn1']/property[@name='Group']/@value">,HSS_All,HSS_Food</append>
	<append xpath="/blocks/block[@name='plantedCotton1']/property[@name='Group']/@value">,HSS_All,HSS_Res</append>
	<append xpath="/blocks/block[@name='plantedGoldenrod1']/property[@name='Group']/@value">,HSS_All,HSS_Drink</append>	
	<append xpath="/blocks/block[@name='plantedGraceCorn1']/property[@name='Group']/@value">,HSS_All,HSS_Drink,HSS_Res</append>	
	<append xpath="/blocks/block[@name='plantedHop1']/property[@name='Group']/@value">,HSS_All,HSS_Food,HSS_Drink</append>
	<append xpath="/blocks/block[@name='plantedMushroom1']/property[@name='Group']/@value">,HSS_All,HSS_Food</append>
	<append xpath="/blocks/block[@name='plantedPotato1']/property[@name='Group']/@value">,HSS_All,HSS_Food</append>
	<append xpath="/blocks/block[@name='plantedYucca1']/property[@name='Group']/@value">,HSS_All,HSS_Drink</append>
	<append xpath="/blocks/block[@name='plantedPumpkin1']/property[@name='Group']/@value">,HSS_All,HSS_Food</append>

<!-- HYDROPONICE SEED STATION UI LIST -->

 

To this:

<!-- HYDROPONICE SEED STATION UI LIST -->

	<append xpath="/blocks/block[@name='plantedAloe1']/property[@name='Group']/@value">,HSS_All,HSS_Med</append>
	<append xpath="/blocks/block[@name='plantedCotton1']/property[@name='Group']/@value">,HSS_All,HSS_Res</append>
	
	<append xpath="/blocks/block[@name='plantedBlueberry1']">
		<property name="Group" value="HSS_All,HSS_Food,HSS_Drink,HSS_Med"/>
	</append>	
	<append xpath="/blocks/block[@name='plantedChrysanthemum1']">
			<property name="Group" value="HSS_All,HSS_Food,HSS_Drink,HSS_Med"/>
	</append>	
	<append xpath="/blocks/block[@name='plantedCoffee1']">
			<property name="Group" value="HSS_All,HSS_Food,HSS_Drink,HSS_Med"/>
	</append>	
	<append xpath="/blocks/block[@name='plantedCorn1']">
			<property name="Group" value="HSS_All,HSS_Food,HSS_Drink,HSS_Med"/>
	</append>	
	<append xpath="/blocks/block[@name='plantedGoldenrod1']">
			<property name="Group" value="HSS_All,HSS_Food,HSS_Drink,HSS_Med"/>
	</append>	
	<append xpath="/blocks/block[@name='plantedGraceCorn1']">
			<property name="Group" value="HSS_All,HSS_Food,HSS_Drink,HSS_Med"/>
	</append>	
	<append xpath="/blocks/block[@name='plantedHop1']">
			<property name="Group" value="HSS_All,HSS_Food,HSS_Drink,HSS_Med"/>
	</append>	
	<append xpath="/blocks/block[@name='plantedMushroom1']">
			<property name="Group" value="HSS_All,HSS_Food,HSS_Drink,HSS_Med"/>
	</append>	
	<append xpath="/blocks/block[@name='plantedPotato1']">
			<property name="Group" value="HSS_All,HSS_Food,HSS_Drink,HSS_Med"/>
	</append>	
	<append xpath="/blocks/block[@name='plantedYucca1']">
			<property name="Group" value="HSS_All,HSS_Food,HSS_Drink,HSS_Med"/>
	</append>	
	<append xpath="/blocks/block[@name='plantedPumpkin1']">
			<property name="Group" value="HSS_All,HSS_Food,HSS_Drink,HSS_Med"/>
	</append>	

<!-- HYDROPONICE SEED STATION UI LIST -->

 

Link to comment
Share on other sites

Also working in 1.0

Need to Change the following inside the windows.xml

Change Seed Station From This
 

Quote

<!-- *** HYDROPONICE SEED STATION -->
<!-- *** TOOLS WINDOW -->
    <window name="windowTools_HSS" width="228" height="121" panel="Right" cursor_area="true" >
        <panel style="header.panel">
            <sprite style="header.icon" sprite="ui_game_symbol_cookware"/>
            <label style="header.name" text="TOOLS" text_key="XUI_windowTools_HVF" />
        </panel>

        <rect name="content" depth="0" pos="0,-46" height="75" disablefallthrough="true">

            <grid name="inventory" rows="1" cols="3" pos="3,-3" cell_width="75" cell_height="75" controller="WorkstationToolGrid" repeat_content="true" required_tools="bucketRiverWater,resourceWaterFilter,smallEngine" required_tools_only="true">
                <item_stack controller="RequiredItemStack" name="0"/>
            </grid>
        </rect>
    </window>        

    </append>


to this
 

Quote

<!-- *** HYDROPONICE SEED STATION -->
<!-- *** TOOLS WINDOW -->
    <window name="windowTools_HSS" width="228" height="121" panel="Right" cursor_area="true" >
        <panel style="header.panel">
            <sprite style="header.icon" sprite="ui_game_symbol_cookware"/>
            <label style="header.name" text="TOOLS" text_key="XUI_windowTools_HVF" />
        </panel>

        <rect name="content" depth="0" pos="0,-46" height="75" disablefallthrough="true">

            <grid name="inventory" rows="1" cols="3" pos="3,-3" cell_width="75" cell_height="75" controller="WorkstationToolGrid" repeat_content="true" required_tools="bucketRiverWater,toolDewFilter,smallEngine" required_tools_only="true">
                <item_stack controller="RequiredItemStack" name="0"/>
            </grid>
        </rect>
    </window>        

    </append>



This will fix the Water Filter from not being able to be placed inside the Seed Station

Also change items.xml

From this
 

Quote

    <append xpath="/items/item[@name='resourceWaterFilter']">
        <effect_group tiered="false">
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropAloeLeaf"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropBlueberries"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropChrysanthemumPlant"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropCoffeeBeans"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropCorn"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropCottonPlant"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropGoldenrodPlant"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropGraceCorn"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropHopsFlower"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropMushrooms"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropPotato"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropYuccaFruit"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropPumpkin"/>                                                
        </effect_group>
    </append>



To This

 

Quote

    <append xpath="/items/item[@name='toolDewFilter']">
        <effect_group tiered="false">
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropAloeLeaf"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropBlueberries"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropChrysanthemumPlant"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropCoffeeBeans"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropCorn"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropCottonPlant"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropGoldenrodPlant"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropGraceCorn"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="resourceCropHopsFlower"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropMushrooms"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropPotato"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropYuccaFruit"/>
            <passive_effect name="CraftingIngredientCount" operation="base_subtract" value="1" tags="foodCropPumpkin"/>                                                
        </effect_group>
    </append>

 

Edited by Lucky_7s (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...