Fluid Memory Storage (Continued)


An alternative to flare stack/voiding fluids. The Fluid Memory Unit can store an infinite amount of any liquid or gas. The more fluid you store, the more power it will require! Continuation fork of notnotmelon's Fluid Memory Storage: Factorio 2.1 support and bug fixes only, no new features and no balance changes. Retires if the original updates.

Content
3 months ago
2.1
461
Storage

b Error

a month ago

Hi, I’m playing the stable version of the game, 2.1.23, and when I place the tank, I get the following error:
Error whilst running event fluid-memory-storage-continued::on_nth_tick(15)
value for required field “name” is missing
stack traceback:
[C]: in function “set_fluid_filter”
fluid-memory-storage-continued/control.lua:97: in function “detect_item”
fluid-memory-storage-continued/control.lua:113: in function 'update_unit'
fluid-memory-storage-continued/control.lua:152: in function <fluid-memory-storage-continued/control.lua:147>

a month ago

I'm running into the same error as well, however for me the server wont even start, I have the following error in my logs

Error ServerMultiplayerManager.cpp:85: MultiplayerManager failed: "The mod Fluid Memory Storage (Continued) (1.7.12) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event fluid-memory-storage-continued::on_configuration_changed
value for required field 'name' is missing
stack traceback:
[C]: in function 'set_fluid_filter'
fluid-memory-storage-continued/adopt.lua:89: in function 'adopt_orphaned_units'
fluid-memory-storage-continued/control.lua:51: in function <fluid-memory-storage-continued/control.lua:50>"
5.763 Info ServerMultiplayerManager.cpp:809: updateTick(18446744073709551615) changing state from(CreatingGame) to(InitializationFailed)
5.763 Info CommandLineMultiplayer.cpp:216: Exit point.
5.770 Info ServerMultiplayerManager.cpp:147: Quitting multiplayer connection.
5.770 Info ServerMultiplayerManager.cpp:809: updateTick(18446744073709551615) changing state from(InitializationFailed) to(Closed)
5.770 Info ServerMultiplayerManager.cpp:167: Deleting active scenario (global = true).
5.813 Info UDPSocket.cpp:238: Closing socket
5.814 Goodbye

a month ago
(updated a month ago)

I got the bug of momfit, for people who want to correct it you need to correct the function in "control.lua" in %appdata%\Factorio\mods\fluid-memory-storage-continued_1.7.12.zip, at the line 94, here is the corrected function : local function detect_item(unit_data)
local fluid = unit_data.entity.get_fluid(1)
if fluid and fluid.name then
unit_data.entity.set_fluid_filter(1, fluid.name)
render_fluid_animation(unit_data, fluid.name)
unit_data.item = fluid.name
unit_data.temperature = fluid.temperature
return true
end
return false
end

PS : I didn't do anything gemini did, gemini is quite good with coding in lua.

2nd PS : I ran into another bug when you place the storage tank with fluid to fix it you need to change a bit the 203 line in "control.lua" here is the original : entity.set_fluid_filter(1, {fluid = tags.name}) and here is the corrected one : entity.set_fluid_filter(1, tags.name).

a month ago
(updated a month ago)

thanks for the fix, i am able to drop a new fluid memory storage now, however, when i attempt to drop one with fluid inside (using packing tape mod), i got the following error:
The mod Fluid Memory Storage (Continued) (1.7.12) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event fluid-memory-storage-continued::on_built_entity (ID 6)
value for required field 'name' is missing
stack traceback:
[C]: in function 'set_fluid_filter'
fluid-memory-storage-continued/control.lua:203: in function <fluid-memory-storage-continued/control.lua:157>

PS: just noticed the edited message, thanks again

11 days ago

Here is a guaranteed working version for 2.1
https://mods.factorio.com/mod/fluid-memory-storage-21

New response