BuildingWrapper

Automatically wrap buildings in a zone

Total Downloads: 772 - First Release: Mar 25, 2016 - Last Update: Feb 18, 2017

5/5, 10 likes
  1. You can try setting the buffer to zero, or even a negative number.
     
  2. [Oxide] 15:30 [Error] Failed to call hook 'cmdChatDelegator' on plugin 'BuildingWrapper v0.1.3' (NullReferenceException: Object reference not set to an instance of an object)

    On re-wrap, wrap still works.
     
  3. Can you provide some more details? What command were you running, and what were you rewrapping?
     
  4. The code edit doesn't work on newest ZoneConfig, rotation doesnt change even base on player, fixed to same angle.
     
  5. I've tested BuildingWrapper with the latest ZoneManager and didn't see any issues with it - are you sure you implemented the changes properly?
     
  6. Hmm, i edited in the code for wrapper, but I may have fucked something up. I'll try again later. if you don't hear anything else from me, assume I fucked up, lol.
     
  7. ok so... aparantly I edited ZoneManager on my PC, and never moved the edited version onto the server xD
     
  8. That would do it :)
     
  9. Any chance there could be a command to remove a building from the wrap if it's been swallowed up by a nearby building's wrap? Unfortunately rewrap wont remove the additional building.
     
  10. Have you tried just using wrap? You should be able to do /bw wrap [zoneid] and pass the existing zone ID as the [zoneid] parameter, and it will wrap the building you're looking at just like you are initially wrapping it, and moving the existing zone. (Don't forget to include the sphere/box and buffer parameters if you need them)

    Please note that there is a 3 meter range hard-coded into the logic which gathers the building bounds, so if you have two buildings which are less than 3m apart, they will likely be wrapped together.
     
  11. Only tried rewrap, just remade the zone in the end, will keep that in mind in future, thanks
     
  12. hi !
    Can you do, like a visual wrap?! ... like domes (spheres), but squares.
    Thanks!
     
  13. That would be a modification of zone domes, youd need to ask in the zone domes page
     
  14. ignignokt84 updated BuildingWrapper with a new update entry:

    0.1.4

     
  15. ignignokt84 updated BuildingWrapper with a new update entry:

    0.1.5

     
  16. Question. Where exactly in the ZoneManager.cs file am I supposed to add the additional code?
     
  17. In the procedure UpdateZoneDefinition - search for case "rotation" and replace the block with the new code:

    Code:
    // original rotation handling code - replace this entire block with the new code
      case "rotation":
        zone.Rotation = player?.GetNetworkRotation() ?? Vector3.zero;/* + Quaternion.AngleAxis(90, Vector3.up).eulerAngles*/
        zone.Rotation.x = 0;
        editvalue = zone.Rotation;
        break;
     
  18. Thank you.
     
  19. @ignignokt84 I added the rotation stuff to latest ZoneManager update
     
  20. Lovely, thank you!