1. The plugin shows the murder and the bullet trajectory, perfect for determining aimbot

    Code:
    3:04 PM [Error] Failed to call hook 'Unload' on plugin 'HowIDied v0.0.2' (Exception: Unexpected token)
    3:04 PM [Debug] at Oxide.Core.Configuration.KeyValuesConverter.ReadJson (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue, Newtonsoft.Json.JsonSerializer serializer) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable (Newtonsoft.Json.JsonConverter converter, Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0
    3:04 PM [Info] Unloaded plugin HowIDied v0.0.2 by 4seti [Lunatiq] for Rust Planet
    Code:
    2:39 PM [Info] HowIDied was compiled successfully in 1699ms
    2:39 PM [Error] Failed to call hook 'Unload' on plugin 'HowIDied v0.0.2' (Exception: Unexpected token)
    2:39 PM [Debug] at Oxide.Core.Configuration.KeyValuesConverter.ReadJson (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue, Newtonsoft.Json.JsonSerializer serializer) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable (Newtonsoft.Json.JsonConverter converter, Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0
    2:39 PM [Info] Unloaded plugin HowIDied v0.0.2 by 4seti [Lunatiq] for Rust Planet
    2:39 PM [Info] Loaded plugin HowIDied v0.0.2 by 4seti [Lunatiq] for Rust Planet
    2:39 PM [Warning] [HowIDied] HowIDied: New Data file initiated!
    2:39 PM [Error] [HowIDied] HowIDied: Init failed: Unexpected token
    2:39 PM [Info] [HowIDied] HowIDied: Plugin is operating!
    ________________________________________________________________
    /hid <Radius:Optional> <VictimName:Optional> - show data about kill (draw bullet-line)
    /hidlist <index> <Another player name to show:Optional>
    /hidsave
    /hidclear
    /hidshow <PlayerName> <Radius:Optional> .<VictimName:Optional> - shows data to another player.
     

    Attached Files:

  2. I've downloaded your config and cs file. Fired up my debug server with oxide 2.0.1281 and everything was fine!

    Code:
    1:06 PM [Info] Loading Oxide core v2.0.1281...
    1:06 PM [Info] Loading extensions...
    1:06 PM [Info] Loaded extension CSharp v1.0.1281 by Oxide Team
    1:06 PM [Info] Loaded extension JavaScript v1.0.1281 by Oxide Team
    1:06 PM [Info] Loaded extension Lua v1.0.1281 by Oxide Team
    1:06 PM [Info] Loaded extension MySql v1.0.1281 by Oxide Team
    1:06 PM [Info] Loaded extension Python v1.0.1281 by Oxide Team
    1:06 PM [Info] Loaded extension Rust:IO for Oxide v2.5.0 by playrust.io / dcode
    1:06 PM [Info] Loaded extension SQLite v1.0.1281 by Oxide Team
    1:06 PM [Info] Loaded extension Unity v1.0.1281 by Oxide Team
    1:06 PM [Info] Loaded extension Rust v1.0.1281 by Oxide Team
    1:06 PM [Info] Using Covalence provider for game 'Rust'
    1:06 PM [Info] Loading plugins...
    1:06 PM [Info] Loaded plugin Unity Core v1.0.0 by Oxide Team
    1:06 PM [Info] Loaded plugin Rust Core v1.0.0 by Oxide Team
    1:06 PM [Info] Loaded plugin Economics VIP v0.1.0 by baton
    1:06 PM [Info] Economics not found!
    1:06 PM [Info] Loaded plugin Rust:IO for Oxide v2.5.0 by playrust.io / dcode
    1:06 PM [Info] Rust:IO: Initializing plugin
    1:06 PM [Info] AirdropExtended, Clans, CompassGUI, HowIDied and ZoneWarfare were compiled successfully in 2344ms
    1:06 PM [Warning] A plugin has polluted the global namespace by defining CaptureTeam: AirdropExtended, Clans, CompassGUI, HowIDied and ZoneWarfare
    1:06 PM [Info] Loaded plugin AirdropExtended v0.8.1 by baton
    1:06 PM [Info] Loaded plugin Clans v1.5.3 by playrust.io / dcode
    1:06 PM [Info] Loaded plugin Compass GUI v0.8.0 by PaiN
    1:06 PM [Info] Loaded plugin HowIDied v0.0.2 by 4seti [Lunatiq] for Rust Planet
    1:06 PM [Info] [HowIDied] HowIDied: Old data loaded!
    1:06 PM [Info] [HowIDied] HowIDied: Plugin is operating!
    1:06 PM [Info] Loaded plugin ZoneWarfare v0.0.1 by baton
    1:06 PM [Error] Failed to load plugin '1' (no source found)
    1:07 PM [Info] Updating Rust:IO ...
    1:07 PM [Info] aire:Loaded settings:goodloot
    1:07 PM [Info] aire:Saving current settings to:goodloot
    1:07 PM [Info] aire:next airdrop in:3600
    1:07 PM [Info] aire:Plane limit enabled:False
    1:07 PM [Info] aire:Saving current settings to:goodloot
    1:07 PM [Info] Rust:IO: Update complete (469504 bytes)
    1:07 PM [Info] Installing Rust:IO ...
    1:07 PM [Info] Rust:IO> Setting up Rust:IO 2.0.5707.11964 (using max. 4 threads) ...
    1:07 PM [Info] Rust:IO> Creating directories ...
    1:07 PM [Info] Rust:IO> Applying config ...
    1:07 PM [Info] Rust:IO> Initializing database ...
    1:07 PM [Info] Rust:IO> Generating map image (this may take a while) ...
    1:07 PM [Info] Rust:IO> Generated map image: took 4512.915 ms, 707637 bytes
    1:07 PM [Info] Rust:IO> Starting HTTP server on *:28015 ...
    1:07 PM [Info] Rust:IO> Installed.
    1:07 PM [Warning] CallHook 'OnTick' on plugin 'RustIO v2.5.0' took: 5386ms
    1:07 PM [Warning] CallHook 'OnTick' on plugin 'RustIO v2.5.0' took average: 448ms
    1:07 PM [Info] [HowIDied] HowIDied: Data saved!
    1:07 PM [Info] Unloaded plugin HowIDied v0.0.2 by 4seti [Lunatiq] for Rust Planet
    
     
  3. Try /hidsave
     
  4. I've added following to plugin code.
    Code:
    [ConsoleCommand("hidsave")]
            void cmdSaveA(ConsoleSystem.Arg arg)
            {
                SaveData();
            }
    After executing hidsave from console:
    Code:
    [Oxide] 1:17 PM [Info] [HowIDied] HowIDied: Old data loaded!
    [Oxide] 1:17 PM [Info] [HowIDied] HowIDied: Plugin is operating!
    > hidsave
    [Oxide] 1:17 PM [Info] [HowIDied] HowIDied: Data saved!
    
     
  5. Can you send me a corrected plugin?
     
  6. Not at home anymore, a bit later
     
  7. Amazing, thanks!
     
  8. that's right?
    [ChatCommand("hidsave")]
    void cmdSave(BasePlayer player, string cmd, string[] args)
    {
    if (player.net.connection.authLevel == 0) return;
    SaveData();
    ReplyChat(player, "Data Saved!");
    }

    ->>

    [ChatCommand("hidsave")]
    void cmdSaveA(ConsoleSystem.Arg arg)
    {
    if (player.net.connection.authLevel == 0) return;
    SaveData();
    ReplyChat(player, "Data Saved!");
    }
     
    Last edited by a moderator: Aug 17, 2015
  9. I've just added console command handler. Nothing more. Code that saves data is the same.
     

    Attached Files:

  10. 2:50 PM [Info] Loaded plugin HowIDied v0.0.2 by 4seti [Lunatiq] for Rust Planet
    2:50 PM [Info] [HowIDied] HowIDied: Creating a new config file
    2:50 PM [Warning] [HowIDied] HowIDied: New Data file initiated!
    2:50 PM [Info] [HowIDied] HowIDied: Data saved!
    2:50 PM [Info] [HowIDied] HowIDied: Plugin is operating!

    no data is stored in "hid-data"
    [DOUBLEPOST=1439813276][/DOUBLEPOST]console
     

    Attached Files:

    Last edited by a moderator: Aug 17, 2015
  11. Could you send me your previous data via pm/steam?
    [DOUBLEPOST=1439816034][/DOUBLEPOST]I dont have any kill data on my personal server, so i cant test it myself anyway.
     
  12. oxide log and hid-data ?
     
  13. no, just hid-data. not empty :)
     
  14. It seems only to save hid-data only when the plugin is unloaded. I've pmed mine to you from this version baton.
     
  15. [
    {
    "TimeSpamp": 1440001069,
    "Date": "19/8/2015 19:17:49",
    "killer_Name": "GurMan[KZ]twitch.tv/wulwulcj24",
    "victim_Name": "napagokc_SOB",
    "HeadShot": true,
    "killer_X": 1786.20313,
    "killer_Y": 29.8420315,
    "killer_Z": 1339.21753,
    "victim_X": 1809.704,
    "victim_Y": 5.058621,
    "victim_Z": 1337.25757,
    "killerID": 76561198145123660,
    "victimID": 76561198080058433
    },
    {
    "TimeSpamp": 1440001138,
    "Date": "19/8/2015 19:18:58",
    "killer_Name": "IN WAVES",
    "victim_Name": "Egor_Egorov",
    "HeadShot": false,
    "killer_X": 1499.71265,
    "killer_Y": 16.6834126,
    "killer_Z": 912.6656,
    "victim_X": 1486.07776,
    "victim_Y": 10.5657158,
    "victim_Z": 889.6601,
    "killerID": 76561198041782293,
    "victimID": 76561198178193915
    },
    {
    [DOUBLEPOST=1440004194][/DOUBLEPOST]/hid <Radius:Optional> <VictimName:Optional> - show data about kill (draw bullet-line)
    /hidlist <index> <Another player name to show:Optional>
    /hidsave
    /hidclear
    /hidshow <PlayerName> <Radius:Optional> .<VictimName:Optional> - shows data to another player.
     

    Attached Files:

  16. Still can't reproduce the error, you are getting.
     
  17. no more errors oxide 2.0.1297
     
  18. Alright, so the issue is resolved?
     
  19. yes :)
    [DOUBLEPOST=1440008873][/DOUBLEPOST]

     
  20. That's pretty nice, will this mod be released?