BuildingRestriction

Moved

Total Downloads: 894 - First Release: Sep 9, 2016 - Last Update: Sep 4, 2017

5/5, 12 likes
  1. We have players all the time complaining that they reached the triangle limit without building even 1 of them, usually we can resolve it but it's really work intensive, and we cannot work without the plugin either so very frustrating sometimes :D
     
  2. @Wulf

    Height restriction doesn't work correctly?

    {
    “Restrict build height (true/false)”: true,
    “Maximum build height”: 15,
    “Restrict foundations (true/false)”: true,
    “Maximum foundations”: 36,
    “Maximum triangle foundations”: 40,
    “Restrict tool cupboards (true/false)”: true,
    “Maximum tool cupboards”: 3,
    “Restrict water depth (true/false)”: true,
    “Maximum water depth”: 5.0,
    “Refund resources when restricted”: true
    }

    But after two walls on top of eachother, it says "Reached maximum build height (4 building blocks)

    With the following config it says “Reached maximum build height (7 building blocks)”:

    {
    “Restrict build height (true/false)”: true,
    “Maximum build height”: 21,
    “Restrict foundations (true/false)”: true,
    “Maximum foundations”: 36,
    “Maximum triangle foundations”: 40,
    “Restrict tool cupboards (true/false)”: true,
    “Maximum tool cupboards”: 3,
    “Restrict water depth (true/false)”: true,
    “Maximum water depth”: 5.0,
    “Refund resources when restricted”: true
    }
     

  3. Quote by Jakkee:
    A building block is 3units tall and needs to be multiplied it by 3, I think (Maybe?) I had this added in but @Wulf might of left it out when updating it.
    20 / 3 = 6.66 (Rounded down to 6).
    For now just change the max height to 60
     
  4. Wulf

    Wulf Community Admin

    That change was already made I thought.
     
  5. Yeah....I haven't used the plugin in a while, so it may have changed?......you would know better then I.....lol.

    But from Riddle's building max height reached config......would suggest it is still based on a 3x multiplier.
     
  6. Wulf

    Wulf Community Admin

    Might be that I had it reversed, will have to check.
     
  7. It also appears that buildings can be much higher when half walls are used..

    I've put this config on now:
    Code:
    {
      "Restrict build height (true/false)": true,
      "Maximum build height": 60,
      "Restrict foundations (true/false)": true,
      "Maximum foundations": 36,
      "Maximum triangle foundations": 40,
      "Restrict tool cupboards (true/false)": true,
      "Maximum tool cupboards": 3,
      "Restrict water depth (true/false)": true,
      "Maximum water depth": 5.0,
      "Refund resources when restricted": true
    }
    I can put 7 normal walls now on top of eachother, but people managed to get a 12-story high base by using half walls
     
  8. I still have it on "60" and now it says "Maximum height reached (20 building blocks)"

    I guess something changed again with last nights update :p
     
  9. Pretty sure it is still the same as before.....20 x 3 = 60
     
  10. Yeah, but the height was just 2 walls on top of eachother :p (sorry, see I didn't mention that before)
     
  11. I tested and debugged this Plugin now for a few weeks.
    3 Buggs to report:

    First: Foundations, sometimes in a weird case, u get a stupid high random number if you place some Foundations, as example, u've 30 Foundations, and the Plugin says u have over 700. Fix it!

    Second: Height; I set the Max to 5 Layers, so 15 Units of height, sometimes the Plugin gets 16 or 17 when u have a 5 (15) high wall and destroyes it then. Fix it!

    Third: In the Plugin it says: var FirstFoundation; thats not right, the plugin takes the LAST FOUNDATION you built as reference, so you can easy get over this Maximum!

    Fix it!
     
  12. Wulf

    Wulf Community Admin

    Pushed out a new version, though haven't been able to test it; just noticed I had something handled wrong compared to an old version of it. https://raw.githubusercontent.com/umods/BuildingRestriction/master/BuildingRestriction.cs
     
  13. @Wulf
    There's a bug somewhere for maybe bases on rocks or having non-same height foundations or still half height walls? People made this base (https://i.gyazo.com/ad24c1a8756ae3572e924891522c1ad1.jpg) but can't build higher. I tested it as well at their base, and get this: "You have reached the max building height (24 building blocks)". It's look like 5 or 6 stories to me

    https://i.gyazo.com/106dc39e7e70e3ce4d7c06da53e59b6e.jpg

    Code:
    "Maximum build height": 8,
    There is a small 1x1 on the roof that could be built, but When i try to build something on the roof next to it, it doesn't let me or anyone resultin in the above message

    Maybe it counts walls below the base on the rocks as well?

    And yes, latest version.

    Sidenote:
    I tried testing some builds and the 8 doesn't really looks like to be 8, but it accepts 9 stories high. The 10th gets blocked in normal circumstances
     
    Last edited by a moderator: Jun 1, 2018
  14. Wulf

    Wulf Community Admin

    Message is fixed, was just using the wrong value. Pretty sure it counts first foundation upward to the highest block.
     
  15. But i'm able to build a 1x1 with 9 stories (9 walls or 18 half walls) but this base doesn't seem to be 9 stories high to me...

    Is it including foundation? So that means it's 8 walls + 1 foundation = 9. Allright, but this base.. pretty weird. Cause they were able to build that 1x1 on top of the base, but building more on top of the base - so it's the same height as that 1x1 - doesn't work.
     
  16. Wulf

    Wulf Community Admin

    I don't think it was ever advertised as stories, so that sounds right to me.
     
  17. So, what does the "Maximum build height" actual mean then?
     
  18. Wulf

    Wulf Community Admin

    From first foundation to x amount of vertical distance in game I believe.
     
  19. Alright, people are also having issues repairing bases getting the "maximum height" message..