Page 1 of 1
[2.0.11] Loader does not support freezing
Posted: Sun Oct 27, 2024 12:54 am
by kirazy
The LoaderPrototype graphics are defined using the LoaderStructure prototype, but it lacks entries for freezing.
Compare the
UndergroundBeltStructure and the
LoaderStructure.
I would expect the following properties to be available to the LoaderStructure prototype:
Code: Select all
frozen_patch_in :: Sprite4Way optional
frozen_patch_out :: Sprite4Way optional
Additionally, there is a Color LUT that is applied to frozen entities, but this LUT is not applied to Loaders:
Re: [2.0.11] Loader does not support freezing
Posted: Sun Oct 27, 2024 11:07 am
by boskid
Modding interface requested disguised as bug report. Added for 2.0.12 however due to lack of sprites i was unable to test if its actually working and loaders are really tricky beasts in terms of freezing (they are TransportBeltConnectable which supports freezing to stop belts moving, but they are also UpdatableEntity which also supports freezing to stop the item transfers from happening). I made the draw condition based on UpdatableEntity frozen state and i am not sure if the belt itself will freeze or unfreeze correctly.
Re: [2.0.11] Loader does not support freezing
Posted: Sun Oct 27, 2024 11:57 am
by kirazy
Oh, my bad. The belt freezes properly already, just the loader itself wasn't.
Re: [2.0.11] Loader does not support freezing
Posted: Tue Oct 29, 2024 2:53 am
by kirazy
boskid wrote: ↑Sun Oct 27, 2024 11:07 am
Modding interface requested disguised as bug report. Added for 2.0.12 however due to lack of sprites i was unable to test if its actually working and loaders are really tricky beasts in terms of freezing (they are TransportBeltConnectable which supports freezing to stop belts moving, but they are also UpdatableEntity which also supports freezing to stop the item transfers from happening). I made the draw condition based on UpdatableEntity frozen state and i am not sure if the belt itself will freeze or unfreeze correctly.
I return with test results:
- 10-28-2024, 19-52-51.png (205.42 KiB) Viewed 267 times
From left to right:
- (Good) Placed after heat pipe, does not freeze at all.
- (Bug) Placed before heat pipe, transport belt does not unfreeze.
- (Good) Placed away from heat pipe, loader and transport belt freeze.
Bug here is the belt wont unfreeze.
Re: [2.0.11] Loader does not support freezing
Posted: Tue Oct 29, 2024 2:57 am
by kirazy
I've attached a mod with sprites for debugging purposes.