Custom metadata associated with an item

Place to get help with not working mods / modding interface.
Semaphor
Inserter
Inserter
Posts: 30
Joined: Fri May 20, 2016 2:27 pm
Contact:

Custom metadata associated with an item

Post by Semaphor »

I'm wondering if this is possible. I'd like to create an item you use for selecting entities. This item would save a list of entities for later use. Then, when using the item, it would refer to the saved list within the item itself rather than a global variable. Is there a way to assign metadata to an item after it's use (similar to how blueprints work)?
Rseding91
Factorio Staff
Factorio Staff
Posts: 14280
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Custom metadata associated with an item

Post by Rseding91 »

There's currently no way to do that in mods.
If you want to get ahold of me I'm almost always on Discord.
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2171
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Custom metadata associated with an item

Post by Ranakastrasz »

The only workaround I am aware of at this time is the Factorisimo mod. It uses the item's durability as a array index.

Obviously any mod that screws with item health will break it.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Custom metadata associated with an item

Post by aubergine18 »

Also there was talk of merging damaged items in inventory (to reduce number of slots taken) which would break the factorissimo approach.

Only other thing I can think of is to experiment with "item with label" and see if that might work?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2171
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Custom metadata associated with an item

Post by Ranakastrasz »

Yea. I think we need this functionality before they implement item merging. Although I still think letting you use repair kits on items in your inventory is a better approach.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Post Reply

Return to “Modding help”