kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
346 stars 332 forks source link

How do you force d2bs to restart a profile? #1136

Open 123lolbox opened 5 years ago

123lolbox commented 5 years ago

Hi!

I've discovered that all my realm down situations are based on one single factor, which is that sometimes one profile Fails to Join Game in the manner that the door never opens when you make a game. This leads the script to believe that a game has been completed and it also ignores any Min. Game Wait Time, and automatically jumps to FTJ Delay (which is set to 10 seconds as it should).

This leads the script to making fast games, every 10-20 seconds or so, ignoring the Min. Game Wait Time. The solution to this issue is to force D2BS to restart the profile, because the error Failed To Join Game is a bug that always solves itself when restarting the game.

Note that I have 4 scripts running and that they have no problem whatsoever, until this happens randomly. When one profile is experiencing this Failed To Join Game, no other profile is doing so, which is why I think the solution is to restart the profile (i've also tried it manually once when I saw what was going on, and it worked by restarting the profile experiencing the issue). To be clear, when one profile is Failed To Join Game, others are not and they succesfully create games.

The question is: Is there any way to force D2BS to restart a profile if it experiences Failed To Join Game in the manner that the door doesn't open? If there isn't, Realm Down is always going to occur during this random event which feels preventable. Increasing FTJ Delay really doesn't seem like a solution, because then every succesful game is going to get punished by this and the runs will be highly ineffective.

Thanks in advance.

PoBErs commented 5 years ago

In my experience, atm we can't do anything with FTJ. For me FTJ happens when one of my profiles get "Connection Interrupted" and I believe what causes the FTJ is that the server still thinks the character is in the game even though it got "Connection Interrupted".

How I solved it is just to change the FTJ Delay to 900sec, which would be 15min. 15min in my experience is enough for the char to get timed out and be able to make a new game. This solves your problem of the bot making too many games when it has FTJ.

Edit: You did write that you think increasing the FTJ isn't a good solution because you think a successful ame would be punished. If I understand you correctly, it won't. FTJ is a delay for that actual scenario. When it fails to join. Other than that it will follow your maximum game time in your char or your entry script.

Spink2019 commented 5 years ago

@PoBErs where is the FTJ Delay setting? I want to take heed to your advice.

PoBErs commented 5 years ago

@PoBErs where is the FTJ Delay setting? I want to take heed to your advice.

Line 17 in D2BotLead.dbj.