#Cricket's Pipes

1 messages · Page 1 of 1 (latest)

bright abyss
#

🧵

untold sage
#

Check other building prototypes

bright abyss
#

the offsets have to be within 1 outside the box, and not on diagonals

#

it has to be on a clear "side"

untold sage
#

So like {5, 4} or {4,5}

cursive bolt
#

Multi-tasking, didn't see the thread.

#

4,5 worked. Clear side makes sense. Thanks!

bright abyss
#

everyone tries to make a diagonal pipe the first time for some reason 🤷

cursive bolt
#

No diagonals isn't obvious from examples.

bright abyss
#

yeah, it comes from teh way pipe connections actually work

cursive bolt
#

So I'm in good company. Makes sense once it's pointed out.

untold sage
#

Consider setting your pipe connections where it'll make sense for players to use

#

Try to come up with a couple of tilable designs and see if it turns out the way you find pleasing

#

Lets say in SeaBlock there are some 5x5 buildings near the start where the 2 outputs (with different fluids) are on the far ends of one side, meaning you can't put them right next to each other. If it was on slots 2 and 4 instead of 1 and 5, it would allow closer building.

#

But if the 2 outputs are for the same fluid, it actually makes sense to put them at those spots, because then you can put the buildings next to each other, and connect with a simple pipe i.e. underground-pipe-pipe-underground

cursive bolt
#

Yep, I swear at those electrolysers often.

#

Sigh, there's a typo somewhere.
v.selection_box = {{-15,-15},{15,15}}
v.collision_box = {{-14.5,-14.5},{14.5,14.5}}
...
pipe_connections =
{ { type="input",
position = {-15,-16}

Error: invalid pipe connections spec for ofseet [-15,-16}

untold sage
#

{-15, -16} is still outside of {-14.5,-14.5} in a diagonal

cursive bolt
#

Rounding error?
0,-16 ...still complains offset isn't ouside.

#

Checking: All measurements are in tiles, counted from middle of the box?

#

0,15 ran, but I don't see the port.

#

There it is, tiny blue arrow, hiding.

untold sage
#

-16 is more than 1 outside of -14.5

#

try -15.5

cursive bolt
#

position = {0,-15} worked

#

So did -15.5. First is tiny bit easier to type.

#

Next:

  • Make a png for 31x31 entity, so it's easier to see fluid connections.
  • Add many connections to each side.
  • Make recipe that has multiple fluids, and learn how to assign them. Some fluids will have multiple outlets, since it's to replace a block that makes 6k/s hydrogen.
  • Lunch. Taht should be first.
#

tiny steps.

bright abyss
#

the actual positions end up getting snapped to the tile edges where pipe connections can be anyway