Picker Extended Version

by Nexela

Enhances the players pipette tool with features such as quick blueprints, quick planners, ghost reviving, entity moving, orphan finding and more

3 years ago
0.14 - 1.1
23.7K

b nil indexing in /picker/notes.lua

8 years ago

Just noticed a warning popping up, when hovering over any entity.

I fixed it by modifying /picker/notes.lua after line 363 like follows:

local function get_note( ent )
if ent.name == "invis-note" then
return global.notes_by_invis[ent.unit_number]
end
if global.notes_by_target then
return global.notes_by_target[ent.unit_number]
end
return ""
end

it seems, that global.notes_by_target may be nil.
Otherwise great work, can't play without it :)

8 years ago

Make sure you are on the latest version. I forgot a critical piece of code when I added it :)

6 years ago
(updated 6 years ago)

This is still an issue on macOS using PickerExtended 3.0.3 (the current release of the mod) and Factorio 0.16.51 from Steam for macOS.

The full notification message is

__PickerExteded__/picker/notes.lua:408: attempt to index field 'notes_by_target' (a nil value)
6 years ago

This seems to have been resolved on macOS with the recent update of the mod to 3.0.4.

New response