Memory Storage


An alternative to warehouses. The Memory Unit can store an infinite amount of a single item type. You can also put items into drives and transport them around your factory.

a day ago
1.0
10256
Owner:
notnotmelon
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
21 days ago
Latest Version:
1.2.4 (a day ago)
Factorio version:
1.0
Downloaded:
10256 times

Adds a container that can store an infinite amount of a single item type

Graphics from kaueNP

Memory elements

Q: Melon what if I break it? Will my 2 billion plates spill over the entire map?

A: No, they will not. Instead, you will get a special item called a "memory element".
This item is a proxy for all the items that used to be in the memory unit.
Simply place it into another memory unit if you want your items back.

You can use this to move units, or combine their storages

Warning: If a memory unit is destroyed (biters, nuke, or otherwise) then you will NOT get a memory element and your items will be lost!

Power

The memory unit requires power to function!
The power usage is equal to:
1MW + (ceil(item count / stack size) ^ 0.4) * 480kW
This can be changed in mod settings

If it runs out of power, then it will not accept any more items until it gets power again.

Just for fun, the memory unit in the mod thumbnail uses 57.9 zetawatts. You would need 97 maxed out electric energy interfaces to support this.

Protip: The Factorio API does not allow modders to change entity descriptions.
If you want to read the power usage of a unit disconnect it from the power network and then place a small power pole near it.
The satisfaction on the pole will equal the consumption of the unit.

Alerts

If a memory unit ever runs out of items, then you will get an alert.
This shouldn't be intrusive because all the alerts will be on the same icon and there is no alert sound.

This mod also automatically creates map labels when a unit is primed to any resource.

Circuits

Memory units can connect to the circuit network! Simply attach a red or green wire to the buttons on the right of the container.
This will read both the type and amount of whatever you have stored in the unit.

Circuit signals in Factorio can only go up to 2147483647. If you happen to have more items than this stored in a memory unit, then the signal will still only display as 2147483647.

Empty memory elements

The 1.2.0 update adds empty memory elements; a way to automatically extract all items in a unit onto a memory element.
All you need to do is insert the empty element into the unit, which could then be extracted at another memory unit.

This is similar to mods such as Deadlock's stacking beltbox where you can compress items on the belt.
The diffrence to that mod is that instead of having 5 items compressed, you can have an infinite amount of items compressed into one.

You could say a feature like this is unbalanced, which is why there are some key restrictions.
1. The empty memory elements are not reusuable. Each time you move items you must also spend items.
2. In order to create a reliable system, you need to use a return belt. Without this, you can lose millions of items if you back up the belt.
3. You will need to use the circuit network to regulate when the empty memory elements are inserted.
4. Logistic robots cannot tell what item is inside a memory element when they fufill requests.

Command

You can use
/c remote.call("memory-storage", "give-memory-element", "iron-ore", 10000000)
if you want to give yourself a memory element.

Make sure to use the internal item names here. If you don't know the internal name, press ctrl+shift+f while hovering over an item.

UPS

This mod is super optimized. This shouldn't reduce your UPS at all.

Addons

https://mods.factorio.com/mod/logistic-memory-units
Adds all the logistic chests variants

https://mods.factorio.com/mod/fluid-memory-storage
Adds a fluid unit that can store any liquid or gas

"Infinity"

When I said that this could hold an infinite amount of items, I actually lied.

The real maximum is:
1797693134862315708145274237317043567980705675258449965989174768031572607800285387605895586327668781715404
5895351438246423432132688946418276846754670353751698604991057655128207624549009038932894407586850845513394
2304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368

Modded stack inserters have a max stack size of 254. Let's pretend that each stack inserter can complete a full swing in one tick.
With a full set of 24 inserters you can add 365,760 items per second. Let's say that you've placed 1 billion deep storage units, and are planning to combine their inventories with the memory elements. This brings our total throughput to 365,760,000,000,000 items per second.

With this setup, it would take you
1137720554754531790053752185047373077332630133963546330580332905914836907745633343713536872299602310932255
2904024203187808054338421850029506538604406444119806371452251475981920764966773592904605312809241947460116
53290981598373239141917488880162590316195052323711390341358682112
Times the age of the universe to fill a single memory unit.

I don't think you have to worry about this filling up anytime soon

Thanks for bringing this mod to #1 on trending!

> Check out my other mods! <