1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

[1.11] Housing Districts

Discussion in 'Unsupported / Outdated Plugins' started by ZeDingo, Jan 21, 2012.

  1. ZeDingo

    ZeDingo Level 2

    Joined:
    Jan 14, 2012
    Messages:
    32
    That was on my to-do list already. My server wrote READ THE SIGNS in blocks at the spawn and the mods refuse to help anyone with it other than "You should've read the signs."
     
  2. atom0s

    Plugin Developer

    Joined:
    Feb 9, 2012
    Messages:
    75
    Yea mine is too, I wired up active blocks on a 1 second trigger to flash READ THE SIGNS for that same reason lol.
     
  3. DankBud

    DankBud Level 8

    Joined:
    Jul 23, 2011
    Messages:
    228
    Thank's for picking this back up. Ill start using this again, i hope you will continue for a while ;)
    Door lock would be cool, say for instance only people on the allowed list can open the doors in the house.

    Edit. Crashes on /house delete
    Hope you can fix it :(
     
  4. DarkOS

    DarkOS tShock supporter and programming hack.

    Joined:
    Aug 17, 2011
    Messages:
    849
    any word if this runs well on 3.8?
     
  5. Draxter

    Draxter Level 0

    Joined:
    Jan 8, 2012
    Messages:
    4
    yes, does still work on 3.8, but..
    There is a bug that prevents /house add and /house lock commands from working when 'player entered' notifications are disabled
     
  6. DarkOS

    DarkOS tShock supporter and programming hack.

    Joined:
    Aug 17, 2011
    Messages:
    849
    ah good to know. thanks draxter
     
  7. EpicMuffin

    EpicMuffin Level 0

    Joined:
    Feb 26, 2012
    Messages:
    2
    Housename is not escaped a " ' " in Housename example: Muffin's House result in a Syntax error on the mysql Server. This can be used to send arbitrary queries to the databaseserver.
     
  8. BashOrgRu

    BashOrgRu Level 0

    Joined:
    Mar 22, 2012
    Messages:
    1
    NullReferenceException when deleting house with player inside. Btw, when i set rectangle and add house, bottom of house not protected. Also, if the house's name has spaces, this house can't be used in commands. And it would be nice to add a command to delete owners and visitors. Also, if owner not first, he can't enter to locked house and need adding him as visitor.
     
  9. Knyk

    Knyk Level 0

    Joined:
    Apr 3, 2012
    Messages:
    1
    Hey Guys,
    Is it a bug that an owner of a house is kicked out of it when it is locked?
    Shouldn't owners always be able to enter their houses or have I misunderstood it?
     
  10. popstarfreas

    Plugin Developer

    Joined:
    Feb 27, 2012
    Messages:
    357
    needs updating :( i get errors and crashes i will post if someone will update this
     
  11. Eric

    Eric Level 1

    Joined:
    Nov 9, 2011
    Messages:
    7
    The housing districts plugin is not working right for me. The /region command is overriding it so that every time I make a /house it becomes a region and doesn't work properly. How do I fix this?
     
  12. Wolfe

    Wolfe Level 9

    Joined:
    Jan 3, 2012
    Messages:
    386
    I get crashes alot when running this plugin... I get this crashlog report:

    System.NullReferenceException: Object reference not set to an instance of an object.
    at HousingDistricts.HTools.OwnsHouse(String UserID, String housename)
    at HousingDistricts.HousingDistricts.OnUpdate()
    at System.Action.Invoke()
    at Hooks.GameHooks.OnUpdate(Boolean pre)
    at Terraria.Main.DedServ()
    at Terraria.ProgramServer.Main(String[] args)
     
  13. Guiyran

    Guiyran Level 2

    Joined:
    Apr 17, 2012
    Messages:
    29
    Might I make a feature request if your still developing this? Would be awesome to be able to define a warp point for each house that they get sent to when trying to enter the locked house. It likes to warp intruders 10 times through the house before returning to spawn. Sometimes the intruder stops in the middle of the house and stays there as long as he/she does not move.


    Does it crash when you do something perticular? So far its working with my version 3.8.0.304 tshock.

    If you just type /house it tells you the proper command is /region, but when I type '/house set' it then tells me the proper syntax is /house set 1 or /house set 2. Perhaps this was your problem.
     
  14. Wolfe

    Wolfe Level 9

    Joined:
    Jan 3, 2012
    Messages:
    386
    It seems like it just happens randomly with house commands. For example, someone on my server typed "/house set 1" and it crashed. Yesterday I typed "/changelock WolfsHouse" and it crashed. It doesn't seem to be any particular command, just any house command.
     
  15. Guiyran

    Guiyran Level 2

    Joined:
    Apr 17, 2012
    Messages:
    29
    After trying a bunch of stuff I was able to replicate this crash by deleting any house while any player was inside it. It crashed on every attempt, but still deletes the house.
    I tried creating multiple houses and deleting the one I'm not in. No crash.
    I tried many diferent combonations of /house set 1, but was unable to generate a crash.

    The first crash(Error*. It seemed not to have crashed)I generated was the wierdest one. I attempted a /changelock on a house I'm sure I had ownship to and it said I was not an owner, but I was able to walk into the house. Two /house delete commands later it generated this:

    Command: ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
    at HousingDistricts.HCommands.House(CommandArgs args)
    at TShockAPI.Command.Run(String msg, TSPlayer ply, List`1 parms)

    I have not been able to replicate this error, and so far I have only been able to generate Wolfe's crash when deleting houses in the manner I described.

    Is anyone else getting Wolfe's crash?

    You should post them anyhow. It never hurts. It can only help.
     
  16. Wolfe

    Wolfe Level 9

    Joined:
    Jan 3, 2012
    Messages:
    386


    So, your saying that I shouldn't try to delete a house with someone in it, correct?
     
  17. Guiyran

    Guiyran Level 2

    Joined:
    Apr 17, 2012
    Messages:
    29
    That is a safe thing to do. It crashed every single time I attempted a delete with any player(not just myself) inside a house region.

    Just make sure nobody is inside, and let your users know not to stand inside a house when deleting it(if they have access to commands for it). Crashing a server is no fun.
     
  18. Wolfe

    Wolfe Level 9

    Joined:
    Jan 3, 2012
    Messages:
    386
    Very true. :D
     
  19. Eric

    Eric Level 1

    Joined:
    Nov 9, 2011
    Messages:
    7
    I know about that. It doesn't make any difference. Once I set a house it goes into the region list.
     
  20. Guiyran

    Guiyran Level 2

    Joined:
    Apr 17, 2012
    Messages:
    29
    The /region set 1/2 and /house set 1/2 are indeed interchangeable when setting vectors(because the temp vectors are stored in the same place I'm assuming), but the /house and /region commands themselves are not, and they write to separate tables in the tshock sqlight/mysql DB. /region add can not be substituted for /house add, and /house define will not work in place of /region define.

    If you are setting your houses with the /house add <name> and it is ending up in the region table in your database then I suggest re downloading the plugin to make sure you have the correct version. I would update Tshock as well. If you continue to have this issue then maybe you have plugin conflicts. You could always manually input the housing regions into the DB.