• Visit Rebornbuddy
  • [Orderbot] [Plugin] [Fish v3.0+] and profiles support thread

    Discussion in 'Fishing profiles' started by ExMatt, Aug 25, 2015.

    1. ExMatt

      ExMatt Active Member

      Joined:
      Jul 5, 2015
      Messages:
      1,030
      Likes Received:
      14
      Trophy Points:
      38

      That still looks like a good profile, Is the skywatcher working well?...its not a true plugin, but i felt like creating it as a plugin worked out best. Also if I have some free time to go on a coding binge, I might rewrite it so that it uses Garland tools algorithms which can predict the weather in Eorzea until the end of time afaik.


      The only suggestion i would make, depending on your priority, is to use the PredictWeatherInZone ( TimeSpan.FromHours(1) or TimeSpan.FromMinutes(30)) depending on how long it takes to get to the location/stop what you are doing etc.
       
      Last edited: Aug 28, 2015
    2. Azoth

      Azoth Member

      Joined:
      Mar 6, 2014
      Messages:
      470
      Likes Received:
      8
      Trophy Points:
      18
      I didn't have much time to test extensively, but it worked pretty well from what I could see. Only annoying thing was finding the weatherIDs; I didn't know (and still don't) the RBconsole line to get the list of them.
      I'll probably add PredictWeatherInZone to future weather fish profiles, but at the time I wanted to keep things simple to make testing easier.
       
    3. ExMatt

      ExMatt Active Member

      Joined:
      Jul 5, 2015
      Messages:
      1,030
      Likes Received:
      14
      Trophy Points:
      38
      You can use SkywatcherPlugin.PredictWeatherInZone(398, "Clouds", "Fog", "Dust Storms") also, but putting quotes into a bunch of conditions sucks.


      here... this is what I sometimes will check.
      Code:
      foreach(var kvp in WorldManager.WeatherDictionary)
      {
      Log("{0} - {1}", kvp.Key, kvp.Value);
      }
      
      
      I don't know if both 14 and 26 heatwaves can both spawn in South Than, but i have a feeling only the lower numbered ones ever end up in standard zones if they have duplicates.
       
    4. Azoth

      Azoth Member

      Joined:
      Mar 6, 2014
      Messages:
      470
      Likes Received:
      8
      Trophy Points:
      18
      Cool thanks, didn't know I could just use the string.
      I assume one Heat Wave is the actual world weather, and the other is the weather in an instance encounter (Ifrit?).
       
    5. ExMatt

      ExMatt Active Member

      Joined:
      Jul 5, 2015
      Messages:
      1,030
      Likes Received:
      14
      Trophy Points:
      38
      Probably
       
    6. ExMatt

      ExMatt Active Member

      Joined:
      Jul 5, 2015
      Messages:
      1,030
      Likes Received:
      14
      Trophy Points:
      38
      by the way.....when it comes to sweetfish and blueclaw shrimp, i usually add this moochCondition="Core.Player.HasAura(850)"

      Since both the HQ of those fish sell well, i don't want to mooch them unless i have patience up. It also helps if you are trying to mooch a fish that can only be caught in certain weather/certain times to use this attribute.
       
    7. Azoth

      Azoth Member

      Joined:
      Mar 6, 2014
      Messages:
      470
      Likes Received:
      8
      Trophy Points:
      18
      Mm, I'll keep that in mind.
      Will the tag only mooch fish designated as Keepers? I recall last week I set the Illuminati profile to only keep Illuminatis, and it wouldn't mooch off Sweetfish or Hedgemoles. Also, is there a reason the example profile keeps Hinterlands Perch? I'm not aware it has any particular value.
       
    8. ExMatt

      ExMatt Active Member

      Joined:
      Jul 5, 2015
      Messages:
      1,030
      Likes Received:
      14
      Trophy Points:
      38
      It desynths ok, and is good for skillups, so i send them to my friend.

      At one point i had a bug in the code where it would only mooch off keepers. Now it also mooches off anything not listed as keepers again...so it is less confusing and requires less setup.

      These are the options for action attribute, default is KeepAll

      DontKeep = 0x00,
      KeepNq = 0x01,
      KeepHq = 0x02,
      // MoochFlag = 0x04,
      KeepAll = 0x03, // KeepNq | KeepHq
      Mooch = 0x06, // KeepHq | MoochFlag
      MoochKeepNq = 0x07 // KeepNq | KeepHq | MoochFlag
       
    9. ExMatt

      ExMatt Active Member

      Joined:
      Jul 5, 2015
      Messages:
      1,030
      Likes Received:
      14
      Trophy Points:
      38
      Thanks, Good stuff.

      I had been working on some collectable turn in...but didn't get very far since I am literally just doing some trial and error.

      Code:
      
      // Interact() then
      
      var window = RaptureAtkUnitManager.GetWindowByName("MasterPieceSupply");
      
      window.SendAction(3,3,2,9,0,0,0); // carpenter
      
      
       
    10. ExMatt

      ExMatt Active Member

      Joined:
      Jul 5, 2015
      Messages:
      1,030
      Likes Received:
      14
      Trophy Points:
      38
      For the thunderbolt eels....i tried fishing some manually..and i feel like I could make 1 more additional change to support the proper technique... hookset="None" and then moochHookset="PowerfulHookset" . I think I have only found it useful on a few occasions.

      Especially if you are burning cordials to put up patience, the catch rate is actually at least 25-30% higher using stonefly nymph from my experience. But even the Bladed Steel Jig catches them at a similar rate to the Brute Leech.

      Best scenario in my opinion.

      Bait: Stonefly Nymph
      Weather: Clear Skies, Fair Skies, Thunder (unless you want pipira pira, then you can go during whatever weather).
      6-9pm: Caiman, collect all and reduce
      9pm-3am: Eels, collect and turn in.
       
    11. schopenhauer

      schopenhauer Member

      Joined:
      Jul 22, 2014
      Messages:
      218
      Likes Received:
      12
      Trophy Points:
      18
      Am I missing a plugin or do I have a file in the improper place? Where does the FlightPathTo.cs file go? Aside from that I get this error when I try to load the thunderbolt eel xml posted on the last page

      Code:
      [13:35:58.757 N] Failed to load profile: Element NPCRepair is not supported. Please check your XML and try again. (<NPCRepair NpcId="1012094" XYZ="81.17978, 207.0322, 2.168118" />) Line 20
      [13:35:58.760 D] System.Exception: Element NPCRepair is not supported. Please check your XML and try again. (<NPCRepair NpcId="1012094" XYZ="81.17978, 207.0322, 2.168118" />) Line 20
         at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
         at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
         at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
         at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
         at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
         at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
         at Clio.XmlEngine.PropertyProcessor.(XElement , Type )
         at Clio.XmlEngine.PropertyProcessor..(XElement )
         at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
         at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
         at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
         at Clio.XmlEngine.PropertyProcessor.(XElement , PropertyInfo )
         at Clio.XmlEngine.PropertyProcessor.(PropertyInfo , XElement , Object )
         at Clio.XmlEngine.XmlEngine.Load(Object obj, XElement element)
         at ff14bot.NeoProfiles.NeoProfile.Load(XElement element, String path)
         at ff14bot.NeoProfiles.NeoProfile.Load(String path)
         at ff14bot.NeoProfiles.NeoProfileManager.Load(String profilePath, Boolean rememberPath)
       
    12. y2krazy

      y2krazy Community Developer

      Joined:
      Jun 21, 2011
      Messages:
      2,803
      Likes Received:
      70
      Trophy Points:
      48
      schopenhauer likes this.
    13. Spideyknight

      Spideyknight New Member

      Joined:
      Aug 12, 2015
      Messages:
      15
      Likes Received:
      0
      Trophy Points:
      0

      Thanks for everything. I'm giving the Thunderbolt Eel a try and the only problem is that it won't eat Dhalmel Gratin for some reason. I replaced it in the profile and I have 99 HQ ones in my bag, but it just won't use them. I'm using ExMatt's fish.cs file though, since it works like a champ and I'm hesitant to change it. Not sure if that would make a difference?
       
    14. schopenhauer

      schopenhauer Member

      Joined:
      Jul 22, 2014
      Messages:
      218
      Likes Received:
      12
      Trophy Points:
      18
      I used the one provided in the link that had the thunderbolt eel .xml, I wasn't sure where they went so i put them in the main orderbottags folder, as well ass the fish folder to double up, but I still have the issue, unless I need to do something more than just have it in that directory.
       
    15. mistahmikey

      mistahmikey New Member

      Joined:
      Jun 29, 2015
      Messages:
      161
      Likes Received:
      3
      Trophy Points:
      0
      I have editted my original post to make using my modifications a bit more straightforward (hopefully). Sorry for the confusion that, in retrospect, I am not surprised my original post caused.

      I did not intend to hijack ExMatt's thread here as I have clearly done, so I apologize to him for thoughtlessly doing so. I am hopeful that he might incorporate my enhancements into his offering. I have deleted my original post and moved it to it's own thread (https://www.thebuddyforum.com/rebor...938-modification-exmatts-fishing-profile.html), so please ask questions there in the future
       
      Last edited: Aug 30, 2015
    16. ExMatt

      ExMatt Active Member

      Joined:
      Jul 5, 2015
      Messages:
      1,030
      Likes Received:
      14
      Trophy Points:
      38

      I will gladly add in your enhancements, I was also going to be adding cordials (food was iffy since gourmetguy is relatively popular, but i guess having a profile that has specific food is ok for fishing, since you would prefer gatheirng or gp to min/btn which probably prefers gp/perception. Idk if gourmetguy has an offering to specify a food per job or just a single food, so i will look into that.
       
    17. mistahmikey

      mistahmikey New Member

      Joined:
      Jun 29, 2015
      Messages:
      161
      Likes Received:
      3
      Trophy Points:
      0
      I was using a version of Chanko that I modified for food consumption, but it did not always play well with the fishing cycle, since you cannot consume food while fishing (i.e, you have to "quit" to do so.) That is why I added it in directly into the fishing code (which does force "quit" to occur when it makes sense so food can be consumed), but no idea if Gourmet Guy would experience the same issues.
       
    18. ExMatt

      ExMatt Active Member

      Joined:
      Jul 5, 2015
      Messages:
      1,030
      Likes Received:
      14
      Trophy Points:
      38
      GourmetGuy (afaik, i have seen a code chunk) will quit fishing for you, but might do it during patience.
       
    19. schopenhauer

      schopenhauer Member

      Joined:
      Jul 22, 2014
      Messages:
      218
      Likes Received:
      12
      Trophy Points:
      18
      Sorry to clutter this up, but when I start the bot (in addition to what I posted prior) I'm getting this error, I'm assuming this is why the xml's are not working for me that use them, but I get this:

      Code:
      [20:53:03.954 D] Reloading AssemblyLoader<ff14bot.Interfaces.IBotPlugin> - Initializing
      [20:53:05.022 N] Compiler Error: d:\Program Files\Reborn Buddy\Plugins\OrderBotTags\Fish\FlightPathTo.cs(23,18) : error CS0101: The namespace 'ff14bot.NeoProfiles' already contains a definition for 'FlightPathTo'
      [20:53:05.022 N] Compiler Error: d:\Program Files\Reborn Buddy\Plugins\OrderBotTags\Fish\NPCRepairTag.cs(16,18) : error CS0101: The namespace 'ff14bot.NeoProfiles' already contains a definition for 'NPCRepairTag'
      [20:53:05.022 N] Compiler Error: d:\Program Files\Reborn Buddy\Plugins\OrderBotTags\Fish\TurnInCollectable.cs(32,18) : error CS0101: The namespace 'ff14bot.NeoProfiles' already contains a definition for 'TurnInCollectableTag'
      [20:53:05.022 N] Compiler Error: d:\Program Files\Reborn Buddy\Plugins\OrderBotTags\Imported\FlightPathTo.cs(20,18) : error CS0101: The namespace 'ff14bot.NeoProfiles' already contains a definition for 'FlightPathTo'
      Do NPCRepairTag.cs/TurnInCollectable.cs and the FlightPathTo.cs belong in the imported folder?
       
      Last edited: Aug 30, 2015
    20. mistahmikey

      mistahmikey New Member

      Joined:
      Jun 29, 2015
      Messages:
      161
      Likes Received:
      3
      Trophy Points:
      0
      Please see post #35 above. I am not sure why TurnInCollectable would be giving you that message, because AFAIK it should be unique, as I created it.
      For sure, you cannot have the two FlightPathTo tag definitions in the Plugins directory tree. I believe the loader searches the entire hierarchy looking for stuff to load. If you go to the new thread I identified in #35, try following the "how to use" instructions, and see if you get a better result.
       

    Share This Page