Bob's Adjustable Inserters


Adds hotkeys and a GUI to adjust inserter pickup and drop locations.

Content
4 months ago
0.13 - 1.1
304K
Logistics

b Build Error When Trying to Place Inserter

5 years ago

I recently updated several mods. Among them were several Bob's Mods. I have tried to continue with a previously saved game but am now getting this error when I try to place a new inserter:

Error while running event bobinserters::on_built_entity (ID 6)
bobinserters/control.lua:597: attempt to index field 'blacklist' (a nil value)

I am specifically trying to place a basic yellow inserter. I have not yet researched any of the tech that allow the adjusting of the inserters.

I do not know if what other mods might be causing an issue. I did make some personal edits to Bob's Tech and Bob's Logistics. Mainly changing science pack recipes to their default and removing the logistics science pack altogether. I have done this in the past with no errors occurring.

5 years ago

it should exist...
snipped quotes to show only the important information.

script.on_configuration_changed(function(event)
for i, player in pairs(game.players) do
bobmods.inserters.create_global_table(player.index)
end
end)

therefore on update it should rebuild the table.

function bobmods.inserters.create_global_table(player_index)
if not global.bobmods then global.bobmods = {} end
if not global.bobmods.inserters then global.bobmods.inserters = {} end
if not global.bobmods.inserters.blacklist then global.bobmods.inserters.blacklist = {} end
end

and rebuilding the table adds the variable blacklist as an empty table.

anyway, what I'm saying is, I see no reason why it should do this.

you could try disable bob's Inserters, load game, (mod doesn't exist, global table should be deleted) save game, enable bob's inserters, and when you load a game the table will be rebuilt and should make the error go away.

New response