billbo99 / AdditionalPasteSettings

MIT License
1 stars 1 forks source link

Crash with seablock, when shift-right click a fluid machine followed by shift-left click an inserter #2

Open nanw1103 opened 9 months ago

nanw1103 commented 9 months ago

The mod Additional Paste Settings (Fixed) (1.6.4) caused a non-recoverable error.Please report this error to the mod author.Error while running event AdditionalPasteSettings::additional-paste-settings-hotkey (ID 185)Unknown item name: liquid-molten-ironstack traceback: [C]: in function 'set_filter' AdditionalPasteSettings/smarts.lua:638: in function 'set_loader_filter' AdditionalPasteSettings/smarts.lua:654: in function 'update_loader' AdditionalPasteSettings/smarts.lua:659: in function 'act' AdditionalPasteSettings/smarts.lua:749: in function <AdditionalPasteSettings/smarts.lua:732>

Brilliand commented 9 months ago

The error suggests that I copy-pasted a liquid-producing building onto a loader. I tried doing that intentionally, and it does reliably crash the game.

The first (accidental) crash happened when I was shift+dragging an upgrade planner in the vicinity of some loaders and buildings that produce liquid. So while I wasn't intending to copy-paste any settings, I might have done so by accident.

nanw1103 commented 9 months ago

Error while running event AdditionalPasteSettings::additional-paste-settings-hotkey (ID 185)Unknown item name: liquid-sulfuric-acid

Brilliand commented 9 months ago

The error doesn't happen with inserters; when you paste a building onto an inserter, it sets the inserter up to insert into the building, and just leaves the inserter with no filters set if the building takes no solid inputs.

But pasting onto a loader apparently tries to set the loader up to output from the building, and breaks if the building (only?) has fluid outputs.