Picker Extended Reborn

by Kryzeth

It's Back! An attempt to recover most Picker Extended functionality. Includes Planner Menu, Planner Zapper, Held Item Count, Belt Reverser, Auto Ghost Reviver, Auto Inventory Sort, Player Searchlight, Quality Item Scrolling, and more!

Utilities
a month ago
2.0
2.69K
Blueprints

b [Fixed] Missing nil check for spectator mode

2 months ago

When you're in Spectator mode, this message appears in chat whenever you hover over an entity:

scripts/reviver.lua: 136: attempt to index field 'cursor_stack' (a nil value)

Apparently LuaPlayer::cursor_stack is nil ONLY in Spectator mode, which has caught me a few times as well.

2 months ago
(updated 2 months ago)

While I'm not entirely sure how to enter spectator mode (is this a multiplayer-only feature?), I added a check to ensure cursor_stack exists (not nil) before attempting to check if cursor_stack.valid_for_read, should hopefully prevent that message from occurring. Implemented in v1.0.13

2 months ago

It seems like the issue is fixed.

You can enter Spectator mode with this command:

/c game.player.set_controller{type=defines.controllers.spectator}

then re-enter your character later with it selected under the cursor:

/c game.player.set_controller{type=defines.controllers.character, character=game.player.selected}

I think it's a very obscure feature used for scenarios and other mods.

2 months ago

Glad to hear that the issue is resolved, and good to know, thanks!

New response