Page 1 of 1

[0.17.79] Fluid box offset + collision box issue in prototype

Posted: Thu Feb 06, 2020 10:46 pm
by Honktown

Code: Select all

  16.869 Error ModManager.cpp:1332: Error while loading entity prototype "boiler-MS-2" (boiler): Invalid pipe connections specification for offset {-2.0000000000, -1.0000000000}. The offset must be outside of the entity bounding-box
Doing a data-final-fixes serpentblock of an entity with two incompatible mods as optional dependencies of a third:

Code: Select all

  collision_box = {
    {
      -1.3599999999999999,
      -0.85999999999999996,
      x = -1.3599999999999999,
      y = -0.85999999999999996
    },
    {
      1.3599999999999999,
      0.85999999999999996,
      x = 1.3599999999999999,
      y = 0.85999999999999996
    }
  },
Pipe:

Code: Select all

      {
        position = {
          -2,
          -1,
          x = -2,
          y = -1
        },
        type = "input-output"
      },

Code: Select all

  selection_box = {
    {
      -1.5,
      -1,
      x = -1.5,
      y = -1
    },
    {
      1.5,
      1,
      x = 1.5,
      y = 1
    }
  },
|-2| > |-1.4| and |-1| > |-.86|. Is there a minimum outside offset?

Re: [0.17.79] Fluid box offset + collision box issue in prototype

Posted: Fri Feb 07, 2020 5:10 pm
by posila
Can you post the mod(s), please?

(Problem is actually the first pipe connection defined, not the one that it says is the problem)

Re: [0.17.79] Fluid box offset + collision box issue in prototype

Posted: Fri Feb 07, 2020 8:03 pm
by Honktown
These two mods should be enough, hopefully. They're edited from the originals because the originals have unpatched bugs.

Edit: didn't change the info for nanotorio. Using those zips directly will cause an error, if you haven't seen it already.

Re: [0.17.79] Fluid box offset + collision box issue in prototype

Posted: Wed Apr 29, 2020 10:00 pm
by Honktown
This can be moved to "not a bug". I found nanotorio is incorrectly scaling collision boxes, which puts the correct pipe placement outside of the entity in a bad spot, (a diagonal). Rseding pointed out where the error message came from, which made the issue clear.