• Visit Rebornbuddy
  • Request: Antistuck - TP out

    Discussion in 'Archives' started by Aarron the Aussie, Aug 5, 2015.

    1. Aarron the Aussie

      Aarron the Aussie New Member

      Joined:
      Jun 19, 2012
      Messages:
      60
      Likes Received:
      0
      Trophy Points:
      0
      I was thinking it would be nice if the bot could just TP out if "monster hasnt been slain for x mins" or "player hasnt moved out of x amount of radius" and then create a new instance.

      Thoughts?

      Azza
       
    2. widds

      widds Member

      Joined:
      Nov 12, 2014
      Messages:
      316
      Likes Received:
      3
      Trophy Points:
      18
      Already exists (kind of). There's a built-in plugin called Anti Stuck Detection. You can set some parameters and tell it to quit to the login screen.. then if you have autologin enabled it'll log back in and continue on.
       
    3. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      Code:
      //naut's code. I did it about the same time. 
      				// referenced 7 August 2015 https://www.thebuddyforum.com/exilebuddy-forum/community-developer-forum/182083-stuckdetection-2-0-a.html
      				//if (isStuck)
      				//{
      				//...
      				else if (StuckDetectionSettings.Instance.StuckDetectionMethod ==
                               StuckDetectionMethods.TpToTownAndRestart)
                      {
      					var tttrerr = BasicGrindBotSettings.Instance.NeedsTownRun = 2;
      					if (!LokiPoe.Me.IsDead && !LokiPoe.Me.IsInTown)
      					{ 
      						Log.ErrorFormat("[StuckDetection] TpToTownAndRestart returned {0}.", tttrerr);
      						if (AreaStateCache.Current.Explorer != null)
      						{
      							Log.InfoFormat("[StuckDetection] Now resetting the explorer.");
      							AreaStateCache.Current.Explorer.Reset();
      						}
      					}
      					else if (LokiPoe.Me.IsDead)
      					{
      						Log.ErrorFormat("[StuckDetection] LogoutToCharacterSelection returned {0}.", LokiPoe.EscapeState.LogoutToTitleScreen());
      					}
                      }
      
       
    4. pinki104

      pinki104 Member

      Joined:
      Apr 14, 2012
      Messages:
      536
      Likes Received:
      0
      Trophy Points:
      16
      the built in one only logs out it doesent tp to town according to the drop down box.
       
    5. pinki104

      pinki104 Member

      Joined:
      Apr 14, 2012
      Messages:
      536
      Likes Received:
      0
      Trophy Points:
      16
      this is outdated and has compile errors on load up
       
    6. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      and the formatting is awful.
       
    7. zhenk

      zhenk Member

      Joined:
      Jun 12, 2012
      Messages:
      101
      Likes Received:
      0
      Trophy Points:
      16
      can we get a stuck detection plug-in update which includes tp?
       
    8. botelho

      botelho Member

      Joined:
      Nov 13, 2013
      Messages:
      279
      Likes Received:
      12
      Trophy Points:
      18
      I would like to see this too.
       
    9. conebuddy

      conebuddy New Member

      Joined:
      Sep 19, 2015
      Messages:
      44
      Likes Received:
      0
      Trophy Points:
      0
      yeah just enabled this, wasted 8 hours sleeping... to come back to the main login screen lol...
      thought it was smarter and would move the character to get it unstuck from tents
       
    10. botelho

      botelho Member

      Joined:
      Nov 13, 2013
      Messages:
      279
      Likes Received:
      12
      Trophy Points:
      18
      Code:
      if (StuckDetectionSettings.Instance.StuckDetectionMethod ==
                               StuckDetectionMethods.TpToTownAndRestart)
                      {
      					var tttrerr = BasicGrindBotSettings.Instance.NeedsTownRun = 2;
      					if (!LokiPoe.Me.IsDead && !LokiPoe.Me.IsInTown)
      					{ 
      						Log.ErrorFormat("[StuckDetection] TpToTownAndRestart returned {0}.", tttrerr);
      						if (AreaStateCache.Current.Explorer != null)
      						{
      							Log.InfoFormat("[StuckDetection] Now resetting the explorer.");
      							AreaStateCache.Current.Explorer.Reset();
      						}
      					}
      					else if (LokiPoe.Me.IsDead)
      					{
      						Log.ErrorFormat("[StuckDetection] LogoutToCharacterSelection returned {0}.", LokiPoe.EscapeState.LogoutToTitleScreen());
      					}
      Code:
      else if (StuckDetectionSettings.Instance.StuckDetectionMethod ==
                               StuckDetectionMethods.PortalNewInstance)
                      {
      					// Tell the  bot we should not return to this instance.
      					AreaStateCache.SetNewInstanceOverride(LokiPoe.CurrentWorldArea.Id, true);
      					// Tell the bot we want to do a town run, and to not return via the portal we're about to make.
      					Loki.Bot.Logic.Bots.BasicGrindBot.BasicGrindBotSettings.Instance.NeedsTownRun = 2;
      				}
      This were old solutions that dont work anymore since the revamp, maybe we have to use Loki.Bot.Logic.Bots.OldGrindBot.TriggerTownRun(), Im still getting familiar with everything.
       
    11. krzys

      krzys Member

      Joined:
      Jul 23, 2012
      Messages:
      124
      Likes Received:
      1
      Trophy Points:
      18
      bump,
      could any of wonderful devs add tp in/out instead of relog to StuckDetection Plugin? ;p
       
    12. zhenk

      zhenk Member

      Joined:
      Jun 12, 2012
      Messages:
      101
      Likes Received:
      0
      Trophy Points:
      16
      Instead of having the bot log out or tp out after being in an instance for a certain amount of time (mine is currently set to 12 or so), can we get a setting to have it just tp out and begin a new map after being stuck for 1-2 minutes regardless of how much time we've already spent within that map?

      Even if it TPs or logs out, it will just go back to the same map portal if there's one remaining and get stuck again.

      Correct me if I'm wrong.
       
    13. Tormiasz

      Tormiasz Community Developer

      Joined:
      Jun 16, 2014
      Messages:
      701
      Likes Received:
      5
      Trophy Points:
      18
      It's a request specific to MapRunner plugin. You should write in the proper thread.
       
    14. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Not really, you can handle it from anywhere. But yes, it would be an issue for maps because of the way portals are in fact a "waypoint". lot of synergies possible
       

    Share This Page