"EntityWithInventoryPrototype"

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 261
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

"EntityWithInventoryPrototype"

Post by BraveCaperCat »

Hi! I propose that a new prototype (likely abstract) be added called "EntityWithInventoryPrototype". It would be a simple entity prototype with an inventory. It would have some properties that ContainerPrototype has right now, such as inventory_size, inventory_type and quality_affects_inventory_size (mainly this one) and both ContainerPrototype and VehiclePrototype would inherit from it. VehiclePrototype would have an option to disable/enable the inventory, and you can work out what happens to the children prototypes of RollingStockPrototype.
The main reason for this request (for inventories to be separated from cargo wagons and containers) is so that CargoWagonPrototype can have the quality_affects_inventory_size property.
Creator of multiple mods, including Quality Assurance - My most popular one. Expect multiple modding-related questions, answers and other posts.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14265
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: "EntityWithInventoryPrototype"

Post by Rseding91 »

Why not just request that we add quality support for cargo wagons as a modding option? That would be *way* simpler than what you suggest :D
If you want to get ahold of me I'm almost always on Discord.
User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 261
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

Re: "EntityWithInventoryPrototype"

Post by BraveCaperCat »

Rseding91 wrote: Tue Nov 19, 2024 11:40 pm Why not just request that we add quality support for cargo wagons as a modding option? That would be *way* simpler than what you suggest :D
Yes, but at least this way it's consistent with existing prototypes. (Looking at you, EntityWithHealth and EntityWithOwner Prototypes!)
Creator of multiple mods, including Quality Assurance - My most popular one. Expect multiple modding-related questions, answers and other posts.
curiosity
Filter Inserter
Filter Inserter
Posts: 470
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: "EntityWithInventoryPrototype"

Post by curiosity »

Rseding91 wrote: Tue Nov 19, 2024 11:40 pm Why not just request that we add quality support for cargo wagons as a modding option? That would be *way* simpler than what you suggest :D
Why not then add it for every entity type with inventory? The end result would be indistinguishable.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14265
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: "EntityWithInventoryPrototype"

Post by Rseding91 »

curiosity wrote: Wed Nov 20, 2024 1:06 am Why not then add it for every entity type with inventory? The end result would be indistinguishable.
Because it takes developer time and energy to make tests for, implement, and then maintain it everywhere and there are currently 23 pages of bug reports to work on :)
If you want to get ahold of me I'm almost always on Discord.
User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 261
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

Re: "EntityWithInventoryPrototype"

Post by BraveCaperCat »

Rseding91 wrote: Wed Nov 20, 2024 1:13 am
curiosity wrote: Wed Nov 20, 2024 1:06 am Why not then add it for every entity type with inventory? The end result would be indistinguishable.
Because it takes developer time and energy to make tests for, implement, and then maintain it everywhere and there are currently 23 pages of bug reports to work on :)
Which is better? An update fixing 20 bugs, or an update fixing 15 bugs as well as adding 1 (minor) feature?
Creator of multiple mods, including Quality Assurance - My most popular one. Expect multiple modding-related questions, answers and other posts.
Post Reply

Return to “Modding interface requests”