Allow selection tools to be stored in blueprint library

Things that we aren't going to implement
Post Reply
ratchetfreak
Filter Inserter
Filter Inserter
Posts: 952
Joined: Sat May 23, 2015 12:10 pm
Contact:

Allow selection tools to be stored in blueprint library

Post by ratchetfreak »

In FFF number 0xFF it was mentioned that selection tools cannot be stored as blueprints in the library or books

The big limiter to that would be the possible extra state associated with it. The upgrade planner for example stores what is being upgraded to what. This state needs to survive during export and import and transfer to other saves to be useful.

One way to solve that would be serialization to a string, the selection tool when deposited into a book/library has to condense all its state as a string, that string is then used in the export string along with mod-id and other relevant meta info.

If a book with a modded selection tool is imported into a save without that mod show a warning and drop the selection tool from the import.

I'm not entirely sure how that serialize/deserialize interface should look like but it must be possible to opt out.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13868
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Allow selection tools to be stored in blueprint library

Post by Rseding91 »

It's probably never going to happen. The blueprint library stores blueprints and only blueprints. Making it store other stuff is essentially completely re-writing it and nobody is going to do that any time soon.
If you want to get ahold of me I'm almost always on Discord.

ratchetfreak
Filter Inserter
Filter Inserter
Posts: 952
Joined: Sat May 23, 2015 12:10 pm
Contact:

Re: Allow selection tools to be stored in blueprint library

Post by ratchetfreak »

Rseding91 wrote:It's probably never going to happen. The blueprint library stores blueprints and only blueprints. Making it store other stuff is essentially completely re-writing it and nobody is going to do that any time soon.
in 0.17 it (and books) will also store upgrade planners,

When a mod needs a ton of selection tools the inventory and hotbar is going to fill up quite fast, allowing books to be used with them is going to reduce that a lot.

once you reduce the selection tool to the mod id, item prototype name, the name to display when looking at it in the library, any custom icon stuff and the serialized string it's not that different to a exported blueprint

User avatar
Hares
Fast Inserter
Fast Inserter
Posts: 244
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

Re: Allow selection tools to be stored in blueprint library

Post by Hares »

Rseding91 wrote:
Sat Aug 11, 2018 6:42 am
It's probably never going to happen. The blueprint library stores blueprints and only blueprints. Making it store other stuff is essentially completely re-writing it and nobody is going to do that any time soon.
I am reading API docs and prototype values and it looks that the default "blueprint-book" item has empty filters (filter_mode="none"; item_filters=<empty>). How it determines which items are OK to store? If a mod defines a custom upgrade planner prototype (i.e.), will it fit to the library?

Post Reply

Return to “Won't implement”