Skip to content

Use page and slot for quick bar filters - #466

Merged
Cooldude2606 merged 2 commits into
explosivegaming:mainfrom
bbassie:fix/quickbar-pages
Sep 6, 2026
Merged

Use page and slot for quick bar filters#466
Cooldude2606 merged 2 commits into
explosivegaming:mainfrom
bbassie:fix/quickbar-pages

Conversation

@bbassie

@bbassie bbassie commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #444.

Factorio 2.1 changed get_quick_bar_slot and set_quick_bar_slot to take a page and slot instead of a single index, and to return a QuickBarSlot describing records, remotes, filters and item instances. The saved filters keep their single 1 to 100 index (the presets in config/preset_player_quickbar.lua still work unchanged); load converts it to page and slot, and save iterates the ten pages of ten slots. Only slots of type filter are saved, since records, remotes and specific item instances hold data which has no item name to store, which replaces the old hard coded ignore list. The /save-quickbar command is enabled again and the placeholder error is gone.

Lua lint is clean; the scenario loads on my dev instance and the command is registered. Saving needs a player with a quick bar, so I could not exercise it headless.

bbassie and others added 2 commits September 5, 2026 20:54
Factorio 2.1 changed get_quick_bar_slot and set_quick_bar_slot to take a
page and slot rather than a single index, and to describe slots holding
records, remotes and specific item instances. Saved filters keep their
single index, which is converted on load and save, and only plain item
filters are saved since the other slot types hold data which has no name
to store. The command is enabled again.

Fixes explosivegaming#444
@Cooldude2606
Cooldude2606 merged commit e14e27c into explosivegaming:main Sep 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

quickbar api changes

2 participants