Page 1 of 1
pipe-to-ground with no collision box gives connection error
Posted: Wed Mar 05, 2014 2:59 am
by sparr
When I set collision_box = {{0, 0}, {0, 0}} on a pipe-to-ground type entity and try to load it, I get the following error:
Code: Select all
Error while loading prototype "underground-pipe": Invalid pipe connections specification for offset [0, -1].
My guess is that the connection code references the center of the collision box, and the center code doesn't like a zero-size collision box.
Re: pipe-to-ground with no collision box gives connection er
Posted: Wed Mar 05, 2014 11:18 am
by immibis
It looks like the offset has to be on the north, south, east or west of the bounding box. With a zero size bounding box, there are no valid offsets. It does this to calculate the direction the pipe is facing. Maybe in the future there'll be a way to specify the direction instead of making Factorio compute it.
Edit: If you want this, make a topic in
modding interface requests.
Re: pipe-to-ground with no collision box gives connection er
Posted: Wed Mar 05, 2014 1:52 pm
by kovarex
Why do you want 0 collision box anyway? If you want it to not collide with buildings, change the collision mask.
Re: pipe-to-ground with no collision box gives connection er
Posted: Wed Mar 05, 2014 3:10 pm
by sparr
Actually, I wanted it to not collide with the player. I didn't even realize that not colliding with buildings was an option! The collision_mask is something I had overlooked because it is used in so few places. Setting it to empty seems to have at least the desired effect. I will have to investigate what each of the collision_mask layers do so I can figure out what to put there.