Allow 180 rotation of rectangular crafting machines after placement

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
TwentyEighty
Fast Inserter
Fast Inserter
Posts: 170
Joined: Thu Jan 10, 2019 3:11 pm
Contact:

Allow 180 rotation of rectangular crafting machines after placement

Post by TwentyEighty »

If you have an entity based on the assembler prototype with a non square collision box and a fluid box, it's not possible to rotate the entity after placement. For entities like boilers and generators, this is possible and it rotates them 180 degrees. The assembler behavior is unexpected and seems arbitrary.

I suggest to allow the assemblers to have similar behavior to boilers for this case.
Honktown
Smart Inserter
Smart Inserter
Posts: 1054
Joined: Thu Oct 03, 2019 7:10 am
Contact:

Re: Allow 180 rotation of rectangular crafting machines after placement

Post by Honktown »

In 2.0, a setting on assembling-machines was added:
fluid_boxes_off_when_no_fluid_recipe which is default false. By default, a non-square / rectangular assembling machine with fluid boxes can rotate after being placed.
I have mods! I guess!
Link
StephenB
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri Jul 19, 2024 10:12 am
Contact:

Re: Allow 180 rotation of rectangular crafting machines after placement

Post by StephenB »

Related: viewtopic.php?t=129252

From my testing rotation works and rotates a 2x1 assembler 180 degrees, but only if it has fluidboxes and fluid_boxes_off_when_no_fluid_recipe == false. Otherwise there's an engine optimization/bug that prevents changing the entity's .direction if it has no fluidboxes. Assigning `entity.direction = 12` and then reading `entity.direction` will still give you the original direction.
Post Reply

Return to “Modding interface requests”