• Visit Rebornbuddy
  • [Release] RebornBuddy64 Version 1.0.424 - DirectX11 / x64 bit compatible

    Discussion in 'Rebornbuddy Forum' started by mastahg, Feb 29, 2016.

    1. newb23

      newb23 Community Developer

      Joined:
      Nov 26, 2014
      Messages:
      397
      Likes Received:
      15
      Trophy Points:
      18
      Hey @mastahg,

      Have you had a chance to look at the charge skills yet? IE: The abilities that can be cast X times, and for each after the first they start to recharge one-at-a-time? I tried looking for spell.Charge in the assembly, but didn't see anything.

      Kassatsu and Shukuchi for Ninja, True North for DPS classes, Redraw for AST, etc.

      Being able to check against those charges would be super handy for some advanced casting logic.
       
    2. newb23

      newb23 Community Developer

      Joined:
      Nov 26, 2014
      Messages:
      397
      Likes Received:
      15
      Trophy Points:
      18
      I've been seeing some interesting behavior with the mounting while running my dailies. When I get to a location, I very frequently run into an issue where the re-mounting process never completes and has the following error (at the bottom). I am running SoDimm's Kojin daily profile in this case, but it seems not to matter which profile it is, it frequently does not attempt to mount up again after X task.
      Code:
      [17:45:52.664 N] Loaded profile [OrderBot] Kojin Dailies.
      [17:45:52.665 N] Bot Thread Started.
      [17:45:52.759 N] Clearing all hooks.
      [17:45:52.760 D] Replaced hook [PreCombatBuff] 8eb1b2da-4260-4a41-ac3c-9dab9508300c
      [17:45:52.760 D] Replaced hook [Heal] dc58705f-5a6b-4c80-a6fe-20f69de2f02e
      [17:45:52.760 D] Replaced hook [Pull] 0c232da3-b8a0-4718-8a71-598e4567d5e0
      [17:45:52.760 D] Replaced hook [CombatBuff] 828c7869-034c-4274-b18d-872ff8c66a63
      [17:45:52.760 D] Replaced hook [Combat] 19a99161-d4a0-41d0-8845-964b25ab9a9a
      [17:45:52.760 D] Replaced hook [Rest] cb8ba388-4f98-4166-9b2b-135d79f4b055
      [17:45:52.776 D] Added new hook [RoutineCombat] 3d1e4966-5e9f-472d-8a27-c0a4e6d2ac01
      [17:45:52.779 D] Added new hook [HotspotPoi] de5da303-d3a7-4f15-9418-a97658ac2783
      [17:45:52.780 D] Added new hook [SetDeathPoi] 848cb10e-0ba0-4331-9f82-c85260ce166b
      [17:45:52.780 D] Added new hook [SetCombatPoi] 3d37a113-ccc4-4029-9d3a-5fdde0bc2424
      [17:45:52.780 D] Added new hook [SetHotspotPoi] bba74cbd-1ba9-41e6-aaee-2c78efac2d5a
      [17:45:52.780 D] Added new hook [SelectPoiType] f6aa7817-330f-4c9b-a517-ab39929f803d
      [17:45:52.781 D] Replaced hook [SelectPoiType] 91b23fc8-1a64-44ac-b8d4-c688539c07b4
      [17:45:52.782 D] Inserted new hook [TreeStart @0] 709eb448-1b04-4ab9-8716-fcc97e847322
      [17:45:52.828 V] [Poi.Clear] Reason: Current behavior changed to RunCode: LineNumber: 11, Name: Disable_Flight, IsDone: False, HighPriority: False, InCombat: False, QuestId: 0, StepId: 0, PostCombatDelay: 0, QuestName: null, IsDoneCache: False, Behavior: null, .
      [17:45:52.830 D] Removed all hooks from [HighPriorityProfileOrderBehavior_Hook]
      [17:45:52.830 D] Replaced hook [ProfileOrderBehavior_Hook] 82d74967-377a-4331-a51a-c4e9dcf1a8aa
      [17:45:52.863 V] [Poi.Clear] Reason: Current behavior changed to RegisterDailiesTag: LineNumber: 12, IsDone: False, QuestIds: System.Int32[], HighPriority: False, InCombat: False, QuestId: 0, StepId: 0, PostCombatDelay: 0, QuestName: null, IsDoneCache: False, Behavior: null, .
      [17:45:53.135 V] [Poi.Clear] Reason: Current behavior changed to TeleportTo: LineNumber: 52, ZoneId: 0, AetheryteId: 105, Name: Tamamizu, Force: True, Aetheryte: null, IsDone: False, HighPriority: False, InCombat: False, QuestId: 0, StepId: 0, PostCombatDelay: 0, QuestName: null, IsDoneCache: False, Behavior: null, .
      [17:45:53.143 D] Replaced hook [ProfileOrderBehavior_Hook] 2a32f085-d1ee-41d7-ab9d-aea7a4e15978
      [17:45:53.151 D] Teleporting to Tamamizu
      [17:46:04.301 V] [Poi.Clear] Reason: Current behavior changed to PickupQuestTag: LineNumber: 135, IsDone: False, InteractDistance: 3, NpcId: 1024217, XYZ: <394.3998, -119.5893, -232.2881>, HighPriority: False, InCombat: False, QuestId: 68535, StepId: 0, PostCombatDelay: 0, QuestName:  You Blow It Up, IsDoneCache: False, Behavior: null, .
      [17:46:04.303 N] [PickupQuestTag] Picking up quest  You Blow It Up(68535) from  at <394.3998, -119.5893, -232.2881>
      [17:46:04.308 D] Replaced hook [ProfileOrderBehavior_Hook] ef4354d5-fbc5-48d3-b672-90676592b3ef
      [17:46:04.331 D] Moving to [PickupQuestTag] Moving to <394.3998, -119.5893, -232.2881> so we can pickup  You Blow It Up from  from <357.9887, -119.0445, -253.5381>
      [17:46:04.347 N] Requesting path on 613 from <357.9887, -119.0445, -253.5381> to <394.3998, -119.5893, -232.2881> within 5 ([PickupQuestTag] Moving to <394.3998, -119.5893, -232.2881> so we can pickup  You Blow It Up from )
      [17:46:04.921 N] Received path response to <394.3998, -119.5893, -232.2881> in 00:00:00.5713857 ms
      [17:46:11.967 D] Interacting with Zukin 0x2123FECACB0
      [17:46:16.968 V] [Poi.Clear] Reason: Current behavior changed to PickupQuestTag: LineNumber: 139, IsDone: False, InteractDistance: 3, NpcId: 1024217, XYZ: <394.3998, -119.5893, -232.2881>, HighPriority: False, InCombat: False, QuestId: 68536, StepId: 0, PostCombatDelay: 0, QuestName:  Tentacles of Trade, IsDoneCache: False, Behavior: null, .
      [17:46:16.968 N] [PickupQuestTag] Picking up quest  Tentacles of Trade(68536) from  at <394.3998, -119.5893, -232.2881>
      [17:46:16.969 D] Replaced hook [ProfileOrderBehavior_Hook] 1577960a-ce5c-4e49-963a-f01f7f28c7c5
      [17:46:16.969 D] Interacting with Zukin 0x2123FECACB0
      [17:46:18.969 V] [Poi.Clear] Reason: Current behavior changed to PickupQuestTag: LineNumber: 143, IsDone: False, InteractDistance: 3, NpcId: 1024217, XYZ: <394.3998, -119.5893, -232.2881>, HighPriority: False, InCombat: False, QuestId: 68537, StepId: 0, PostCombatDelay: 0, QuestName:  The Hot-blooded Kojin, IsDoneCache: False, Behavior: null, .
      [17:46:18.969 N] [PickupQuestTag] Picking up quest  The Hot-blooded Kojin(68537) from  at <394.3998, -119.5893, -232.2881>
      [17:46:18.969 D] Replaced hook [ProfileOrderBehavior_Hook] d1744e7f-c782-4693-aaee-2e527ea435a1
      [17:46:18.969 D] Interacting with Zukin 0x2123FECACB0
      [17:46:20.630 V] [Poi.Clear] Reason: Current behavior changed to RunCode: LineNumber: 467, Name: ExitTamamizu, IsDone: False, HighPriority: False, InCombat: False, QuestId: 0, StepId: 0, PostCombatDelay: 0, QuestName: null, IsDoneCache: False, Behavior: null, .
      [17:46:20.630 D] Replaced hook [ProfileOrderBehavior_Hook] 7e722b97-15df-4ae8-9de9-967533456160
      [17:46:20.638 D] [Flightor] Set up for movement from <396.3787, -119.5893, -234.0548> to <325.959, -120.3188, -308.8289>
      [17:46:20.665 N] Requesting path on 613 from <396.3787, -119.5893, -234.0548> to <325.959, -120.3188, -308.8289> within 5 ()
      [17:46:20.719 N] Received path response to <325.959, -120.3188, -308.8289> in 00:00:00.0541168 ms
      [17:46:20.764 D] [Flightor] Set up for movement from <396.3787, -119.5893, -234.0548> to <325.959, -120.3188, -308.8289>
      [17:46:20.769 D] DoAction General 9 0xE0000000
      [17:46:40.693 V] [Poi.Clear] Reason: Current behavior changed to FlyTo: LineNumber: 474, XYZ: <-162.8291, -192.5231, 255.6344>, Name: null, AllowedVariance: 1, ArrivalTolerance: 0.5, MinHeight: 0, Hotspots: null, Land: False, Dismount: False, IgnoreIndoors: True, IsDone: False, HighPriority: False, InCombat: False, QuestId: 0, StepId: 0, PostCombatDelay: 0, QuestName: null, IsDoneCache: False, Behavior: null, .
      [17:46:40.693 D] Replaced hook [ProfileOrderBehavior_Hook] 71d74623-896f-404e-88eb-fbf2da2fea99
      [17:46:40.697 D] [Flightor] Set up for movement from <261.8726, -100.5327, -388.7693> to <-162.8291, -192.5231, 255.6344>
      [17:47:29.477 N] [FlyTo] FlyTo behavior complete.  Arrived at destination ''
      [17:47:29.558 V] [Poi.Clear] Reason: Current behavior changed to UseObjectTag: LineNumber: 475, CustomLogic: TreeSharp.Decorator, IsDone: False, Condition: null, Conditional: null, XYZ: <-162.8291, -192.5231, 255.6344>, WaitTime: 0, UseHealthPercent: 0, LacksAuraId: 0, BlacklistDuration: 180, UseDistance: 3.24, UseTimes: 0, Radius: 50, NpcIds: System.Int32[], Hotspots: Clio.Utilities.IndexedList`1[ff14bot.Navigation.HotSpot], IgnoreLOS: False, BlacklistAfter: False, InCombat: False, InCombatOnly: False, Position: null, CustomCombatLogic: null, Target: null, HighPriority: False, QuestId: 68536, StepId: 1, PostCombatDelay: 0, QuestName:  Tentacles of Trade, IsDoneCache: False, Behavior: null, .
      [17:47:29.559 N] [UseObjectTag] Started
      [17:47:29.573 D] Replaced hook [ProfileOrderBehavior_Hook] fc3b6d2c-bcad-47e3-98d7-cbd34acf8343
      [17:47:29.574 N] [UseObjectTag] Target set to Octopus Trap 0x2123FF52E70
      [17:47:29.579 D] Interacting with Octopus Trap 0x2123FF52E70
      [17:47:40.698 N] [UseObjectTag] Done
      [17:47:40.698 V] [Poi.Clear] Reason: Current behavior changed to FlyTo: LineNumber: 580, XYZ: <-607.7821, 7.003784, 184.8325>, Name: null, AllowedVariance: 1, ArrivalTolerance: 0.5, MinHeight: 0, Hotspots: null, Land: True, Dismount: False, IgnoreIndoors: True, IsDone: False, HighPriority: False, InCombat: False, QuestId: 0, StepId: 0, PostCombatDelay: 0, QuestName: null, IsDoneCache: False, Behavior: null, .
      [17:47:40.698 D] Replaced hook [ProfileOrderBehavior_Hook] 09806f46-a1c6-462c-9558-4afd38c4ea5a
      [17:47:40.699 D] [Flightor] Set up for movement from <-162.0824, -193.1041, 256.2789> to <-607.7821, 7.003784, 184.8325>
      [17:47:40.704 N] [Flightor] Mount up failed unexpectedly. Blacklisting current location.
      [17:48:00.770 N] [Flightor] Mount up failed unexpectedly. Blacklisting current location.
      [17:48:20.773 N] [Flightor] Mount up failed unexpectedly. Blacklisting current location.
      [17:48:40.773 N] [Flightor] Mount up failed unexpectedly. Blacklisting current location.
       
      Last edited: Jul 12, 2019
    3. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,231
      Likes Received:
      364
      Trophy Points:
      83
      I had this done at the start of the week, wanted to finish up a few other things before pushing it out.

      Version 283

      Code:
      
      AetherCurrentManager Added, has several functions for checking the progress of unlocking aether currents for a given zone.
      Two new functions are available for use in orderbot profiles
      
      IsAetherCurrentZoneComplete(zoneid)
      IsAetherCurrentCompleted(zoneid,index)
      index starts at 0. 0,1,2,3,4 are the quest aether currents and 5+ are the ones you need to interact with
      
      
      SpellData.Charges added, returns the fractional result of how many charges are available, with the fraction being the percent until the next charge is ready.
      SpellData.MaxCharges added
      SpellData.Cost will once again return the correct value for spells that cost mp.
      
      
       
    4. newb23

      newb23 Community Developer

      Joined:
      Nov 26, 2014
      Messages:
      397
      Likes Received:
      15
      Trophy Points:
      18
      Awesome! Thank you for the update!
       
    5. Sodimm

      Sodimm Member

      Joined:
      Nov 8, 2014
      Messages:
      383
      Likes Received:
      7
      Trophy Points:
      18
      Nice addition Mastahg, cheers!

      On looking at it and incorporating into profiles... I get

      Code:
      System.Exception: No id mapping found for ff14bot.RemoteAgents.AgentAetherCurrents
         at ff14bot.Managers.AgentModule.GetAgentInterfaceByType[T]()
      :(

      using both
      Code:
      Log(ConditionParser.IsAetherCurrentZoneComplete(813));
      and
      Code:
      Log(ConditionParser.IsAetherCurrentCompleted(813,0));
      Zone 813 is complete btw ;)
       
      Last edited: Jul 12, 2019
    6. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,231
      Likes Received:
      364
      Trophy Points:
      83
      Whoops forgot to hook it up, pushing a new build
       
    7. ylovez888888

      ylovez888888 New Member

      Joined:
      Sep 7, 2014
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      1
      the white scripts is still offline...sado_O
       
    8. Killstar

      Killstar New Member

      Joined:
      Jul 13, 2019
      Messages:
      3
      Likes Received:
      0
      Trophy Points:
      1
      The newest RB update has really caused flying issues for the plugin gathering Mew, can you please get this sorted ASAP. Loads of us on the discord are unable to use it atm.
       
    9. Sodimm

      Sodimm Member

      Joined:
      Nov 8, 2014
      Messages:
      383
      Likes Received:
      7
      Trophy Points:
      18
      Aether Current 5, 6 and 7 for zone 818 are returning incorrect value. (This zone is completed).

      [​IMG]

      Tested with other zones, and they're all returning correct values.
       
      Last edited: Jul 13, 2019
      Akira0245 likes this.
    10. zzi

      zzi Active Member

      Joined:
      Mar 10, 2016
      Messages:
      308
      Likes Received:
      47
      Trophy Points:
      28
      Sodimm, I love you, but this code makes me sad.

      https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/for

      Or you could have just foreached over the _intArray and gotten rid of the queue and the while loop...
       
      Akira0245 likes this.
    11. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,231
      Likes Received:
      364
      Trophy Points:
      83
      Strange, im not having that issue on my end, ill have to look into this more, also i agree with zzi that codes pretty jank.

      ====
      As for the flying issues.
      I can't get mew to work in debug mode as its looking for the merged assembly. Using it in release mode I can't really debug flightor to see if its an issue that's internal or not. If someone can produce a small profile that recreates some of the flying issues I would appreciate it. Preferably for the heavensward zones if possible as that's what my gathering is currently at.
       
    12. Sodimm

      Sodimm Member

      Joined:
      Nov 8, 2014
      Messages:
      383
      Likes Received:
      7
      Trophy Points:
      18
      Pray forgive me, I aint on your guys level, I'm pretty shit at this stuff and I aint afraid to admit it hehe. But thanks for the tips on how to improve.
       
      cfw34683 likes this.
    13. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,231
      Likes Received:
      364
      Trophy Points:
      83
      Version 285
      Code:
      
      Kupo:
      Slightly updated ninja routine
      Dancer routine added, thanks to hkme for the initial version of this.
      Basic gunbreaker routine added
      
      
       
      cfw34683 likes this.
    14. Sodimm

      Sodimm Member

      Joined:
      Nov 8, 2014
      Messages:
      383
      Likes Received:
      7
      Trophy Points:
      18
      Can't have more than one protection modifier @mastahg

      Code:
      private protected bool shouldInterject
      Code:
      protected bool shouldInterject
      should fix it ;) :D
       
    15. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,231
      Likes Received:
      364
      Trophy Points:
      83
    16. Sodimm

      Sodimm Member

      Joined:
      Nov 8, 2014
      Messages:
      383
      Likes Received:
      7
      Trophy Points:
      18
      Astrologian

      Code:
      Card Held (Arcana, Arcanum) is offset_C
      
      Card Values:
      None = 0
      Balance = 1
      Bole = 2
      Arrow = 3
      Spear = 4
      Ewer = 5
      Spire = 6
      LordofCrowns = 112
      LadyofCrowns = 128
      
      Divination Guage (Seals)
      Guage 1 is offset_D
      Guage 2 is offset_E
      Guage 3 is offset_F (maybe???)
      
      Divination Seal Values:
      Solar Seal = 1
      Lunar Seal = 2
      Celestial Seal = 3
      
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 0, offset_E: 0 } // No Cards, No Seals
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 3, offset_D: 0, offset_E: 0 } // Arrow Held in Deck (0/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 2, offset_E: 0 } //lunar seal added (1/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 2, offset_E: 1 } //solar seal added (2/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 2, offset_E: 1 } //celestial seal added (3/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 2, offset_D: 2, offset_E: 1 } // Bole Held in Deck (3/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 4, offset_D: 2, offset_E: 1 } // Spear Held in Deck (3/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 1, offset_D: 2, offset_E: 1 } // Balance Held in Deck (3/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 5, offset_D: 2, offset_E: 1 } // Ewer Held in Deck (3/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 6, offset_D: 2, offset_E: 1 } // Spire Held in Deck (3/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 128, offset_D: 2, offset_E: 1 } // Lady of Crowns Held in Deck (3/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 112, offset_D: 2, offset_E: 1 } // Lord of Crowns Held in Deck (3/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 112, offset_D: 0, offset_E: 0 } // Lord of Crowns Held in Deck (Used Divination 0/3 seals)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 3, offset_E: 1 } // 3 seals (Celestial (3), Solar (1), Lunar(2))
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 3, offset_E: 3 } // 3 seals (Celestial (3), Celestial (3), Celestial(3))
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 1, offset_E: 1 } // 3 seals (Solar (1), Solar (1), Solar (1))
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 2, offset_E: 2 } // 3 Seals (Lunar (2), Lunar (2), Lunar (2))
       
      Last edited: Jul 15, 2019
    17. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,231
      Likes Received:
      364
      Trophy Points:
      83
      @Sodimm in the latest version i've added a few new functions to the aethercurrentmanager.

      Can you please try running
      Code:
      Log(AetherCurrentManager.RawValueForZone(818));
      foreach(var byt in AetherCurrentManager.offset)
      {
      Log("{0:X}",byt);
      }
      
      and pasting the output in a private message.

      I've also added offset_F to the actionresourcemanager to see if astrologian is the first class to use it.
       
    18. Sodimm

      Sodimm Member

      Joined:
      Nov 8, 2014
      Messages:
      383
      Likes Received:
      7
      Trophy Points:
      18
      It does indeed look like Guage 3 is offset_F
      Code:
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 0, offset_E: 0, offset_F: 0 } // No Seals
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 2, offset_E: 3, offset_F: 1 } // Lunar (2) > Celestial (3) > Solar (1)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 3, offset_E: 3, offset_F: 3 } // Celestial (3) > Celestial (3) > Celestial (3)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 2, offset_E: 2, offset_F: 2 } // Lunar (2) > Lunar (2) > Lunar (2)
      struct: ResourceTable: { timer: 0, timer2: 0, offset_8: 0, offset_9: 0, offset_A: 0, offset_B: 0, offset_C: 0, offset_D: 1, offset_E: 1, offset_F: 1 } // Solar (1) > Solar (1) > Solar (1)
      
       
    19. am355

      am355 New Member

      Joined:
      Jul 1, 2019
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      1
      @mastahg when run the "GameObjectManager.GetObjectsOfType<BattleCharacter>(true)" will cause game lag.
      Can it be fixed? It makes the routines smoother.
      Thanks!
       
    20. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,231
      Likes Received:
      364
      Trophy Points:
      83
      That function call is very fast.

      Code:
      
      using (new PerformanceTimer("GameObjectManager test"))
      {
      GameObjectManager.GetObjectsOfType<BattleCharacter>(true);
      }
      
      Code:
      [05:33:39.790 D] [DEBUG-46][0.0029ms] GameObjectManager test
      [05:33:41.211 D] [DEBUG-48][0.0029ms] GameObjectManager test
      [05:33:42.000 D] [DEBUG-50][0.0033ms] GameObjectManager test
      [05:33:42.341 D] [DEBUG-52][0.0026ms] GameObjectManager test
      
      It gets done in .0026ms, were talking nanoseconds at that point.

      That function only fetches objects that are already in the cache so it shouldn't cause any locking.
       

    Share This Page