This is a guide on how to add a cooler and composter, items stored in a cooler will decay at 10% the normal speed.
Items stored inside a composer will decay at 500% the normal speed.
If you have change the folder structure of SGK (Moved or renamed any default SGK folders) this guide will not work as you will be pasting files into the project that require that folder structure.
Go to the folder shown below in the content browser and duplicate the wood chest twice, one called BP_Cooler and another called BP_Composter and save them. If you dont know how to duplicate, right click the blueprint in the content browser and select duplicate.
Then go to the location shown below.
And duplicate the T_Apple_01_InvIcon, call the duplicate T_Cooler_InvIcon. Duplicate the T_Apple_01_InvIcon again and call the duplicate T_Composter_InvIcon then same them.
Now close the project and download and unzip the files, then copy the video below.
Next open the project and go to the BuildPartList and copy the videos below.
Next go to the ItemList and copy the videos below.
Next go back to the build part list, select the Cooler row, and set its Item Cost and Item Cost Override to the BuildPart_Cooler and set the amount to 1. Then set the pickup item to BuildPart_Cooler as well. You can also change the repair item if you wish by default it is the Resource_Wood.
Then select the Composter row in the build part list and do the same but select the BuildPart_Composter and set the amount to 1. Then set the pickup item to BuildPart_Composter. You can also change the repair item if you wish by default it is the Resource_Wood.
Now go to the folder shown below.
And duplicate the BP_Beans_WI and name the new blueprint BP_Cooler_WI.
Then duplicate the BP_Beans_WI and name the new blueprint BP_Composter_WI.
Now open both the new blueprints, and in the class defaults set the Item row name to BuildPart_Cooler for the cooler blueprint and BuildPart_Composter for the composter blueprint.
You can now drag these new blueprint into your level, these are the items that the player can pickup into their inventory.
Then go back to the ItemList, select the BuildPart_Cooler and in the UI Details set all the textures to the T_Cooler_InvIcon. And in the Move Icon Size Override tick on Override Image Size and set the X and Y values to 128.
Then select the BuildPart_Composter and in the UI Details set all the textures to the T_Composter_InvIcon. And in the Move Icon Size Override tick on Override Image Size and set the X and Y values to 128.
Last go to the BP_Cooler and in the class defaults set the Build Part variables Row Name to BuildPart_Cooler.
Then go to the BP_Composter and in the class defaults set the Build Part variables Row Name to BuildPart_Composter.
I also suggest unticking Show Rotation Arrow in the build part list for both the cooler and composter build part.
If you want to change the decay speed effects of either build part go to the build part blueprints, select the inventory component and change the Decay Multiplier. The higher the value the faster items will decay e.g 1 is normal speed, 0.5 is half speed, 2 is double speed.