"EntityWithInventoryPrototype"

User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 489
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.
If you want to see the mods I've made, press one. If you need me to update a mod to 2.0, press two. If you're looking for QA, press three. If you've been waiting over 1 and a half years for Digital Age, bad luck.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16586
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: 489
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!)
If you want to see the mods I've made, press one. If you need me to update a mod to 2.0, press two. If you're looking for QA, press three. If you've been waiting over 1 and a half years for Digital Age, bad luck.
curiosity
Filter Inserter
Filter Inserter
Posts: 728
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: 16586
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: 489
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?
If you want to see the mods I've made, press one. If you need me to update a mod to 2.0, press two. If you're looking for QA, press three. If you've been waiting over 1 and a half years for Digital Age, bad luck.
Bilka
Factorio Staff
Factorio Staff
Posts: 3701
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: "EntityWithInventoryPrototype"

Post by Bilka »

I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Implemented mod requests”