• Visit Rebornbuddy
  • [Plugin] DeathLogger

    Discussion in 'Archives' started by buddyfu, Aug 12, 2015.

    1. buddyfu

      buddyfu New Member

      Joined:
      Aug 27, 2014
      Messages:
      24
      Likes Received:
      0
      Trophy Points:
      0
      [​IMG]

      This plugin keeps track of your deaths. It is useful to find which maps not to run or to test some plugins over long periods of time.

      Screenshots

      Enter your PoE screenshot directory and whether or not you want to take a screenshot on death.

      Data

      The plugin saves nearby monster's information. You can define the range of "nearby" here.

      Logged Deaths

      You will find a list of all recorded deaths in this section. The UI is not updated in real time, so you'll need to press refresh to see your latest deaths.
      Clicking the "Details" button will open a popup window with all the information record on the death.
      Clicking the "Open EB Log" button will open ExileBuddy log file exactly at the line where the death happened. This is useful to find if the death was caused by an error in a plugin or EB itself. You need to have Notepad++ installed on your computer for this feature to work.
      Clicking the "Screenshot" button will open the screenshot associated to the death. If the "Take screenshot on death" check box was not checked at the time of death, this button will not be visible.



      Possible issues
      It is possible that the Chicken plugin will prevent the death from being logged in certain cases. I did not test this too much.

      Room for improvement
      I would like to be able to save the current map's mods list alongside all the death information, but i cannot find where it is stored. At the moment, the only way to know the map's mods is have the map open and to check the "Take screenshot on death" check box. The mods will be visible on the screenshot.

      If you can think of more information that could be useful to store on death, let me know.

      This is a plugin I had started a while back but had completely forgotten about. A thread in this subforum just recently reminded me of it.
       

      Attached Files:

      Last edited: Aug 13, 2015
    2. ApPruuu

      ApPruuu Community Developer

      Joined:
      Nov 21, 2012
      Messages:
      54
      Likes Received:
      1
      Trophy Points:
      8
      wow, what a nice plugin!!
       
    3. PainfulDeath

      PainfulDeath Member

      Joined:
      Jul 12, 2012
      Messages:
      489
      Likes Received:
      1
      Trophy Points:
      18
      Damn, this is awesome man =) Gj, will be trying it out!
       
    4. Alwayshere

      Alwayshere Member

      Joined:
      Mar 9, 2014
      Messages:
      61
      Likes Received:
      0
      Trophy Points:
      6
      Good stuff
       
    5. Sebozz

      Sebozz Banned

      Joined:
      Aug 19, 2015
      Messages:
      398
      Likes Received:
      0
      Trophy Points:
      0
      good experiences with this?
       
    6. darlack

      darlack Member

      Joined:
      Mar 3, 2015
      Messages:
      252
      Likes Received:
      0
      Trophy Points:
      16
      At login screen it allways spam error, but it works.

       
    7. buddyfu2

      buddyfu2 Member

      Joined:
      Aug 18, 2015
      Messages:
      47
      Likes Received:
      2
      Trophy Points:
      8
      Oh lol, i fixed this in my own version but forgot to update it on the forum.

      Just change line 96 of DeathLogger.cs to this:

      Code:
      if (!LokiPoe.IsInGame || LokiPoe.Me.IsInTown || !LokiPoe.Me.IsDead)
      
      the end result should look like this:
      Code:
      /// <summary> The plugin tick callback. Do any update logic here. </summary>
      		public void Tick()
      		{
                  if (!LokiPoe.IsInGame || LokiPoe.Me.IsInTown || !LokiPoe.Me.IsDead)
                  {
                      if (_deathLogged)
                          _deathLogged = false;
                      return;
                  }
      
      I linked an updated version of DeathLogger.cs to this post.
       

      Attached Files:

    8. wittle

      wittle Member

      Joined:
      Aug 28, 2015
      Messages:
      117
      Likes Received:
      1
      Trophy Points:
      18
      everytime the char dies i get this... and no logs are saved :/


      [DeathLogger] Error while writing to the log file
      System.UnauthorizedAccessException: Access to the path 'C:\Users\Alba\Desktop\New folder (2)\Plugins\DeathLogger\Logs\DeathLog.json' is denied.
      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
      at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
      at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
      at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
      at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
      at System.IO.File.WriteAllText(String path, String contents)
      at DeathLogger.Utilities.DeathLogFileManager.updateDeaths(List`1 deaths) in c:\Users\Alba\Desktop\New folder (2)\Plugins\DeathLogger\Utilities\DeathLogFileManager.cs:line 79
       
    9. Sebozz

      Sebozz Banned

      Joined:
      Aug 19, 2015
      Messages:
      398
      Likes Received:
      0
      Trophy Points:
      0
      plugin need update
       
    10. buddyfu2

      buddyfu2 Member

      Joined:
      Aug 18, 2015
      Messages:
      47
      Likes Received:
      2
      Trophy Points:
      8
      The plugin works fine with the current version of the bot.

      Did you make DeathLog.json readonly? Try deleting the file.
       
      Last edited: Sep 4, 2015
    11. Sebozz

      Sebozz Banned

      Joined:
      Aug 19, 2015
      Messages:
      398
      Likes Received:
      0
      Trophy Points:
      0
      screenshot function not working for me...plugin gives a statistic about deaths but dont saves screenshots
       
    12. buddyfu2

      buddyfu2 Member

      Joined:
      Aug 18, 2015
      Messages:
      47
      Likes Received:
      2
      Trophy Points:
      8
      Did you put the correct path to the official Path of Exile directory screenshot in the textbox? And did you check the checkbox "take screenshot on death".

      The plugin will not take a screenshot if the screenshot folder is invalid.
       
    13. gdub87

      gdub87 Member

      Joined:
      Nov 9, 2015
      Messages:
      76
      Likes Received:
      0
      Trophy Points:
      6
      Will this plugin work with 2.0?
       
    14. wittle

      wittle Member

      Joined:
      Aug 28, 2015
      Messages:
      117
      Likes Received:
      1
      Trophy Points:
      18
      It does :O
       
    15. LajtStyle

      LajtStyle Community Developer

      Joined:
      Jan 5, 2015
      Messages:
      96
      Likes Received:
      5
      Trophy Points:
      8
      Fixed for newest poe/EB version
      if screenshots doesn't work for you it's probably because there is no folder "Screenshots" in:
      Code:
      Documents\My Games\Path of Exile\Screenshots
      You can create one yourself or make one screenshot in game manually(default F8) :)
       

      Attached Files:

    16. tofm

      tofm Member

      Joined:
      Oct 4, 2015
      Messages:
      41
      Likes Received:
      4
      Trophy Points:
      8
      Works great. Thanks for all these updates!
       
    17. widds

      widds Member

      Joined:
      Nov 12, 2014
      Messages:
      316
      Likes Received:
      3
      Trophy Points:
      18
      Any way to force a tab before screenshot? That way you can see what mods were present?
       
    18. Recklessness

      Recklessness Member

      Joined:
      Feb 24, 2016
      Messages:
      273
      Likes Received:
      17
      Trophy Points:
      18
      Any chance that this could be get an update?
       
    19. SoupToob

      SoupToob Member

      Joined:
      Aug 25, 2015
      Messages:
      30
      Likes Received:
      1
      Trophy Points:
      8
      The 0.0.1.2 version seems to be working for me?
       
    20. FragileAssassin

      FragileAssassin Member

      Joined:
      Apr 13, 2013
      Messages:
      218
      Likes Received:
      2
      Trophy Points:
      18
      any new solution to this?
       

    Share This Page