LTN Content Reader

by Optera

Display LTN's Provider and Requester contents for specific Network ID's as combinator output.

Content
1 year, 5 months ago
0.16 - 1.1
42.9K
Circuit network

b [Fixed] Crash on removing mod with an item named the same as a fluid

1 year, 5 months ago
(updated 1 year, 5 months ago)

If an item with the same name as a fluid is removed from the game while an LTN station is sending the item signal out and there exists a content reader on the map outputting that signal then this mod will attempt to set the item signal on its combinator thingy and crash with the error

  44.470 Error MainLoop.cpp:1284: Exception at tick 57083: The mod LTN Content Reader (1.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event LTN_Content_Reader::on_tick (ID 0)
Unknown item name: water
stack traceback:
    [C]: in function '__newindex'
    __LTN_Content_Reader__/control.lua:139: in function 'Update_Combinator'
    __LTN_Content_Reader__/control.lua:86: in function <__LTN_Content_Reader__/control.lua:78>

You can create this situation by installing the mod Attach Notes, connecting a constant combinator to a logistic train stop and setting the constant combinator to output a water item signal that the Attach Notes mod creates by running the following command while the cursor is hovering on the constant combinator

/c game.player.selected.get_control_behavior().set_signal(1, {signal={type="item",name="water"},count=1000})

Then place down a content reader that outputs this water item signal and disable the Attach Notes mod.

Here's a save game with this situation reproduced
https://www.hornwitser.no/cloud/s/3iBAfiJNxTrtZBL
If you load it with Attach Notes enabled it works fine, if you disable the Attach Notes mod and load this save then it crashes.

1 year, 5 months ago

thanks for reporting.

Fixed in 1.0.3

New response