ExplosionTracker

Moved

Total Downloads: 870 - First Release: Aug 3, 2015 - Last Update: Oct 8, 2017

5/5, 7 likes
  1. Okey :))
     
  2. PaiN updated Explosion Tracker with a new update entry:

    0.6.0

     
  3. Hi.

    Is it something only for admin use ? As admin we receive coordinates on where explosions take place ?

    Thx.

    If yes , is there something special to do ( permissions ? )
     
  4. Nah It just prints to your console where the explosion happened + it saves the explosions to a file.
     
  5. 1) The console in the game or the console with rustadmintool for example ?
    2) For all players ? or only admins ?

    Thx
     
  6. This plugin simply tracks all the explosion and prints them to the "RustAdminTool".
     
  7. oki doki Pain so it is only for admins. I would not like that all players can see that to track raids. Thx
     
  8. Hello

    It was a very good plug-in.
    Only admin receve (in console or "oxide tab" in RustAdmin) the location / the player who use c4 / survey charge etc...
    But it didn't work since tuesday.
    When I was looking for the notifications in May
    There was a message saying that a function called would not be used from June 3
    :(
     
  9. I will fix that in 10minutes. I'm sure it logs Rocket Launcher but not survey charges, c4 and that kind of stuff.
     
  10. PaiN updated Explosion Tracker with a new update entry:

    0.7

     
  11. Perfect.

    Do you know if there is a way to put the line ( for example I did a test : )

    **Xtadeus**(76561197970615774) threw assets/prefabs/tools/c4/explosive.timed.deployed.prefab at position ( X: 1218 Y: 17 Z: -820 )

    I am using Rustadmintool. I see the message in oxide and console tab.

    Can I add that in the Chat tab as well ? Usually I follow the chat and not the other ones... and if I want the info to be visible as soon as it is possible, maybe I will not notice it in those 2 tabs.

    Thx.
     
  12. Chat tab but ONLY for admins right ?
     
  13. Yes Chat tab in rustadmin tool but only for admins of course. ( It is just that I usually don t read the Oxide and Console Tab in rustadmin Tool ).
    So if I want to follow the action and be able to teleport on players when they use C4 or rockets, it would be easier if I could read the message in Chat box ;-)
     
  14. Code:
    [Oxide] 15:21 [Error] Exception while calling NextTick callback (DirectoryNotFoundException: Could not find a part of the path "/home/rustserver/Server-Oxide/server/HG-MOD-Server/Oxide/Logs/ExplosionTrackerLog.txt".)
    [Oxide] 15:21 [Debug]   at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
      at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
      at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
      at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
      at System.IO.File.AppendAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0
      at ConVar.Server.Log (System.String strFilename, System.String strMessage) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ExplosionTracker+<OnExplosiveThrown>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.OnFrame (Single delta) [0x00000] in <filename unknown>:0 
    It can not work
     
  15. Hello, I have this error :

    (18:49:57) | [Oxide] 18:49 [Error] Exception while calling NextTick callback (DirectoryNotFoundException: Could not find a part of the path "/home/apocalypse/serverfiles/server/apocalypse/Oxide/Logs/ExplosionTrackerLog.txt".)

    (18:49:57) | [Oxide] 18:49 [Debug] at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0

    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0

    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)

    at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0

    at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0

    at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)

    at System.IO.File.AppendAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0

    at ConVar.Server.Log (System.String strFilename, System.String strMessage) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.ExplosionTracker+<OnExplosiveThrown>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0

    at Oxide.Core.OxideMod.OnFrame (Single delta) [0x00000] in <filename unknown>:0
     
  16. Have the same error :
    (13:57:42) | [Oxide] 13:57 [Info] [Explosion Tracker] **[ERK] DarkWolFly**(76561198245806322) launched a rocket at ( X: -566 Y: 59 Z: -583 )
    (13:57:42) | [Oxide] 13:57 [Error] Exception while calling NextTick callback (DirectoryNotFoundException: Could not find a part of the path "/home/apocalypse/serverfiles/server/apocalypse/Oxide/Logs/ExplosionTrackerLog.txt".)
     
  17. 06:03 [Error] Failed to call hook 'OnExplosiveThrown' on plugin 'ExplosionTracker v0.7.0' (InvalidCastException: Cannot cast from source type to destination type.)
    06:03 [Debug] at Oxide.Plugins.ExplosionTracker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  18. I had the same issue, and as it says in the error, it can't write to the file. I'm not sure if the path used for the plugin works on windows, but on linux it does not as folder names are case sensitive. The plugin tries to create the file in this directory: .../serverfiles/server/<serverName>/Oxide/Logs/, BUT on linux the path should be ../oxide/logs/. You can either change it in the code or create the folder so it can create the log file:
    Code:
    mkdir -p "<RustServerPath>/serverfiles/server/<serverName>/Oxide/Logs/"
    Reload the plugin and it'll create the file once you throw a grenade or other explosives.


    If you don't or can't do that for some reason, you simply have to edit the source file:
    Replace these two lines:
    Code:
    ConVar.Server.Log("Oxide/Logs/ExplosionTrackerLog.txt", "**" + player.displayName + "**" + "(" + player.userID.ToString() + ")" + " threw " + entity.name.ToString() +
    ConVar.Server.Log("Oxide/Logs/ExplosionTrackerLog.txt", "**"+player.displayName+"**" +"(" + player.userID.ToString() + ")" + " launched a rocket at " +
    with these respectively:
    Code:
    ConVar.Server.Log("oxide/logs/ExplosionTrackerLog.txt", "**" + player.displayName + "**" + "(" + player.userID.ToString() + ")" + " threw " + entity.name.ToString() +
    ConVar.Server.Log("oxide/logs/ExplosionTrackerLog.txt", "**"+player.displayName+"**" +"(" + player.userID.ToString() + ")" + " launched a rocket at " +

    Big Thumbs up to PaiN for making this!
     
    Last edited by a moderator: Jan 13, 2017
  19. @PaiN Wonderful plugin!
    Minor request, ability to make tracking survey charges and supply signals optional
     
  20. Plugin does not log to console as it did before the 4/13 update?
    "Settings": {
    "LogToFile": true,
    "LogToRcon": true