Bob's Adjustable Inserters


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

Content
3 months ago
0.13 - 1.1
303K
Logistics

b gui bug, pops up and dissapears instantly?

7 years ago

i have been enjoying this mod for some time and every now and then when i press shift e to get the gui pop up, it disappears instantly, and won't let me adjust any inserters, the friend i have been playing with also has this same issue, any ideas?

7 years ago

This fix that we are using on our server might solve this issue:

[diff of mods/bobinserters_0.14.2/control.lua]

@@ -351,18 +351,18 @@ script.on_event(defines.events.on_tick, function(event)
if game.tick % 20 == 0 then
if global and global.bobmods and global.bobmods.inserters then
for index, player in pairs(game.connected_players) do
- if global.bobmods.inserters[index] then
- local entity = global.bobmods.inserters[index].entity
+ if global.bobmods.inserters[player.index] then
+ local entity = global.bobmods.inserters[player.index].entity
if entity and (not entity.valid or not player.can_reach_entity(entity)) then
- bobmods.inserters.delete_gui(index)
+ bobmods.inserters.delete_gui(player.index)
end
else
- bobmods.inserters.create_global_table(index) -- Create for this specific online player.
+ bobmods.inserters.create_global_table(player.index) -- Create for this specific online player.
end
end
else
for index, player in pairs(game.players) do -- Create for all if there are none.
- bobmods.inserters.create_global_table(index)
+ bobmods.inserters.create_global_table(player.index)
end
end
end

New response