• Visit Rebornbuddy
  • Hunt Log Question

    Discussion in 'Rebornbuddy Support' started by tmk147, Nov 4, 2014.

    1. tmk147

      tmk147 New Member

      Joined:
      Oct 4, 2014
      Messages:
      21
      Likes Received:
      1
      Trophy Points:
      1
      Hello,

      I was trying to work on Hunt Logs, but I can't seem to get it to get past the <If Condition="not HuntEntryCompleted(ClassJobType.Gladiator,9)" > conditional. For my 10th log entry, I should be using the number 9 right? I've been using a TP to the map my target is on as a test to see if the condition passes, but I can only pass my <If Condition="not HuntRankCompleted(ClassJobType.Gladiator,0)"> condition. Full test code here.

      <Profile>
      <Name>Hunt: Gladiatior</Name>
      <KillRadius>50</KillRadius>
      <Order>
      <If Condition="not HuntRankCompleted(ClassJobType.Gladiator,0)">
      <If Condition="not HuntEntryCompleted(ClassJobType.Gladiator,9)" >
      <If Condition="not IsOnMap(140)">
      <TeleportTo Name="Horizon" AetheryteId="17" />
      </If>
      <Grind grindRef="Gladiator_0_9" while="not HuntSubEntryCompleted(ClassJobType.Gladiator,9,1" />
      </If>
      </If>
      </Order>


      <GrindAreas>
      <GrindArea name="Gladiatior_0_9">
      <Hotspots>
      <HotSpot Radius="100" XYZ="58.2441, 59.422, 1.68554" name = "Gladiator_0_9" />
      </Hotspots>
      <TargetMobs>
      <TargetMob name="Dusty Mongrel" />
      </TargetMobs>
      <MinLevel>1</MinLevel>
      <MaxLevel>50</MaxLevel>
      </GrindArea>
      </GrindAreas>
      </Profile>

      Any help would be appreciated.

      Thank you.
       
    2. kagamihiiragi17

      kagamihiiragi17 Community Developer

      Joined:
      Jun 24, 2014
      Messages:
      873
      Likes Received:
      25
      Trophy Points:
      0
      I believe the offsets for the Hunting Log entries are incorrect, as every log entry currently returns as completed for me. That's most likely your issue.
       
    3. tmk147

      tmk147 New Member

      Joined:
      Oct 4, 2014
      Messages:
      21
      Likes Received:
      1
      Trophy Points:
      1
      Hm... I tried everything from 0 to 10, with 3 and 10 being incomplete on my Gladiator, but they all return completed for me and end the profile without going to the hunting location... Anyone have a sample of what they use for hunts that I could work with?
       
    4. kagamihiiragi17

      kagamihiiragi17 Community Developer

      Joined:
      Jun 24, 2014
      Messages:
      873
      Likes Received:
      25
      Trophy Points:
      0
      I don't think you understood. The bot isn't returning the proper values for hunts being completed or not being completed. Even if you make a profile correctly it will not work with the current condition of the offsets with regards to the Hunting Log.
       
    5. tmk147

      tmk147 New Member

      Joined:
      Oct 4, 2014
      Messages:
      21
      Likes Received:
      1
      Trophy Points:
      1
      Having a different problem now. I'm trying to create the hunt log for gladiator but my character just keeps going to Cochineal Cactuar (Gladiator rank 2 entry 12), and doesn't move on after that. I don't think I need to provide a log for this, but here's the profile I'm attempting. If someone could take a look at this for me and give me some pointers, that would be great.

      Thank you!
       

      Attached Files:

    6. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      Probably this:

      Code:
       <If Condition="HuntRankCompleted(ClassJobType.Gladiator,00)">
      
       
    7. tmk147

      tmk147 New Member

      Joined:
      Oct 4, 2014
      Messages:
      21
      Likes Received:
      1
      Trophy Points:
      1
      Oh man... I forgot I took out the 'not' from that line. I removed the whole Rank 1 part from the previous profile, and am only testing the Rank 2 hunts (since my rank 1 is complete, but now it just completely skips everything and says profile completed :/

      But it just gives me

      If it's too much of a hassle to go through these then it's fine. I can just wait until someone else releases one and use theirs as a template haha.

      Thanks a lot!
       
    8. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      I'm not sure if the rank index was 0 or 1 based. Use the rebornconsole and try

      Code:
      var glad = HuntingLogManager.GetHuntingLogByJob(ClassJobType.Gladiator);
      for(int i = 0;i<10;i++)
      {
      Log(glad.IsRankCompleted(i));
      }
      
       
    9. Thecamel

      Thecamel Community Developer

      Joined:
      Aug 8, 2012
      Messages:
      2,036
      Likes Received:
      46
      Trophy Points:
      48
      Hey TMK,

      I'm working on some hunting logs my self (currently white mage).

      Ive notices some of the mob kill requirements are the same, Do you want to share mob id and grind locations ?.

      Hell even join a vision studio room ?
       
    10. tmk147

      tmk147 New Member

      Joined:
      Oct 4, 2014
      Messages:
      21
      Likes Received:
      1
      Trophy Points:
      1
      Hmmm, if I get
      Does that mean it's 1 based if only my Rank 1 is completed? And then the 0 is just something that always shows up as True? If that's the case, I'll just bump everything up and let you know how it goes. Thanks a lot Mastahg!

      Thecamel, I've only just started working on it, but yeah we should share our info. I don't know what a visual studio room is but maybe we should just make a shared doc of every enemy and their grind location haha.
       
    11. tmk147

      tmk147 New Member

      Joined:
      Oct 4, 2014
      Messages:
      21
      Likes Received:
      1
      Trophy Points:
      1
      OKAY! Finally got it to work! Looks like the Ranks start from 1, and the Log Entry and Sub Entry start at 0! Thanks for the help!
       
    12. Thecamel

      Thecamel Community Developer

      Joined:
      Aug 8, 2012
      Messages:
      2,036
      Likes Received:
      46
      Trophy Points:
      48
      I get

      Code:
      True
      False
      False
      False
      False
      False
      False
      False
      False
      False
      With a fresh Character

      Completed stage 1 Gladiator 01 Little Ladybug 3/3

      From Rank 1 = 1/10 completed.

      0 ranks completed.

      yes I will get a google doc going :)
       
    13. Thecamel

      Thecamel Community Developer

      Joined:
      Aug 8, 2012
      Messages:
      2,036
      Likes Received:
      46
      Trophy Points:
      48

      Great, Flip your code up, Ive got my self confused with the rank 1lol
       
    14. tmk147

      tmk147 New Member

      Joined:
      Oct 4, 2014
      Messages:
      21
      Likes Received:
      1
      Trophy Points:
      1
      Actually, it looks like there is still a small error for any Hunt logs with sub entries. I have completed Glad(0,0) but not Glad(0,1), but when I run "Is Log(glad.IsLogEntryCompleted(0));" I get true, and if I run "Log(glad.IsLogSubEntryCompleted(0,0));" or "Log(glad.IsLogSubEntryCompleted(0,1));", both return false. It looks like the Log Entry completion is only looking for the completion of the first sub entry (although I haven't tested this yet), and the subentry is just returning the wrong values.

      Here's my code to look at, the rest of them worked. It was the first log in rank 2 with Bombs and Cobalts that wouldn't work for me.
       

      Attached Files:

    15. Thecamel

      Thecamel Community Developer

      Joined:
      Aug 8, 2012
      Messages:
      2,036
      Likes Received:
      46
      Trophy Points:
      48
      Hi,

      I fished all the hot spots for you on Rank 2,

      all was going well until I had to add too mobs of hot spots,

      Im not sure what I did wrong..

      Have a look..

      View attachment Gladiator-hotspot3.xml


      It spits out this,

      Code:
      [00:12:00.869 N] Loaded profile Hunt: Gladiatior
      [00:12:01.442 N] Connection to 192.99.148.87:31214 established.
      [00:12:01.442 D] Added new hook [Pull] c884d79f-8310-461c-95ef-faef55253135
      [00:12:01.442 D] Added new hook [RoutineCombat] 2e95e5b9-f59a-47de-92b1-0dd4d4f3e415
      [00:12:01.442 D] Added new hook [HotspotPoi] eb5e1aee-0758-4d8f-8f98-9e9a37b662c0
      [00:12:01.442 D] Added new hook [SetDeathPoi] 18ccb462-6ebf-4ba6-83a4-933507acd0e5
      [00:12:01.442 D] Added new hook [SetCombatPoi] d86d76b7-96b4-409c-a8cf-4cb64d151b99
      [00:12:01.442 D] Added new hook [SetHotspotPoi] ae053954-6ed7-47a3-a485-46cdd2b6cd14
      [00:12:01.442 D] Added new hook [SelectPoiType] fac3f5f1-b6d4-4663-8355-115a0305e614
      [00:12:01.442 D] Replaced hook [SelectPoiType] 2d86f30f-0b32-4bc2-8df3-fd865e273dfb
      [00:12:01.442 D] Inserted new hook [TreeStart @0] 77fae06f-25f2-4d9c-8b53-9bcad085080b
      [00:12:01.470 D] Traceback (most recent call last):
        File "<string>", line 4, in Execute
      TypeError: Invoke() takes exactly 2 arguments (3 given)
      [00:12:01.470 N] Stopping the bot.
      [00:12:01.470 D] CurrentBot.Stop()
      [00:12:01.470 N] Connection closed! 192.99.148.87:31214
      [00:12:01.470 D] TreeHooks.Instance.ClearAll()
      [00:12:01.470 D] Navigator.Clear()
      [00:12:01.470 V] [Poi.Clear] Reason: Bot stopped
      [00:12:01.470 D] OnStop event
      [00:12:01.470 D] OnStop Event Invoking
      [00:12:01.470 D] ProfileOrderManager.OnBotStop. Resetting caches.
      [00:12:01.470 D] Exception during scheduling Pulse: Microsoft.Scripting.ArgumentTypeException: Invoke() takes exactly 2 arguments (3 given)
         at Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
         at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
         at Microsoft.Scripting.Interpreter.LightLambda.Run6[T0,T1,T2,T3,T4,T5,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
         at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
         at Microsoft.Scripting.Interpreter.DynamicInstruction`6.Run(InterpretedFrame frame)
         at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
         at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
         at IronPython.Compiler.PythonCallTargets.OriginalCallTarget0(PythonFunction function)
         at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
         at _Scripting_(Object[] )
         at ff14bot.NeoProfiles.IfTag.GetConditionExec()
         at ff14bot.NeoProfiles.IfTag.get_IsDone()
         at ff14bot.NeoProfiles.ProfileBehavior.get_IsDoneCache()
         at ff14bot.NeoProfiles.IfTag.(ProfileBehavior )
         at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)
         at ff14bot.NeoProfiles.IfTag.get_IsDone()
         at ff14bot.NeoProfiles.ProfileBehavior.get_IsDoneCache()
         at ff14bot.NeoProfiles.TreeNode`1.Find()
         at ff14bot.NeoProfiles.TreeNode`1.Find()
         at ..()
         at ff14bot.NeoProfiles.NeoProfileManager.UpdateCurrentProfileBehavior()
         at ff14bot.BotBases.OrderBot.(Object , EventArgs )
         at ff14bot.Behavior.BrainBehavior.()
      [00:12:01.470 N] Bot Thread Ended. Was this requested?
       
    16. Thecamel

      Thecamel Community Developer

      Joined:
      Aug 8, 2012
      Messages:
      2,036
      Likes Received:
      46
      Trophy Points:
      48
      This was the profile working before I added

      Code:
      <If Condition="not HuntEntryCompleted(ClassJobType.Gladiator,9,2)">
      			<If Condition="not IsOnMap(145)">
      				<TeleportTo Name="Camp Drybone" AetheryteId="18" />
      			</If>
      			<Grind grindRef="Gladiator_2_9_2" PostCombatDelay="3" while="not HuntSubEntryCompleted(ClassJobType.Gladiator,9,2)" />
      		</If>
      and

      Code:
        </GrindArea>
      		<GrindArea name="Gladiator_2_9_2">
               <Hotspots>
      		<HotSpot Radius="80" XYZ="-339.1456, -11.90918, -238.0251" name = "Gladiator_2_9_2" />
               </Hotspots>
               <TargetMobs>
                  <TargetMob name="Rotting Corpse" />
               </TargetMobs>
               <MinLevel>10</MinLevel>
               <MaxLevel>50</MaxLevel>
            </GrindArea>	
      View attachment Gladiator-hotspot.xml

      This one works but dosnt have the final Gladiator_2_9_2
       
    17. Thecamel

      Thecamel Community Developer

      Joined:
      Aug 8, 2012
      Messages:
      2,036
      Likes Received:
      46
      Trophy Points:
      48
      ok so its the

      Code:
      <If Condition="not HuntEntryCompleted(ClassJobType.Gladiator,9,2)">
      That is no good...

      Will need to find sub hunter entries I guess.
       
    18. Thecamel

      Thecamel Community Developer

      Joined:
      Aug 8, 2012
      Messages:
      2,036
      Likes Received:
      46
      Trophy Points:
      48
    19. tmk147

      tmk147 New Member

      Joined:
      Oct 4, 2014
      Messages:
      21
      Likes Received:
      1
      Trophy Points:
      1
      Hey, I just saw these posts today haha. I'll be sure to test these out after work! You got the sub entries working?
       

    Share This Page