Shared Storage: Difference between revisions

From Desynced Wiki
No edit summary
m (wording)
 
(12 intermediate revisions by 2 users not shown)
Line 4: Line 4:
Set locked slots on unit to allow dumping of excess items
Set locked slots on unit to allow dumping of excess items


=====Function:<br />=====
======Function:<br />======
When a building or unit is full it looks for a {{IL|Shared Storage}} with the appropriately locked slots to transfer its storage
When a building or unit is full and attempts to produce an item it looks for a {{IL|Shared Storage}} with the appropriately locked slots to transfer its items to.


=====Example 1:<br />=====
======Example 1:<br />======
You have an Assembler creating Circuit Boards<br />
You have an {{IL|Assembler}} creating {{IL|Circuit Board}}s<br />
You have a Storage with a {{IL|Shared Storage}} component<br />
You have a {{IL|Storage_Block_(8)}} with a {{IL|Shared Storage}} component<br />
The Storage has a slot locked to Circuit Boards<br />
The {{IL|Storage_Block_(8)}} has at least one slot locked to {{IL|Circuit Board|Circuit Boards}}<br />
When the Assembler fills up to its maximum capacity, the Shared Storage will request a stack of Circuit Boards to be transferred, freeing up a slot in the Assembler building.<br />
When the {{IL|Assembler}} unit fills up to its maximum capacity it will generate a transfer request to a {{IL|Shared Storage}} on the logistics network for all items eligible to be received by a shared storage, freeing up a slot in the {{IL|Assembler}} building.<br />


=====Example 2:<br />=====
======Example 2:<br />======
You have decided that the Assembler building above is to be retasked to Reinforced Metal Plates production.<br />
You have decided that the {{IL|Assembler}} building above is to be re-tasked to {{IL|Reinforced Plate|Reinforced Plates}} production.<br />
Upon switching to Reinforced Metal Plates, the Shared Storage will request the remaining Circuit Boards if they need to be removed in order for the Assembler to produce.<br />
Upon switching to {{IL|Reinforced Plate|Reinforced Plates}}, the unit will seek to transfer the remaining {{IL|Circuit Board|Circuit Boards}} or other items to an eligible {{IL|Shared Storage}} if they need to be removed in order for the {{IL|Assembler}} to produce.<br />


{{:GameData:Recipe:{{PAGENAME}}}}
{{Recipe cargo|{{PAGENAME}}}}
 
{{Category
{| class="wikitable" style="auto"
|race =
|+ Technology Group
|item-type = Components
|-
|material-type =
| Behaviors
|entity-type =
|}
|unit-type =
___NOTOC___
}}
 
__NOTOC__
{{ComponentsNav}}
__NOEDITSECTION__
[[Category:Components]][[Category:Storage]]

Latest revision as of 21:00, 5 October 2023

Shared Storage
     
     Set locked slots on unit to allow dumping of excess items
Lua ID c_shared_storage
Size Internal


Set locked slots on unit to allow dumping of excess items

Function:

When a building or unit is full and attempts to produce an item it looks for a Shared Storage with the appropriately locked slots to transfer its items to.

Example 1:

You have an Assembler creating Circuit Boards
You have a Storage_Block_(8) with a Shared Storage component
The Storage_Block_(8) has at least one slot locked to Circuit Boards
When the Assembler unit fills up to its maximum capacity it will generate a transfer request to a Shared Storage on the logistics network for all items eligible to be received by a shared storage, freeing up a slot in the Assembler building.

Example 2:

You have decided that the Assembler building above is to be re-tasked to Reinforced Plates production.
Upon switching to Reinforced Plates, the unit will seek to transfer the remaining Circuit Boards or other items to an eligible Shared Storage if they need to be removed in order for the Assembler to produce.


Recipe
Circuit Board Shared Storage
Circuit Board 1 Arrow Right Shared Storage
Produced by
Assembler Time
4 seconds



Required Technology
Behaviors Behaviors