Page 1 of 1

[Dominik][0.17.66] Fluid mixing by lua create_entity{"pipe-to-ground"}

Posted: Fri Aug 16, 2019 3:25 pm
by boskid
Ref: 74116

Issue:
  1. create_pipe_1.png
    create_pipe_1.png (43.18 KiB) Viewed 1533 times
    save
  2. Code: Select all

    /c game.surfaces["nauvis"].create_entity{name="pipe-to-ground", position={0.5,0.5}, direction=defines.direction.west, force="player"}
  3. Fluid mixing:
    create_pipe_2.png
    create_pipe_2.png (40.74 KiB) Viewed 1533 times

----
i will sneak here this complementary issue of traveling block, most likely "wont fix" that would be fixed with "deferred fix block" :D
74614-removing-undpipe-changes-block-point.gif
74614-removing-undpipe-changes-block-point.gif (54.94 KiB) Viewed 1514 times

Re: [Dominik][0.17.66] Fluid mixing by lua create_entity{"pipe-to-ground"}

Posted: Tue Aug 20, 2019 2:21 pm
by Dominik
Added a check.
Building by script is just handled totally separately from building by hand...

Re: [Dominik][0.17.66] Fluid mixing by lua create_entity{"pipe-to-ground"}

Posted: Tue Aug 20, 2019 2:29 pm
by boskid
Dominik wrote:
Tue Aug 20, 2019 2:21 pm
Added a check.
Building by script is just handled totally separately from building by hand...
I know. In one of my tests i had to simulate true player's build action (74624) and found this (thanks Bilka):

Code: Select all

player.cursor_stack.set_stack{name="pipe-to-ground", count=1}
player.build_from_cursor{position=p, direction=dir}