• Visit Rebornbuddy
  • [RePear] Repair Bot for Rebornbuddy

    Discussion in 'Plugins' started by kagamihiiragi17, Aug 21, 2014.

    1. Thecamel

      Thecamel Community Developer

      Joined:
      Aug 8, 2012
      Messages:
      2,036
      Likes Received:
      46
      Trophy Points:
      48
      The plugin still isnt working for me since Version .198..

      I can post some logs for you if you like, But ive had a good look through and nothing is getting logged regrading the plugin..

      its reverted back to Making its way to the NPC- but failing to get pass the first NPC dialog box..

      F it.. Here is the log if you want to look..

      View attachment 31052 2014-11-14 00.38.txt

      Code:
      [14:30:15.290 D] [POI Set] Type: Vendor
      [14:30:15.290 N] Moving to vendor...
      [14:30:15.355 D] DoAction Mount 1 0xE0000000
      [14:30:16.976 D] Requesting path on 139 from <390.4217, -2.659623, 209.2819> to <427.2678, 4.098778, 115.2819>
      [14:30:18.013 D] Generated path to <427.2678, 4.098778, 115.2819> in 00:00:01.0367361 ms
      [14:30:18.753 D] Moving to next hop: <384.878, -2.552015, 205.3919> ([RePear] Moving to No Vendor Vendor) D: 3.844733
      [14:30:19.097 D] Moving to next hop: <383.6383, -3.220174, 203.7364> ([RePear] Moving to No Vendor Vendor) D: 2.54554
      [14:30:19.304 D] Moving to next hop: <382.847, -2.817881, 204.4322> ([RePear] Moving to No Vendor Vendor) D: 1.314582
      [14:30:19.376 D] Moving to next hop: <378.4147, -2.295414, 203.8609> ([RePear] Moving to No Vendor Vendor) D: 5.191014
      [14:30:19.862 D] Moving to next hop: <376.0538, -1.816533, 205.1465> ([RePear] Moving to No Vendor Vendor) D: 3.397737
      [14:30:20.143 D] Moving to next hop: <373.3039, -1.512947, 204.5466> ([RePear] Moving to No Vendor Vendor) D: 3.502053
      [14:30:20.492 D] Moving to next hop: <372.1573, -1.52957, 203.5045> ([RePear] Moving to No Vendor Vendor) D: 1.832309
      [14:30:20.636 D] Moving to next hop: <372.0818, -2.143109, 201.5422> ([RePear] Moving to No Vendor Vendor) D: 2.387146
      [14:30:20.851 D] Moving to next hop: <371.917, -2.229885, 200.7701> ([RePear] Moving to No Vendor Vendor) D: 1.200948
      [14:30:20.919 D] Moving to next hop: <369.9106, -3.341374, 194.543> ([RePear] Moving to No Vendor Vendor) D: 7.182607
      [14:30:21.688 D] Moving to next hop: <370.0331, -3.060965, 194.3014> ([RePear] Moving to No Vendor Vendor) D: 0.5385724
      [14:30:21.761 D] Moving to next hop: <370.0618, -3.017934, 194.2617> ([RePear] Moving to No Vendor Vendor) D: 0.1563902
      [14:30:21.833 D] Moving to next hop: <370.2461, -2.741374, 194.0101> ([RePear] Moving to No Vendor Vendor) D: 1.015728
      [14:30:21.904 D] Moving to next hop: <370.9961, -2.613139, 193.2601> ([RePear] Moving to No Vendor Vendor) D: 1.206672
      [14:30:21.974 D] Moving to next hop: <369.6428, -2.524565, 192.8034> ([RePear] Moving to No Vendor Vendor) D: 1.322942
      [14:30:22.043 D] Moving to next hop: <373.9053, -1.669586, 190.7965> ([RePear] Moving to No Vendor Vendor) D: 4.573975
      [14:30:22.469 D] Moving to next hop: <375.135, -1.681456, 189.2157> ([RePear] Moving to No Vendor Vendor) D: 2.645812
      [14:30:22.681 D] Moving to next hop: <375.7427, -2.171547, 188.7776> ([RePear] Moving to No Vendor Vendor) D: 1.537467
      [14:30:22.825 D] Moving to next hop: <374.7617, -1.438562, 190.0868> ([RePear] Moving to No Vendor Vendor) D: 1.642341
      [14:30:22.963 D] Moving to next hop: <374.0078, -1.59448, 190.137> ([RePear] Moving to No Vendor Vendor) D: 0.9129487
      [14:30:23.030 D] Moving to next hop: <374.1026, -1.907084, 188.5675> ([RePear] Moving to No Vendor Vendor) D: 1.524153
      [14:30:23.166 D] Moving to next hop: <374.0665, -1.741381, 187.7789> ([RePear] Moving to No Vendor Vendor) D: 1.115283
      [14:30:23.236 D] Moving to next hop: <373.9938, -1.641378, 186.6559> ([RePear] Moving to No Vendor Vendor) D: 1.605533
      [14:30:23.376 D] Moving to next hop: <375.5467, -2.262351, 186.5574> ([RePear] Moving to No Vendor Vendor) D: 1.663461
      [14:30:23.514 D] Moving to next hop: <374.6921, -2.898742, 181.7501> ([RePear] Moving to No Vendor Vendor) D: 4.964231
      [14:30:24.019 D] Moving to next hop: <369.8461, -3.341374, 170.0101> ([RePear] Moving to No Vendor Vendor) D: 13.09222
      [14:30:25.400 D] Moving to next hop: <363.4461, -3.341374, 150.8101> ([RePear] Moving to No Vendor Vendor) D: 20.94604
      [14:30:27.692 D] Moving to next hop: <361.3712, -3.341374, 115.3245> ([RePear] Moving to No Vendor Vendor) D: 35.81743
      [14:30:31.651 D] Moving to next hop: <362.1339, -2.941367, 74.96137> ([RePear] Moving to No Vendor Vendor) D: 40.58369
      [14:30:36.087 D] Moving to next hop: <366.5628, -2.345233, 75.66412> ([RePear] Moving to No Vendor Vendor) D: 4.497241
      [14:30:36.550 D] Moving to next hop: <392.4671, 0.1586265, 75.50095> ([RePear] Moving to No Vendor Vendor) D: 26.35279
      [14:30:39.441 D] Moving to next hop: <401.5711, 4.158627, 80.93512> ([RePear] Moving to No Vendor Vendor) D: 11.46362
      [14:30:40.548 D] Moving to next hop: <414.5962, 4.158627, 84.61013> ([RePear] Moving to No Vendor Vendor) D: 14.26708
      [14:30:42.062 D] Moving to next hop: <415.2961, 4.158627, 86.2101> ([RePear] Moving to No Vendor Vendor) D: 2.243446
      [14:30:42.290 D] Moving to next hop: <421.0462, 4.158627, 106.0101> ([RePear] Moving to No Vendor Vendor) D: 20.80504
      [14:30:44.573 D] Moving to next hop: <427.2678, 4.098778, 115.2819> ([RePear] Moving to No Vendor Vendor) D: 11.36803
      [14:30:45.837 D] Targeting Merchant & Mender 0x3FE14A 0x1080CF70
      [14:30:45.837 D] Interacting with Merchant & Mender 0x1080CF70
      [14:31:00.339 N] [RePear] Repaired!
      [14:31:00.389 V] [Poi.Clear] Reason: [RePear] Reached Camp Bronze Lake Vendor and Repaired!
      [14:31:00.389 N] [RePear] Resuming Order Bot from here!
      [14:31:00.458 N] [RePear] Repair interval set as 0 hours and 10 minutes.
      [14:31:00.458 N] [RePear] Starting Timer
      [14:31:02.609 D] [POI Set] Type: Gather
      [14:31:02.687 D] DoAction Mount 1 0xE0000000
      [14:31:04.303 D] Requesting path on 139 from <426.9045, 4.098778, 114.7339> to <448.9651, -2.054595, 149.4087>

      Thats the highlighted Problem.
       

      Attached Files:

    2. kagamihiiragi17

      kagamihiiragi17 Community Developer

      Joined:
      Jun 24, 2014
      Messages:
      873
      Likes Received:
      25
      Trophy Points:
      0
      It's working fine for me with Order Bot, please verify that your keybindings are correct, that your settings do not have "Enable Gamepad" checked, and that you're not moving your mouse over the FFXIV screen (this takes the control away from the plugin, which is sort of acting as your mouse) while the bot is repairing.
       
    3. Thecamel

      Thecamel Community Developer

      Joined:
      Aug 8, 2012
      Messages:
      2,036
      Likes Received:
      46
      Trophy Points:
      48
      Yep- checked all these settings a few times..
       
    4. Thecamel

      Thecamel Community Developer

      Joined:
      Aug 8, 2012
      Messages:
      2,036
      Likes Received:
      46
      Trophy Points:
      48
      With the exception of the developer anyone using the English version of this bot and game actually have this plugin working since 198 ?
       
    5. ZaneMcFate

      ZaneMcFate Member

      Joined:
      Nov 17, 2014
      Messages:
      137
      Likes Received:
      2
      Trophy Points:
      18
      I've been having good results, but I left it to run for several hours and RePear went through its normal rotation, but was not successfully repairing in The Mirror Planks (i.e. my character had 0% status on all armor). I've attached my log, in which RePear doesn't seem to detect any problems. I'm going to try to watch it go off and repair this time and attach another log if I see it do anything odd.

      Update: I could not reproduce this while watching it on a ten minute cycle, so I'm not sure what to make of it. I'll update if I see the problem again.
       

      Attached Files:

      Last edited: Nov 23, 2014
    6. ZaneMcFate

      ZaneMcFate Member

      Joined:
      Nov 17, 2014
      Messages:
      137
      Likes Received:
      2
      Trophy Points:
      18
      I also have another anomaly that seems unrelated. RePear gives a "no vendor" status at Camp Drybone for me, though I can see in your code that the vendor exists. Log attached for this one too.
       

      Attached Files:

    7. ZaneMcFate

      ZaneMcFate Member

      Joined:
      Nov 17, 2014
      Messages:
      137
      Likes Received:
      2
      Trophy Points:
      18
      Attaching another log; it looks like the Wineport vendor is navigating oddly. It runs me into a wall on the outside of the castle.
       

      Attached Files:

    8. tmk147

      tmk147 New Member

      Joined:
      Oct 4, 2014
      Messages:
      21
      Likes Received:
      1
      Trophy Points:
      1
      Oh, I just found out why the repair bot messes up sometimes! So if I go to the vendor and a fate is completed while I'm talking to him, the bot will interact with the fate "Success" message instead of interacting with the window. Basically, it changes the active window. Do you know any workaround to that? I'm not really concerned about it since I can check up on my bot pretty often, but I'm just pretty excited to know why I come back and it's stuck on the repair window haha. If this has already been discovered in any of the previous 17 pages worth of posts I am going to feel really lame... haha.
       
    9. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      would explain why sometimes it doesn't work but it's fine with orderbot/testing :p
       
    10. emchamp

      emchamp New Member

      Joined:
      Nov 13, 2014
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      Having issue with RePear reaching a vendor but not actually repairing, it will have the repair window open but do nothing with it. It seems to get stuck and not let FateBot continue (in the log I exited out of the window manually to let it continue).
      RePearLog - Pastebin.com

      Here's my Keybindings:
      [​IMG]
      [​IMG]

      I also disabled gamepad.
       
      Last edited: Nov 25, 2014
    11. kagamihiiragi17

      kagamihiiragi17 Community Developer

      Joined:
      Jun 24, 2014
      Messages:
      873
      Likes Received:
      25
      Trophy Points:
      0
      Can you verify if a FATE completed in the middle of RePear doing its work? tmk147 brought up an interesting discovery about why RePear sometimes has issues with the FATE Bot, but I've been hard at work on another project and haven't gotten to test it much nor look at the plugin.

      Thanks for your report!
       
    12. Yasuko

      Yasuko Member

      Joined:
      Oct 28, 2010
      Messages:
      314
      Likes Received:
      6
      Trophy Points:
      18
      Hi kagamihiiragi17, can you add support of when to repair via % of condition of gear.. if overall gear condition percentage is like 30% to run and repair, or have a user set variable for percent?
       
    13. emchamp

      emchamp New Member

      Joined:
      Nov 13, 2014
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      No fate interaction window when the bot goes to the vendor. It simply gets stuck at the vendor interaction window every time.
       
    14. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      your key bindings don't actually show the system key bindings :S
       
    15. midouharuki

      midouharuki Member

      Joined:
      Nov 1, 2014
      Messages:
      64
      Likes Received:
      0
      Trophy Points:
      6
    16. midouharuki

      midouharuki Member

      Joined:
      Nov 1, 2014
      Messages:
      64
      Likes Received:
      0
      Trophy Points:
      6
    17. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      instead of adding custom movement handling for troublesome vendors, maybe you can change movement to til los, then move to a point generated between us?

      Code:
      MathEx.GetPointAt(o.Location, 6f, MathEx.NormalizeRadian(MathHelper.CalculateHeading(Core.Me.Location, o.Location)));
      or actually, to make sure it's on the mesh you might need to move to a random spot within 1f...

      Is there any way to get the nearest point on the mesh from a point?

      btw, I just noticed you use an interact distance of 5 instead of the max interact distance of 7, was 7/6 causing issues for you? :S

      edit: oh duh, you could just change
      Code:
      CommonBehaviors.MoveAndStop(ret => Poi.Current.Location, 1f, true
      to
      CommonBehaviors.MoveAndStop(ret => Poi.Current.Location, 5f, true
      or would that also stop while not in los?
      If that's the case, you could use false while !los and then true
       
      Last edited: Dec 3, 2014
    18. midouharuki

      midouharuki Member

      Joined:
      Nov 1, 2014
      Messages:
      64
      Likes Received:
      0
      Trophy Points:
      6
      what the mean?

      addition View attachment 5296 2014-12-04 11.26.txt
       
    19. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      that post was directed @kagamihiiragi17

      :p
       
    20. midouharuki

      midouharuki Member

      Joined:
      Nov 1, 2014
      Messages:
      64
      Likes Received:
      0
      Trophy Points:
      6
      i want change code,but where change code?
      plz tell me
       

    Share This Page