• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Plugin req. Quitting d3 when DB crash

    Discussion in 'Archives' started by hetsig, Jul 26, 2012.

    1. hetsig

      hetsig New Member

      Joined:
      Jul 20, 2012
      Messages:
      509
      Likes Received:
      0
      Trophy Points:
      0
      Im botting on HC and the only time I die is when DB stops working or crash, which sadly happens way to often. Is it possible to make a plugin that quits d3 when DB stops working or crash? If someone can make this happen I can give a donation. Im so tired of all these HC deaths :/
       
    2. phyber

      phyber New Member

      Joined:
      Jun 22, 2012
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      One or more bot windows?
       
    3. cZk

      cZk New Member

      Joined:
      Jul 12, 2012
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      0
      Since DB loads the plugins, if DB crashes, the plugins will cease execution as well... so making a plugin to fix this problem isn't an appropriate solution. You're probably looking for a standalone application. All you will need to do is monitor the D3 and DB processes at a specified interval to make sure they are still running, and if not - terminate Diablo 3.

      Do you have any input as to why you think DB may be crashing in the first place?
       
    4. applepiez

      applepiez New Member

      Joined:
      Nov 22, 2011
      Messages:
      52
      Likes Received:
      0
      Trophy Points:
      0
      ^Beat me to it.

      not possible to make a plugin for DB to close D3 when it crashes. You would have to create an external program that moniters the processes and closes D3 when DB crashes.
       
    5. cZk

      cZk New Member

      Joined:
      Jul 12, 2012
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      0
      What I would probably do is create a plugin that spawns a separate process and keeps communication via a named pipe or something.. waiting on "pings" to make sure DB is alive and working, and if a timeout is reached or the pipeclient is disconnected, it force closes D3/DB if still running.

      DB Started -> Plugin Loaded -> Spawns new process -> Connects to pipe -> Sends PING every X seconds as DB is running

      Alternatively one could do this with just a simple threaded while loop checking if a process is running though.
       
      Last edited: Jul 26, 2012
    6. hetsig

      hetsig New Member

      Joined:
      Jul 20, 2012
      Messages:
      509
      Likes Received:
      0
      Trophy Points:
      0
      So is this something you could help me out with? I'd ofc give a donation for time you'd have to put in.

      I cant sleep at night now, always worrying about another DB crash :p
       
    7. cZk

      cZk New Member

      Joined:
      Jul 12, 2012
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      0
      Sure, I'll whip something up tonight.
       
    8. hetsig

      hetsig New Member

      Joined:
      Jul 20, 2012
      Messages:
      509
      Likes Received:
      0
      Trophy Points:
      0
      very nice, thanks! Gonna save a lot of my chars with this :)
       
    9. sinterlkaas

      sinterlkaas New Member

      Joined:
      Jan 17, 2012
      Messages:
      536
      Likes Received:
      14
      Trophy Points:
      0
      You could try using AntiIdle with
      http://www.thebuddyforum.com/demonbuddy-forum/plugins/60274-standalone-dbrelogger.html
      or
      http://www.thebuddyforum.com/demonb...n-command-line-based-anti-crash-relogger.html


      I am currently working on something like this for AntiIdle...
      It will check if pipeline server is running if not will start it and communicate with it just by sending pid info about DB and the attached D3 and close one of them when DB freezes
       

    Share This Page