BuildRevert

Moved

Total Downloads: 718 - First Release: May 12, 2017 - Last Update: Jan 12, 2018

5/5, 5 likes
  1. nivex submitted a new resource:

    BuildRevert - Prevent building in blocked area.

    Read more about this resource...
     
  2. Grats. Way better solution then mine =D
     
  3. Wulf

    Wulf Community Admin

    This was in Slack back when the change came out, just nobody got around to posting it. :p
     
  4. I'we made mine in an hour, and I have no idea about plan.WorldSpaceBounds(). I hope nobody would mind if I'll take this to my solution =P
     
  5. @Vlad-00003 how does this differ from your solution?
     
  6. nivex updated BuildRevert with a new update entry:

    0.1.1

     
  7. lol... looks like no difference.... This one just more beautiful....
     
  8. Wulf

    Wulf Community Admin

    Remember, Lang API is a requirement for new plugins. Please add it so that the plugin meets the guidelines.
     
  9. It even uses the same radius as mine....
     
  10. i'm confused. i guess i will stick with your plugin? :D
    Edit1:
    @nivex you made some valid points, therefore switching for now.
     
    Last edited by a moderator: May 13, 2017
  11. This allows you to block each construction type instead of all of them; including ladders. I spent 20 minutes figuring out that radius by determining how close I could get the block to the priv before they met. I also put the radius in the center of where the building plan is placed on your screen (where the object will be built) to reduce error. A quick comparison of yours shows that yours isn't adjusted to the center of the screen, but veers off left about 25 degrees.

    I don't care what code of mine you use. This forum is for the community.
     
  12. @nivex 1 thing, when i allow everything to be placed, it still says "Building blocked" but you can place it, maby only say "BuildingBlocked" if you can't place it.. (Also can you allow us to edit the message and add formatting to it, for example "NotAllowedMessage": "<color=red>BuildingBlocked</color>")
    Another thing, when you are not allowed to place something such as a foundation, instead highlight it red, compared to the default orange.
     
  13. Ah, I will look into that. It shouldn't say you're blocked when you're not. Yes, you can customize the message as it uses the Lang API. Just edit the language file itself under /oxide/lang/en/BuildRevert.json. I'm not sure what you mean by highlight it red? What specifically?
     
  14. i will test more stuff tomorrow its getting late for me, i just had a quick test nothing major, i shall update you tomorrow.
    don't worry about the color thing i mentioned, pretty sure its a function built into rust for example this(Should work.):
    {
    "Building is blocked!": "<color=red>BuildingBlocked</color>"
    }

    edit: i sorry i misread that completely (Like i said it's late xD) you know when you have a building plan out the item you want to place is highlighted orange? i would like to be to RED if you are NOT allowed to place it
     
  15. I fixed the bug. I'll make the text red by default, but if you've already used the plugin then you'll need to delete the language file or edit it. I'll see about the orange highlight then post an update.
     
  16. nivex updated BuildRevert with a new update entry:

    0.1.2

     
  17. Wulf

    Wulf Community Admin

    Ah, you did have it already, it was using such as short method I missed it entirely. :p
     
  18. I will do further testing today when i have time, cheers guys.
     
  19. Good stuff, working perfect now, would be amazing if you could do what i said above where if you not allowed to place something the thing you're trying to place will be red instead of orange. (If you need visual help i can show you if you like?)
     
  20. Good to know. I know what you're talking about, but I couldn't figure out how to do it. :|