Ever been testing a script for a long time and you come back to the
bot dead and you're wondering how the hell did it die?
------------------------------------------
Open Source Death Recorder to the rescue!
Using a rolling cache of jpgs and ffmpeg to record the last 10 seconds leading up to when the bot dies for debugging/testing scripts while you're not watching.
This is still under development/testing so I'm releasing it essentially as a concept for now and welcome to anyone who wants to use/build onto this project.
(REQUIRES ffmpeg installed and in system PATH for video conversion)
Still building/testing this thing and adding some more error handling so I might update this thread in the very near future.
Source:
Something like this to integrate it into your scripts and trigger recording on death: