1. These plugins are out of date or are no longer supported by their developers. If you wish to update a plugin, you must create a new topic (in the event that you aren't the original developer) in the submissions forum. If you wrote it, you can PM an admin or report the post to move it back, as long as you include updated information with the request/report.
    Dismiss Notice

[1.12] Housing Districts new version

Discussion in 'Unsupported / Outdated Plugins' started by radishes, Sep 10, 2012.

  1. radishes

    Plugin Developer

    Joined:
    Dec 30, 2011
    Messages:
    148
    Housing Districts (1.6.4)

    I've forked the Housing Districts project and made some updates for TShock API 1.12.

    Plugin: https://github.com/downloads/radishes/Twitchy-s-Housing-Mod/HousingDistricts.dll
    Source: https://github.com/radishes/Twitchy-s-Housing-Mod

    Housing Districts v1.6.4 Changelog
    • The way that overlapping houses works has changed.
      • In previous versions, players could create overlapping houses. There was also a bug where a player would get spammed with chat messages when they stood in the overlapping area.
      • In this version, players may only overlap their own houses by default. Additionally, the chat spam bug has been fixed, and players now will see the correct enter/exit messages when moving through overlapping houses. While players are not able to create houses that overlap with other players' houses anymore, any existing houses that overlap are not affected and will still work the same as before.
        • A new config setting has been added, "OverlapHouses", defaulting to false. If you want to allow players to overlap each others' houses, set this to true (probably not a good idea.)
    • Moved the rest of the house enter/exit message strings into hconfig.json. Now you can customize all the messages players see when they enter or exit houses.
    Housing Districts v1.6.3 Changelog
    • Slightly changed some of the explanatory text again.
    • You can now configure the text that users see when they enter or leave another user's house. It's in hconfig.json.
    Housing Districts v1.6.1 Changelog
    • Updated to TShock API version 1.12.
    • Fixed various crashes resulting from deleting overlapping houses or deleting houses with a player inside.
    • Added basic help text to '/house' command.
    • Updated some of the explanatory text that users receive when they enter commands.
    --------------------------------------------------------------------------------

    Housing Districts plugin for TerrariaAPI[v1.12]
    (mostly pasted from ZeDingo's thread for his releases of this plugin.)

    Features:
    • Create a house (by rectangle) to protect your build.
    • Lock other players out of your house (they will be teleported back out.)
    • Add visitors that won't be locked out of your house, but can't build in it.
    • Add co-owners to your house who can build in it with you.
    • Chat that will only be heard by other players in the house (can be turned off in hconfig.json.)
    • Allow your users to protect their own builds! Users can only delete or adjust their own houses, freeing up your moderators for more important things.
    Commands:
    • /house set 1/2 - Sets the temporary points of the house you are defining, just like /region set 1/2
    • /house clear - Clears the temporary points you have set from memory
    • /house add <house_name> - Defines the house by the temporary points you've set, just like /region define
    • /house redefine <house_name> - Use after setting points. Changes the position and size of the house without needing to delete it and add it again.
    • /house delete <house_name> - Deletes a house from the database.
    • /house name - Hit a block to get the name of the house(s) the block is in. Same as /region name
    • /house list - Lists all houses in the database, 15 at a time.
    • /house chat <house> (on|off) - Toggles house chat for a specific house, owner only.
    • /house allow <player> <house_name> - Sets the owner(s) of a house, same as /region allow, with one difference: Owners can toggle /changelock
    • /house addvisitor <player> <house_name> - Adds a visitor to a house, who can enter your house while it's locked. Visitors are not allowed to build in said house.
    • /changelock <house_name> - Toggles the lock on the house, which is what teleports away intruders. Note: ONLY owners can change this. Admins do not inherently have the permission to do so.
    • /housereload - Reloads settings from the configuration file.
    Permissions:
    • sethouse - Access to /house commands used in defining or deleting houses, or adding owners. (Add this to your groups to allow them to add their own houses!)
    • edithouse - Allows group to edit houses they don't own. (For admins)
    • adminhouse - Bypasses owner checks for /house commands, like delete
    Setup a House:
    • Use /house set 1 and hit a block at the corner of the rectangle to be defined
    • Use /house set 2 and hit a block at the OPPOSITE corner of the rectangle to be defined
    • Use /house add <house_name> to define the new house.
    /house add now adds the person who used the command to the list of owners.

    Installation:

    1. Download Plugin (Link above)
    2. Extract to ServerPlugins ( same directory as TShockAPI.dll)
    3. After the server starts with Housing installed, it will generate a config file (hconfig.json)
    4. Change the values to what you want for your server (config has documentation built-in) and type /housereload in the console or from your admin character.
    Authors:
    Twitchy
    ZeDingo (since I finally did something other than update APIVersion)
    radishes (update for v1.12)

    Bugs:
    Overlapping houses cause a massive "Entered house" spam when in the overlap. fixed in v1.6.4.
     
    • Like Like x 3
  2. Ijwu

    Ijwu Level 11

    Joined:
    Apr 4, 2012
    Messages:
    647
    While I'm no longer doing much Terraria related, I'll say that I would want this plugin if I ran a server. An upgrade/bug-fix to 1.12 is definitely awesome and very useful. Very much something I would want to use.
     
  3. Alrof

    Alrof Level 4

    Joined:
    Jul 30, 2012
    Messages:
    63
    does it fix all the bugs?

    eg server crashing?
     
  4. radishes

    Plugin Developer

    Joined:
    Dec 30, 2011
    Messages:
    148
    "All" the bugs? Uh... well, I have no idea. It fixes all the crashes I've found. If it crashes for you, paste the error message here and a description of what you were doing when it crashed.

    Previously, v1.6.0 would crash when any player deleted a house that had any player inside of the house. That crash, and a couple more related crashes, are fixed.

    There is a bug I've noticed where this plugin responds to /region commands. Annoying but not a deal-breaker. I'll look at fixing that now.
     
    • Like Like x 2
  5. popstarfreas

    Plugin Developer

    Joined:
    Feb 27, 2012
    Messages:
    357
    Um im getting this when trying to set a house
    "Your house height is smaller than server minimum of 5blocks."
    "Width : 31, Height: 32. Points have been cleared"
    so im stuck
     
  6. radishes

    Plugin Developer

    Joined:
    Dec 30, 2011
    Messages:
    148
    Did you try to make a larger house?
     
    • Like Like x 1
  7. popstarfreas

    Plugin Developer

    Joined:
    Feb 27, 2012
    Messages:
    357
    Yes another example of what I tried:
    "your house height is smaller than the server minimum of 5blocks"
    "Width : 125, Height: 91. Points have been cleared"
     
  8. radishes

    Plugin Developer

    Joined:
    Dec 30, 2011
    Messages:
    148
    Dang, I haven't had this problem. I'll see if I can reproduce it.
     
    • Like Like x 1
  9. popstarfreas

    Plugin Developer

    Joined:
    Feb 27, 2012
    Messages:
    357
    I'll try redownloading.
     
  10. Alrof

    Alrof Level 4

    Joined:
    Jul 30, 2012
    Messages:
    63
    This is what happenes when there is no back wall
    (i think)
    because that happened to me :(
     
  11. popstarfreas

    Plugin Developer

    Joined:
    Feb 27, 2012
    Messages:
    357
    You could be right. The first area I tried had a bit with no wall and the second as well. Maybe some more testing
     
  12. Alrof

    Alrof Level 4

    Joined:
    Jul 30, 2012
    Messages:
    63
    Bugg report.

    When you type /region set 1/2

    and hit the block, the plugin broadcasts the following:

    Me: /region set 1
    me: hits a block
    Plugin: Top-left corner of house selected!
    Me: /region set 2
    me: hit a block
    Plugin: Top-left and Bottom-right points are now set, type /house add
     
  13. radishes

    Plugin Developer

    Joined:
    Dec 30, 2011
    Messages:
    148
    Yeah, thanks. I know about that bug. It's just a display bug though, it doesn't affect how House or Region work. House and Region share the same point selection system, so House responds to Region's commands. I've got a newer build that makes House quieter, so it doesn't confuse users with that message. I'll see about releasing the newer build.
     
    • Like Like x 1
  14. xKaMaSx

    xKaMaSx Level 2

    Joined:
    Dec 28, 2011
    Messages:
    35
    How I can edit showing on server messanges "Entered your house" and "Leaving your house" ?
     
  15. radishes

    Plugin Developer

    Joined:
    Dec 30, 2011
    Messages:
    148
    Look in tshock\hconfig.json for the NotifyOnEntry and NotifyOnExit settings.
     
    • Like Like x 1
  16. xKaMaSx

    xKaMaSx Level 2

    Joined:
    Dec 28, 2011
    Messages:
    35
    I have something like this :
    Code:
    {
      "NotifyOnEntry": true,
      "NotifyOnEntry_description": "Global setting: Notifies the owner of the house and the user who entered the house when the user enters.",
      "NotifyOnExit": true,
      "NotifyOnExit_description": "Global setting: Notifies the owner of the house and the user who exited the house when the user exits.",
      "HouseChatEnabled": true,
      "HouseChatEnabled_description": "Global setting: False completely disables house chat.",
      "MaxHouseSize": 5000,
      "MaxHouseSize_description": "Maximum house size (width*height).",
      "MinHouseWidth": 10,
      "MinHouseWidth_description": "Minimum house width, for protection from griefer use of /house.",
      "MinHouseHeight": 5,
      "MinHouseHeight_description": "Minimum house height, for protection from griefer use of /house.",
      "MaxHousesByUsername": 3,
      "MaxHousesByUsername_description": "Not yet implemented",
      "MaxHousesByIP": 3,
      "MaxHousesByIP_description": "Not yet implemented"
    }
    Where I can change it ?
     
  17. radishes

    Plugin Developer

    Joined:
    Dec 30, 2011
    Messages:
    148
    Set NotifyOnEntry and NotifyOnExit to false.
     
    • Like Like x 1
  18. xKaMaSx

    xKaMaSx Level 2

    Joined:
    Dec 28, 2011
    Messages:
    35
    But I don't want to disable it but edit this messanges. I don't want "Entered your house" but maybe "Welcome in my house". It is possible ?
     
  19. radishes

    Plugin Developer

    Joined:
    Dec 30, 2011
    Messages:
    148
    You would have to edit the source and recompile.
     
    • Like Like x 1
  20. xKaMaSx

    xKaMaSx Level 2

    Joined:
    Dec 28, 2011
    Messages:
    35
    Is here any tutorial how to do this ? Which program need to use ?