Paste Logistic Settings (Continued)


Copy and paste logistic chest and inserter filters.

Utilities
2 months ago
2.0
187
Logistic network Circuit network Storage

b [SOLVED] Crash paste on requester chest with foundry

3 months ago
24278.674 Error MainLoop.cpp:1508: Exception at tick 5383947: The mod Paste Logistic Settings (Continued) (1.3.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event paste-logistic-settings-continued::paste-logistic-settings-continued-paste (ID 223)
__paste-logistic-settings-continued__/scripts/helpers.lua:99: attempt to index local 'prototype' (a nil value)
stack traceback:
    __paste-logistic-settings-continued__/scripts/helpers.lua:99: in function 'get_limit'
    __paste-logistic-settings-continued__/scripts/lib.lua:105: in function 'apply_chest_settings'
    __paste-logistic-settings-continued__/scripts/lib.lua:146: in function 'paste_settings'
    __paste-logistic-settings-continued__/control.lua:40: in function <__paste-logistic-settings-continued__/control.lua:22>
3 months ago

Dang, I’m so sorry about that! I have tested some with modded entities and hadn’t seen any issues.

In fill candor, I’m frustrated by the lack of e2e testing utilities for modders so this past week I’ve been on a side quest solving that problem, which will help immensely with stuff like this.

Thanks for the report! I’ll get this addressed ASAP - my aim is for this to be 100% compatible with other mods, but esp. SA

3 months ago

I was able to find a few moments to squeeze some work in on this - please update to 1.3.1. I've tested locally as much as I can at this point.

The reason for this crash was that I failed to account for fluid ingredients not having a standard prototype.

3 months ago

doesn't crash anymore, but now each paste will duplicate the request, that only happen for recipe with liquid. I guess you include liquid in the logic that check if request already exist :p

3 months ago

You're good - thanks for all the help testing!

1.3.3 addresses this (and you were right btw - I was checking the section against the fluid ingredients)

3 months ago

And in additional testing, I realized there was [another] crash when pasting a fluid-output recipe to an inserter. It's an "invalid" operation but someone could still try and I can't stand the thought of crashing someone's game.

3 months ago

Discovered another minor bug as well, but I don't have time to fix it right this moment - now it won't properly paste item requests for fluid outputs (e.g. if you try using it with a chemical plant set with the ice melting recipe, obviously the inserter and storage chest pastes are no-ops but it's not setting the ice item request anymore.

3 months ago

Ok I lied, I did fix that, too, with 1.3.5

New response