1. Mine did not load a .json do you know why this is? trying to make unlimited tp's for my server with no luck changing the Lua.
     
  2. because you don't change the lua but the configs if config/ :eek:
     
  3. Hmm for some reason the addon overwrites what I "tell" it.
    I have set the countdown for 5, but for some reason it still counts down from 15 sec. Anything I've missed in the config file?
    Code:
        "Homes": {
            "Countdown": 5,
            "UseFriendsAPI": true,
            "CheckFoundationForOwner": true,
            "LocationRadius": 25,
            "ForceOnTopOfFoundation": false,
            "Cooldown": 150,
            "DailyLimit": 15,
            "HomesLimit": 4
        },
        "TPR": {
            "Countdown": 5,
            "RequestDuration": 30,
            "DailyLimit": 15,
            "BlockTPAOnCeiling": false,
            "Cooldown": 150
        },
     
  4. Make sure that you reload the plugin after making modifications to the config file to load them.
     
  5. I tried to reload it now after I did changes, no difference. Normally I turn my server off, then do the changes and then start it up again.
    I notice that I also experience issues with the auto broadcast ignoring my messages and just broadcast the standard config created when downloaded... Something is fishy here...
    [DOUBLEPOST=1421708692,1421693585][/DOUBLEPOST]Okay I figure I will need help with this one...

    Scenario, I have now removed all other addons except the teleportation one.
    I have not touched the code at all. Clanforge is updated with version 1.4.1 (which is the newest one afaik)
    Even when I haven't touched the code I get a 15sec countdown 'til the teleport and I get 8 mins of cooldown afterwards.

    Any idea what's wrong? I am completly lost. Is there some config I have missed?

    Code:
    {
        "Settings": {
            "InterruptTPOnHurt": true,
            "HomesEnabled": true,
            "ChatName": "Teleportation",
            "ConfigVersion": "1.4.1",
            "TPREnabled": true
        },
        "AdminTP": {
            "AnnounceTeleportToTarget": false,
            "TeleportNearDefaultDistance": 30,
            "UseableByModerators": true,
            "LocationRadius": 25
        },
        "Homes": {
            "Countdown": 5,
            "UseFriendsAPI": true,
            "CheckFoundationForOwner": true,
            "LocationRadius": 25,
            "ForceOnTopOfFoundation": true,
            "Cooldown": 300,
            "DailyLimit": 5,
            "HomesLimit": 2
        },
        "TPR": {
            "Countdown": 5,
            "RequestDuration": 30,
            "DailyLimit": 5,
            "BlockTPAOnCeiling": true,
            "Cooldown": 300
        },
    
    (PS, had to shorten down code, I crossed 10k mark in signs)
     
  6. You haven't missed a thing, editing the config and then reloading the plugin (or restarting the server) should do the trick. Do you have this with all your plugins or only with a few?
     
  7. I getting this error from time to time:

    Code:
    [Oxide] 6:13 PM [Error] m-Teleportation: [string "m-Teleportation.lua"]:2527: Object reference not set to an instance of an object
      at UnityEngine.StringExtensions.QuoteSafe (System.String str) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    Just FYI....

    This plugin ROCKS! Thank YOU!
     
  8. Thanks for the kind words and regarding the error, can't say I encountered that one before but I'll look into it.
     
  9. is the location save work?
     
  10. Admins should be able to save locations yes, these are only for the admin that saves them though.
     
  11. How to NOT allow other players to set home on others foundations?
     
  12. You Should be able set this in the config, keep in mind that you need the buildingowners plugin for this. The friends api is also supported to allow sethome on the foundations of friends. The config value that you needs to be true is "
    CheckFoundationForOwner"
     
  13. So leave friendsAPI to false, set CheckFOundationForOwner to True and get the buildingowners plugin?
     
  14. Yep, buildingsowners is required because Rust does not save who placed a specific building object in the world. Do keep in mind that you will have to set the owner of all existing buildings manually.
     
  15. SaveLocation() always saves wrong coordinates.
     
  16. ULTRA FAST and no brain fucking teleportation:
    Code:
    function PLUGIN:Teleport( player, destination )
        player:StartSleeping()
        player.transform.position = destination
        newobj = util.TableToArray( { destination } )
        util.ConvertAndSetOnArray( newobj, 0, destination, UnityEngine.Object._type )
        player:ClientRPC(nil,player,"ForcePositionTo",newobj)
        player:TransformChanged()
        player:SetPlayerFlag( global.PlayerFlags.ReceivingSnapshot, true )
        player:UpdateNetworkGroup()
        player:SendFullSnapshot()
    end
    
    i would recommand adding a StartSleeping before the teleportation, to make sure players don't fall when teleported.
     
    Last edited by a moderator: Jan 24, 2015
  17. Code:
    [1/25/2015 7:12:51 AM] [Oxide] 7:12 AM [Error] m-Teleportation: [string "m-Teleportation.lua"]:2445: attempt to index field 'Single' (a nil value)
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
     
  18. Hey guys.

    Updated Oxide and restarted my server, now I have this error, tried reloading the plugin multiple times, even downloading and re-installing it, to no avail.

    Error is the same as above (just about hit post when it loaded so I took my error code out)

    Thanks again guys!
     
  19. Code:
    [1/25/2015 7:15:51 AM] [Oxide] 7:15 AM [Error] Failed to run a timer. (LuaScriptException: [string "m-Teleportation.lua"]:2634: attempt to index field 'Int32' (a nil value))
    [1/25/2015 7:15:51 AM] [Oxide] 7:15 AM [Debug]   at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 
      at NLua.LuaFunction.Call (System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 
      at NLua.Method.LuaDelegate.CallFunction (System.Object[] args, System.Object[] inArgs, System.Int32[] outArgs) [0x00000] in <filename unknown>:0 
      at LuaGeneratedClass1.CallFunction () [0x00000] in <filename unknown>:0 
      at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0 
     
  20. After a complete fresh install the teleport doesn't seem to be working with the current version.