Not sure if bugless implementation is possible, but still.
Chest with inventory shared between all instances
[idea] Singular chest
-
- Filter Inserter
- Posts: 778
- Joined: Sun Sep 07, 2014 12:59 pm
- Contact:
Re: [idea] Singular chest
Isn't that just called a Logistics Network?
I don't have OCD, I have CDO. It's the same, but with the letters in the correct order.
- CreeperDaReeper
- Fast Inserter
- Posts: 228
- Joined: Fri May 23, 2014 8:59 pm
- Contact:
Re: [idea] Singular chest
I believe he means how the Ender Chest works in Minecraft. You can build and place as many of the chests as you like, but the inventory of them will always be the exact same thing.Boogieman14 wrote:Isn't that just called a Logistics Network?
Say I had inserters pulling ore from a train into a row of such chests. Elsewhere I could have smart inserters pulling from the same kind of chests straight into furnaces.
Biggest upside: point to point transmission over any distance.
Biggest downside: extremely limited capacity since it can only ever hold the amount of a single chest.
Another downside would be that said chests would be expensive to research, expensive to create, and require vast amounts of electricity to run.
-
- Filter Inserter
- Posts: 778
- Joined: Sun Sep 07, 2014 12:59 pm
- Contact:
Re: [idea] Singular chest
Ah yes, that does sound somewhat different. While it's not a chest, wouldn't https://forums.factorio.com/forum/vie ... =14&t=3134 pretty much fill this purpose?
I don't have OCD, I have CDO. It's the same, but with the letters in the correct order.
Re: [idea] Singular chest
Something like ender chest from minecraft? Collecting items from multpile inventories could be done, but outputting items would be pain to mod. Atleast if you want it to work with inserters.
But for player only it could be done quite easy, mayby? Somethink like this.
ps. Now that think more of this code. Its just same as adding more inventory slots to player. So It could be extend to collect inserted items from all singular chests, but inserter(s) could flood the system
But for player only it could be done quite easy, mayby? Somethink like this.
Code: Select all
function onTick(event)
if game.player.opened.name == "singular-chest " then
-- what if chest has items? clear / abort / temporarely swap inventories?
fillChestWithSingularInventory(game.player.opened) -- Access glob.singular and insert loops items to chest.
opened = game.player.opened
elseif opened then -- player is not looking inside chest anymore
moveItems2SingularInventory(opened) -- Copies chest inventory to glob.singular and clears chest.
opened = nil
end
end
Test mode
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela