Warp System

Create warp points for players to easily teleport to

Total Downloads: 7,208 - First Release: Jan 8, 2015 - Last Update: Oct 27, 2017

5/5, 22 likes
  1. lemme get the error from the log real quick
    [DOUBLEPOST=1439479859][/DOUBLEPOST][8/13/2015 9:49:09 AM] [Oxide] 9:49 AM [Error] Failed to run a 15.00 timer
    File: warp-system.lua Line: 350 attempt to call method 'PutToSleep' (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 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
     
  2. player most likelly disconnected ;) so couldn't find it
    or maybe was dead

    harmless message
     
  3. Warp doesn't work at all.
    Code:
    [Oxide] 7:58 PM [Error] Failed to run a 15.00 timer
    File: warp-system.lua Line: 350 attempt to call method 'PutToSleep' (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 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 
    [DOUBLEPOST=1439485184][/DOUBLEPOST]It doesn't teleports anyone to warp.
     
  4. just updated warp - it did work before - now:

    File: warp-system.lua Line: 350 attempt to call method 'PutToSleep' (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 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
     
  5. Well @Reneb something is wrong here.. are you sure that it works ?
     
  6. probably because you need to use Warp: and not PLUGIN:
    Code:
    function Warp:PutToSleep( player )
        player:SetPlayerFlag(global.BasePlayer.PlayerFlags.Sleeping, true);
        if(global.BasePlayer.sleepingPlayerList:Contains(player)==false) then
            global.BasePlayer.sleepingPlayerList:Add(player);
        end
        player:CancelInvoke("InventoryUpdate");;
        player.inventory.crafting:CancelAll(true);
    end
    you could also try:
    checking if the player is already sleeping, but not sure this would help
    Code:
    function Warp:PutToSleep( player )
        if(player:IsSleeping()) then return end
        player:SetPlayerFlag(global.BasePlayer.PlayerFlags.Sleeping, true);
        if(global.BasePlayer.sleepingPlayerList:Contains(player)==false) then
            global.BasePlayer.sleepingPlayerList:Add(player);
        end
        player:CancelInvoke("InventoryUpdate");;
        player.inventory.crafting:CancelAll(true);
    end
     
  7. Current update is really buggy, had to unload it

    Same errors as above, I'll just wait for update
     
  8. PaiN updated Warp System with a new update entry:

    0.3.5

     
  9. I tried the first code set - used it on my 2 locations - that fixed it - and it's in my zone area. Thanks guys! :)
     
    Last edited by a moderator: Aug 13, 2015
  10. Could you check the updated version ?
     
  11. Working now, cheers
     
  12. Teleportation is not working. The player remains in the same point after waking
     
  13. yes he needs to fix it cause of the new rust update.
     
  14. Yeah it's no longer working, strange

    makes sense lol
     
  15. so question anyone know why building is blocked everywhere i go on the map? is there a bug or something
     
  16. this needs to be fixed since update people are getting stuck after warping same thing was happening on tp plugin
     
  17. Wulf

    Wulf Community Admin

    I'll take a look shortly if nobody beats me to it.
     
  18. This should work.
     

    Attached Files:

  19. PaiN updated Warp System with a new update entry:

    0.3.6

     
  20. Hmm some reason when I try and update the plugin it still says I have 0.35 I have deleted the plugin and uploaded new plugin and reloaded and still says its out of date. Is there something else I should try to get it to update?