Page 1 of 1

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

Posted: Sat Dec 13, 2025 12:16 pm
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 ?

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

Posted: Sat Dec 13, 2025 1:04 pm
by Rseding91
Thanks for the report. That is working as intended: upgrading requires the source items not be hidden.

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

Posted: Sat Dec 13, 2025 2:48 pm
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 ?