1. ok. thx... i get still this error
    Code:
    [Oxide] 7:38 PM [Error] Failed to run a timer. (LuaScriptException: [string "m-T
    eleportation.lua"]:2496: attempt to call method 'WriteUInt' (a string value))
     
    Last edited by a moderator: Feb 2, 2015
  2. page 21, and read previous posts plz
     
  3. I am using the one which Reneb Attached in page 21, fourth message from down to top. It seems to work fine no more error in console as well as users being able to have the cooldown working and not any issue from the past hour (with server full).
     
  4. Code:
    [Oxide] 6:23 PM [Error] Failed to run a timer. (LuaScriptException: [string "m-Teleportation.lua"]:2496: attempt to call method 'WriteUInt' (a string value))
    [Oxide] 6:23 PM [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
     
    Last edited by a moderator: Feb 1, 2015
  5. page 21, and read previous posts plz
     
  6. Code:
    9:56 AM [Error] Failed to run a timer. (LuaScriptException: [string "m-Teleportation.lua"]:2496: attempt to call method 'WriteUInt' (a string value))
    9:56 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
    9:57 AM [Error] Failed to run a timer. (LuaScriptException: [string "m-Teleportation.lua"]:2496: attempt to call method 'WriteUInt' (a string value))
    9:57 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
    How i can fix it? Flood in my server console
     
    Last edited by a moderator: Feb 2, 2015
  7. page 21, and read previous posts plz
     
    Last edited by a moderator: Feb 2, 2015
  8. good day,

    I know you are working hard but is there any news for updated release because currently admin tp is buggy

    When I teleport to somebody for assit, I can not wakeup there and as a ADMIN I am sending /tpr to the players because it's only way to teleport them + wakeup without anyproblem
     
  9. the wakeup is rust bug that garrry just released a fix for in the next update
     
  10. nope I am not talking about common wake up problem which happen constantly

    I am talking about teleport system.

    I do not have problem with tpr or teleport to home
    problem is admin command tp

    when you use tp to other player %70 percent you can not wake up
     
  11. there is 0 difference between those teleportations, they ALL use the same way.
    no the problem is from rust, and needs to be fixed.
    just use the teleportation again from the console (teleport.toplayer PLAYER)
    and you will see you will be able to wakeup
     
  12. Hi. Can you make that admins can teleport players to saved tpl location?
     
  13. i have a error.

    [​IMG]
     
  14. Wulf

    Wulf Community Admin

  15. Nevermind this, figured it out.
     
  16. Mughisi updated Teleportation System with a new update entry:

    Small cleanup and fix


    [DOUBLEPOST=1422952348][/DOUBLEPOST]Sorry that it took so long for updating but I've been busy and then I got sick and didn't get to it until now. And thanks @Reneb for providing a fixed version while I wasn't here.
     
  17. Thanks for Mughisi and Reneb!

    I really like /tpn <targetplayer> <distance>
     
  18. When I teleporting the current coordinates saved only once.
    function PLUGIN:SaveLocation( player )
    -- Get the player's UserID.
    local playerID = rust.UserIDFromPlayer( player )

    -- Check if we already have an entry in the saved data for the player.
    TeleportData.AdminData[playerID] = TeleportData.AdminData[playerID] or {}

    -- If the player already has a previous location saved we will preserve
    -- that one, otherwise we will save his current location to file.
    if ( not TeleportData.AdminData[playerID].PreviousLocation ) then
    local location = player.transform.position
    local x = location.x
    local y = location.y
    local z = location.z

    -- Set the data and save it.
    TeleportData.AdminData[playerID].PreviousLocation = { x = x, y = y, z = z }
    self:SaveData()

    -- Send a message to the player.
    self:SendMessage( player, self.Config.Messages.AdminTPBackSave )
    end
    end
     
  19. That's how I intended it yes, basically the idea is that when you're just playing and then suddenly someone asks for your help you tp to that player and then you use /tpb to go back to your previous location and continue playing where you left off. It will always remember the first location you were so when you're playing at location a and multiple players need your help so you tp to location b, and then to location c, d, e and f, you will still return to location a when using /tpb. This location is saved in the data file so if you forget to use /tpb that location will still be saved and the location will not be saved again until the command is used.
     
  20. Yea, I understand what you mean. Thanks for explanation.