Smart Homes

Control your home and make it smart

Total Downloads: 1,999 - First Release: Aug 8, 2016 - Last Update: Mar 17, 2017

5/5, 5 likes
  1. Using latest stable release of rust, latest oxide and latest version of your plugin.

    (12:15:17) | [Oxide] 12:11 [Error] Failed to call hook 'SwitchElement' on plugin 'SmartHomes v0.4.0' (KeyNotFoundException: The given key was not present in the dictionary.)
     
  2. When did this happen? SwitchElement is a huge function so im going to need a little more information ;)
     
  3. Haha my apologies. /rem > Object Menu, when I click Lights or Turrets, it makes the menu close and I get that error in the console. Shoulda been more detailed, my apologies.

    Doors and Furnaces work fine
     
  4. Do you have any doors or lights by chance? Im looking at the code and it should be working.
     
  5. Code:
    {
      "data": {
        "76561198003588194": {
          "hashome": true,
          "x": 1306.38379,
          "y": 13.0132751,
          "z": 75.1732941,
          "turrets": {
            "1": {
              "name": "Back Right 1",
              "x": 1353.826,
              "y": 11.1652164,
              "z": 96.02717
            },
            "2": {
              "name": "Back Right 2",
              "x": 1352.88635,
              "y": 11.1652145,
              "z": 97.139595
            },
            "3": {
              "name": "Back Right 3",
              "x": 1353.54382,
              "y": 11.1652145,
              "z": 98.4131
            },
            "4": {
              "name": "Right 1",
              "x": 1338.907,
              "y": 14.3952913,
              "z": 108.717094
            },
            "5": {
              "name": "Right 2",
              "x": 1337.72778,
              "y": 14.3952913,
              "z": 108.174568
            },
            "6": {
              "name": "Right 3",
              "x": 1337.18176,
              "y": 14.3952923,
              "z": 109.384
            },
            "7": {
              "name": "Front Right 1",
              "x": 1300.67957,
              "y": 10.2260532,
              "z": 105.821892
            },
            "8": {
              "name": "Front Right 2",
              "x": 1299.81873,
              "y": 10.2260542,
              "z": 104.998505
            },
            "9": {
              "name": "Front Right 3",
              "x": 1298.54041,
              "y": 10.2260561,
              "z": 104.909363
            },
            "10": {
              "name": "Front 1",
              "x": 1282.62878,
              "y": 7.59550142,
              "z": 82.7727356
            },
            "11": {
              "name": "Front 2",
              "x": 1281.23962,
              "y": 7.595503,
              "z": 82.60577
            },
            "12": {
              "name": "Front 3",
              "x": 1280.28162,
              "y": 7.59550333,
              "z": 80.86149
            },
            "13": {
              "name": "Front 4",
              "x": 1282.29028,
              "y": 7.595502,
              "z": 80.64175
            },
            "14": {
              "name": "Left 1",
              "x": 1253.937,
              "y": 6.77567959,
              "z": 38.0614929
            },
            "15": {
              "name": "Left 2",
              "x": 1254.58582,
              "y": 6.77567863,
              "z": 36.10831
            }
          },
          "lights": {
            "1": {
              "name": "Inside 1",
              "x": 1309.14307,
              "y": 12.8794069,
              "z": 68.2649155
            },
            "2": {
              "name": "Inside 21",
              "x": 1304.264,
              "y": 12.8794069,
              "z": 70.79243
            },
            "3": {
              "name": "Inside 3",
              "x": 1307.58411,
              "y": 12.8794117,
              "z": 75.18222
            },
            "4": {
              "name": "Inside 4",
              "x": 1313.13562,
              "y": 12.879406,
              "z": 70.42563
            },
            "5": {
              "name": "Inside 5",
              "x": 1315.79187,
              "y": 12.7076025,
              "z": 71.84721
            },
            "6": {
              "name": "Inside 6",
              "x": 1310.45935,
              "y": 12.8794088,
              "z": 75.205246
            },
            "7": {
              "name": "Inside 7",
              "x": 1315.52014,
              "y": 12.8794079,
              "z": 76.5592346
            },
            "8": {
              "name": "Inside 8",
              "x": 1310.98083,
              "y": 12.8794069,
              "z": 79.79883
            },
            "9": {
              "name": "Inside 9",
              "x": 1318.466,
              "y": 12.8794012,
              "z": 65.41798
            },
            "10": {
              "name": "Inside 10",
              "x": 1317.17053,
              "y": 12.8794041,
              "z": 63.4346046
            },
            "11": {
              "name": "Inside 11",
              "x": 1320.34021,
              "y": 12.879406,
              "z": 68.26162
            },
            "12": {
              "name": "Inside 12",
              "x": 1322.14331,
              "y": 12.8794041,
              "z": 70.07838
            },
            "13": {
              "name": "Inside 13",
              "x": 1323.68579,
              "y": 12.8794079,
              "z": 72.57047
            },
            "14": {
              "name": "Inside 14",
              "x": 1326.98022,
              "y": 12.8794,
              "z": 74.74827
            },
            "15": {
              "name": "Inside 15",
              "x": 1329.20239,
              "y": 12.8793993,
              "z": 75.68498
            },
            "16": {
              "name": "Inside T 1",
              "x": 1316.45935,
              "y": 9.190502,
              "z": 66.46789
            },
            "17": {
              "name": "Inside T 2",
              "x": 1318.80859,
              "y": 9.1645565,
              "z": 70.2131348
            }
          },
          "furnaces": {},
          "doors": {
            "1": {
              "name": "Hunting Stand",
              "x": 1270.70984,
              "y": 0.239320755,
              "z": -38.58521
            },
            "2": {
              "name": "Left",
              "x": 1301.75842,
              "y": 6.90601444,
              "z": 68.33121
            },
            "3": {
              "name": "Right",
              "x": 1311.32239,
              "y": 6.90601349,
              "z": 83.58005
            },
            "4": {
              "name": "Attic",
              "x": 1314.96191,
              "y": 12.8060141,
              "z": 72.44429
            },
            "5": {
              "name": "Attic Outer Door",
              "x": 1320.36816,
              "y": 12.9060116,
              "z": 72.59473
            },
            "6": {
              "name": "Bedroom Attic",
              "x": 1334.69189,
              "y": 18.8060055,
              "z": 81.31703
            },
            "7": {
              "name": "Bedroom Roof",
              "x": 1336.28589,
              "y": 21.8060055,
              "z": 83.8585052
            }
          }
        }
      }
    }
     
  6. Hmmm. I'll look into it soon.
     
  7. Great idea! It excited people on my server. Couple things I found.

    - When I turn on a furnace, the off button doesn't work to turn it off. The furnace button turns it off though.
    - It interferes with my chat plugins I guess. Possibly ufilter and it causes duplicate chat messages. I can't see why this plugin would.

    Otherwise great idea!
     
  8. The furnace thing is weird. I'll take a look when I can.
    The chat message issue i'll have to find a work around. Probably gonna have to deal with seeing your object name is chat :p
    Also just a question for you. Are you able to interact with the Lights and Turret menu?
     
  9. I think it was hard to see the feedback in chat because it was behind the interface anyway. If there's a way to show it in that interface I think it might be more understandable for players.

    I didn't test them. I only tried the furnace. If you need me to in order to help improve the mod I will.
     
  10. Awesome mod, I love the updated version too!

    A couple of suggestion for your next update:

    -Add a confirmation message for the Create New Home button. (I lost my setup with a stupid misclick, doh!)
    -Add some text based toggles, like /LightsOff or /LightsOn, etc, that can be triggered from chat.

    I am not a coder, so those suggestions may be chucked out on the basis of being too bloody difficult, but I figured no harm in mentioning them.

    Cheers!
     
  11. Confirmation message should be simple enough. The text based toggles might be a future update as i'll have to add a few things ;)
     
  12. Right. Fixed any Key Errors with the menus, didnt detect the furnace glitch myself. Added a quick little fix for something I found myself. Currently working on the confirm :p
     
  13. DylanSMR updated Smart Homes with a new update entry:

    0.5.0

     
  14. (13:15:38) | Failed to initialize plugin 'SmartHomes v0.5.0' (NullReferenceException: Object reference not set to an instance of an object)


    with latest version
    [DOUBLEPOST=1489774683][/DOUBLEPOST]

    nevermind. deleted all files and tried again and it worked :)
     
  15. Now the turrets and lights have the issue when you click your lights or your turrets the menu just closes
     
  16. Check chat. Only reason it should close is if you dont have any turrets/lights/objects/etc.
     
  17. No error or msg out putted
     
  18. If there is no error nor message in chat i'm not sure what the issue. Before I released the last version I deleted my data, config, and lang to confirm. Works just fine for me.
     
  19. Maybe I've done something wrong, but it seems as though the Object menu only works if the player or group is given all 4 permissions as opposed to just one. I was able to create a new home, create a door to control in the home, and I gave myself only the smarthomes.door permission but when clicking 'Your Doors' it tells me I don't have permissions. After giving myself ALL permissions, I was able to open and close the door successfully.
     
  20. After restarting my server, I can still open the menu but as soon as I click in the Objectmenu (on "Your Turrets" for example) the menu simply closes. But only if I added before the restart an objekt. Does anyone know how to solve this?