Layers for build placement

Discussion in 'Mod Discussions' started by cola_colin, August 4, 2015.

  1. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    So an energy storage can be placed on WL_AnyHorizontalGroundOrWaterSurface

    So why can I not build it in some shoreline areas? It's okay on water and okay on land, but on some shore regions for no reasons I can come up with it cannot be placed. The build placement API just tells me "not pathable" for these regions.

    [​IMG]
    xankar likes this.
  2. crizmess

    crizmess Well-Known Member

    Messages:
    434
    Likes Received:
    317
    I'm pretty sure they did something like:
    GroundAndWaterSurfacePlaceable = placeableHereOnGround(x) || placeableHereOnWater(x);

    The problem is that on the coastline both expressions will return false. It is neither completely placeable on ground nor completely placeable on water.
    I call this thing a false decomposition. I've seen this a few times in programs, usually you do this intentionally because it is computationally cheaper to evaluate the false decomposition than to compute the correct expression (placeableHereOnGroundAndWater()) ... and you can live with the error you introduced.
  3. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    I think this is correct behaviour, cause you have a model for land and a model for water.
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Imho the model for water would like fine in this scenario.
    Question is: Is there any kind of layer I could put in so a building can be build there?
  5. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    There are areas that speak against the theory of false decomposition.
    [​IMG]

    Around that area there is no place where I cannot place it. The transition is without any dead area.
    stuart98 and crizmess like this.
  6. crizmess

    crizmess Well-Known Member

    Messages:
    434
    Likes Received:
    317
    Yep. Looks like there is a bit more behind it.
    stuart98 likes this.

Share This Page