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

Bugs that are actually features.
Post Reply
Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

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

Post 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?
I have mods! I guess!
Link

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post 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)

Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

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

Post 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.
Attachments
SchallMachineScaling_0.17.99.zip
(231.65 KiB) Downloaded 53 times
nanotorio_0.0.99.zip
(173.55 KiB) Downloaded 55 times
I have mods! I guess!
Link

Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

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

Post 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.
I have mods! I guess!
Link

Post Reply

Return to “Not a bug”