#Cricket's Pipes
1 messages · Page 1 of 1 (latest)
Check other building prototypes
the offsets have to be within 1 outside the box, and not on diagonals
it has to be on a clear "side"
So like {5, 4} or {4,5}
everyone tries to make a diagonal pipe the first time for some reason 🤷
No diagonals isn't obvious from examples.
yeah, it comes from teh way pipe connections actually work
So I'm in good company. Makes sense once it's pointed out.
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
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}
{-15, -16} is still outside of {-14.5,-14.5} in a diagonal
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.
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.
the actual positions end up getting snapped to the tile edges where pipe connections can be anyway