All forum data (this website) will be deleted unless you vote to keep the forum.

2.1 House Regions 1.2.2

Allows players to protect their houses with TShock regions.

  1. CoderCow

    CoderCow Level 6

    Joined:
    Aug 23, 2012
    Messages:
    150
    CoderCow submitted a new resource:

    House Regions - Allows players to protect their houses with TShock regions.

    Read more about this resource...
     
    • Winner Winner x 1
  2. callmenaniel

    callmenaniel Level 1

    Joined:
    Mar 23, 2017
    Messages:
    5
    you're my hero much love for the plugins!
     
  3. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    114
    Can you add a limitation for house size and quantity a player can create?
     
  4. callmenaniel

    callmenaniel Level 1

    Joined:
    Mar 23, 2017
    Messages:
    5
    it's already in there. look through the permissions page ;) From the page
    • houseregions.nolimits Can define houses without a maximum limit or size restrictions.
      The player limit is also specified in overview "The maximum amount of house regions per user...can be configured."
      Good luck!
     
    • Like Like x 1
  5. CoderCow

    CoderCow Level 6

    Joined:
    Aug 23, 2012
    Messages:
    150
    CoderCow updated House Regions with a new update entry:

    1.2.1 Update

    Read the rest of this update entry...
     
  6. CoderCow

    CoderCow Level 6

    Joined:
    Aug 23, 2012
    Messages:
    150
    CoderCow updated House Regions with a new update entry:

    1.2.2 Update

    Read the rest of this update entry...
     
  7. Hunter1213

    Hunter1213 Guest

    I have this annoying glitch. After using world edit on a house region, it broke. I could /house scan and see the house, but i couldn't delete it. I would be fine if the house wasn't active, but it is. Nobody can break tiles in the House, that according to house regions, didn't exist.
     
  8. LolKiller

    LolKiller Level 0

    Joined:
    Dec 1, 2019
    Messages:
    2
    Hi there.
    [​IMG]
    Happens because of...
    Code:
    // Find a free house index.
    int houseIndex;
    string houseName = null;
    for (houseIndex = 1; houseIndex <= maxHouses; houseIndex++) {
        houseName = this.ToHouseRegionName(user.Name, houseIndex);
        if (TShock.Regions.GetRegionByName(houseName) == null)
            break;
    }
    if (houseIndex == maxHouses)
        throw new LimitEnforcementException("Max amount of houses reached.");
     
  9. TyXD

    TyXD Level 0

    Joined:
    Mar 20, 2020
    Messages:
    1
    Whenever I run the server it gives me the error:
    [Server API] Error Startup aborted due to an exception in the Server API initialization:
    System.InvalidOperationException: Failed to load assembly "Plugin Common Lib 4.0.3.dll". ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
    at System.Reflection.RuntimeAssembly.GetExportedTypes()
    at TerrariaApi.Server.ServerApi.LoadPlugins()
    --- End of inner exception stack trace ---
    at TerrariaApi.Server.ServerApi.LoadPlugins()
    at TerrariaApi.Server.ServerApi.Initialize(String[] commandLineArgs, Main game)
    at TerrariaApi.Server.HookManager.InitialiseAPI()

    Does anyone know why? I followed the instructions and I get this error..
     
  10. LolKiller

    LolKiller Level 0

    Joined:
    Dec 1, 2019
    Messages:
    2
    Copy Newtonsoft.Json.dll from the server folder to the plugins folder