[2.0.72] order_upgrade doesn't accept to be used on hidden entity

Bugs that are actually features.
User avatar
Stargateur
Filter Inserter
Filter Inserter
Posts: 336
Joined: Sat Oct 05, 2019 6:17 am
Contact:

[2.0.72] order_upgrade doesn't accept to be used on hidden entity

Post by Stargateur »

order_upgrade seems to not be able to upgrade when an entity with a prototype with hidden set to true. It's accept the target to be hidden but not the source.

Code: Select all

not_hidden.order_upgrade(hidden) -- works
hidden.order_upgrade(whatever) -- doesn't works
Also, this function doesn't report any error information and that very hard to debug.

why order_upgrade sometime refuse to accept request ?
Rseding91
Factorio Staff
Factorio Staff
Posts: 16370
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.72] order_upgrade doesn't accept to be used on hidden entity

Post by Rseding91 »

Thanks for the report. That is working as intended: upgrading requires the source items not be hidden.
If you want to get ahold of me I'm almost always on Discord.
User avatar
Stargateur
Filter Inserter
Filter Inserter
Posts: 336
Joined: Sat Oct 05, 2019 6:17 am
Contact:

Re: [2.0.72] order_upgrade doesn't accept to be used on hidden entity

Post by Stargateur »

That would be great to have the reasoning, I don't see why it's allowed to upgrade to hidden entity but not upgrade an hidden entity and hidden doesn't mean disable we just went to hide it from player, also that not documented, and how to upgrade an hidden entity in control.lua then ?
Post Reply

Return to “Not a bug”