What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[Plugin] DeathLogger

buddyfu

New Member
Joined
Aug 27, 2014
Messages
24
lGiL1y5.jpg


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.
 

Attachments

Last edited:
At login screen it allways spam error, but it works.

в GreyMagic.ExternalProcessMemory.ReadByteBuffer(IntPtr addr, Void* buffer, Int32 count)
в GreyMagic.MemoryBase.ReadBytes(IntPtr addr, Int32 count)
в Loki.Game.LokiPoe.LocalData.**‫‪‬​‬‎*****‪​*‏‪‬‎***‎***‬*.‎‬***‪*​****‎‎​​*‪‏*​**()
в Loki.Game.Utilities.PerCachedValue`1.get_Value()
в Loki.Game.LokiPoe.LocalData.get_Native()
в Loki.Game.LokiPoe.LocalData.**‫‪‬​‬‎*****‪​*‏‪‬‎***‎***‬*.‪‏‫‪‏**‬‎‪​‪**​‪‪​‫‫‪*‏‏‎‎‫‏‬*()
в Loki.Game.Utilities.PerCachedValue`1.get_Value()
в Loki.Game.LokiPoe.LocalData.get_WorldAreaId()
в Loki.Game.LokiPoe.**‫‪‬​‬‎*****‪​*‏‪‬‎***‎***‬*.​*‬‬‎‏‪*‪*‏​*‏‫‪*‎‪*‫‫‬‬‪​‬​***()
в Loki.Game.Utilities.PerCachedValue`1.get_Value()
в Loki.Game.LokiPoe.get_CurrentWorldArea()
в Loki.Game.LokiPoe.LocalData.**‫‪‬​‬‎*****‪​*‏‪‬‎***‎***‬*.‬​**‫****‪**‬‫‫***‎‪**​**‎‏**()
в Loki.Game.Utilities.PerCachedValue`1.get_Value()
в Loki.Game.LokiPoe.LocalData.get_AreaHash()
в Loki.Game.Utilities.PerAreaCachedValue`1.ShouldUpdateCache(Boolean force)
в Loki.Game.Utilities.PerCachedValue`1.get_Value()
в Loki.Game.LokiPoe.ObjectManager.‏‬*‎*‬‫*‫‏*‏‎‏‏‏‏​‬‫*‫*​**‬*‏*()
в Loki.Game.LokiPoe.ObjectManager.**‫‪‬​‬‎*****‪​*‏‪‬‎***‎***‬*.*‎‏*​‬*‫‫*‏*‏‬****​‫***‏‫*()
в Loki.Game.Utilities.PerCachedValue`1.get_Value()
в Loki.Game.LokiPoe.ObjectManager.get_Objects()
в Loki.Game.LokiPoe.ObjectManager.**‫‪‬​‬‎*****‪​*‏‪‬‎***‎***‬*.**‪‎*‪‬*‫‎*‎**‬‪****​**‎‏‎***()
в Loki.Game.Utilities.PerCachedValue`1.get_Value()
в Loki.Game.LokiPoe.ObjectManager.get_Me()
в Loki.Game.LokiPoe.get_Me()
в DeathLogger.DeathLogger.Tick() в c:\Users\******\Desktop\*****\Plugins\DeathLogger\DeathLogger.cs:строка 96
в Loki.Bot.PluginManager.*‎‪‪‪***​‫**‪**‬​​***‫‪*(IPlugin )
 
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.
 

Attachments

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
 
plugin need update

The plugin works fine with the current version of the bot.

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

Did you make DeathLog.json readonly? Try deleting the file.
 
Last edited:
screenshot function not working for me...plugin gives a statistic about deaths but dont saves screenshots
 
screenshot function not working for me...plugin gives a statistic about deaths but dont saves screenshots

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.
 
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) :)
 

Attachments

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) :)

Works great. Thanks for all these updates!
 
Any way to force a tab before screenshot? That way you can see what mods were present?
 
Back
Top