• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • ProfileManager.LoadNew Fails

    Discussion in 'Community Developer Forum' started by nishalp, Apr 4, 2015.

    1. nishalp

      nishalp Member

      Joined:
      Sep 13, 2014
      Messages:
      177
      Likes Received:
      4
      Trophy Points:
      18
      ProfileManager.LoadNew(@"path to xml", true);

      When I execute the following onPulse I get the following error. Any idea why?

      An exception of type 'System.NullReferenceException' occurred in RebornBuddy.exe but was not handled in user code
      {"Object reference not set to an instance of an object."}
       
    2. Sodimm

      Sodimm Member

      Joined:
      Nov 8, 2014
      Messages:
      383
      Likes Received:
      7
      Trophy Points:
      18
      Code:
      var Path = "Path to XML"
      NeoProfileManager.Load(Path, true);
      NeoProfileManager.UpdateCurrentProfileBehavior();
      That's what I use.
       
    3. nishalp

      nishalp Member

      Joined:
      Sep 13, 2014
      Messages:
      177
      Likes Received:
      4
      Trophy Points:
      18
      Thanks. That worked. However just one more problem. When I set it the first time the bot starts, it sets and runs. But then in the onPulse I wanted to move to the next script when I hit a count. I have the below. It goes and Loads the next script correctly but does not move to the next area per the updated script. Its just sits there.


      public void OnPulse()
      {
      if (BotManager.Current.Name == "Order Bot")
      {
      if (Core.Player.InCombat == false && bStopBot)
      {
      Logging.Write("Teleport");

      if (Core.Player.IsMounted)
      {
      Actionmanager.Dismount();
      Thread.Sleep(1000);
      }
      sBook = SkywindI[iIndex];
      iIndex++;

      NeoProfileManager.Load(@"\\diskstation\Camie Patel\FFXIV ARR Scripts\Reborn Scripts\Animus\Skywind I\" + sBook, true);
      NeoProfileManager.UpdateCurrentProfileBehavior();

      bStopBot = false;
      }
      }
      }
       
      Last edited: Apr 5, 2015
    4. nishalp

      nishalp Member

      Joined:
      Sep 13, 2014
      Messages:
      177
      Likes Received:
      4
      Trophy Points:
      18
      All good. I figured out my problem. Thanks.
       

    Share This Page