What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Combat Routine Swtiching

newb23

Community Developer
Joined
Nov 26, 2014
Messages
397
Good evening!

I am currently trying to build a plugin that switches between combat routines.

What it currently does, is successfully switch the combat routine form, from when you hit the combat settings button on the main interface.

What it does not do, is switch the Combat Routine itself.

I dug through the API and found that Managers.RoutineManager contains everything I thought that I would need to switch the Routines, but I am apparently missing the most crucial part, changing the routine itself.

Any ideas?

Thank you!

Attached are some Logs and the plugin code itself.

EDIT: So, the question has somewhat evolved. I have found that I am able to get what appears to be two combat routines going at the same time by running TreeRoot.SetupCombatRoutine();.

While this is "progress" I am still missing how to de-hook the previous routine in order to set-up the new CR.

I have tried:
RoutineManager.Current = null;
RoutineManager.ChangeRoutine();
SetCurrentCombatRoutine();
Reload():

and even the ultra-naughty, Treeroot.Stop(). ;)

But, since I am trying to stop a bot that isn't running, Treeroot.Stop() does not actually DO anything. Heh.

After some poking around, it looks like what I am trying to do is invoke InvalidRoutineWrapper.InvalidRoutineWrapper() again and I think I can do this by running some form of TreeHooks.ClearHook(), but I could be wrong, and I don't know what hook to clear.

I am still poking around, plugging in and trying, but I wanted to throw in an update.
 

Attachments

Last edited:
Are you serious?

You said you looked at routine manager but clearly you didn't as you would have noticed

RoutineManager.ChangeRoutine

or the dirty method of just

RoutineManager.Current = mycr
 
I tested it with RoutineManager.ChangeRoutine, and it works fine.

Console:
Code:
Log("Old:" + RoutineManager.Current);
RoutineManager.ChangeRoutine("Kupo", false);
Log("New:" + RoutineManager.Current);

Result:
Code:
Old:[Archer, Bard] Kupper [ArcherBard]
New:[Archer, Bard] Kupo [ArcherBard]

RBLog:
Code:
[22:58:31.962 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[22:58:31.962 D] Kupo [ArcherBard] v1.0.263.0
[22:58:31.962 D] Kupper [ArcherBard] v1.0.181.0
[22:58:31.962 N] Starting Kupper [ArcherBard]
[22:58:31.962 N] Old context:None CurrentContext:Normal
[22:58:31.964 D] Replaced hook [Kupper.Combat] a3c81e63-e2f6-41f6-952d-659190246ce9
[22:58:31.966 D] Replaced hook [Kupper.Pull] 303502d7-8d31-4df9-87dd-56f7b7591792
[22:58:31.966 D] Replaced hook [Kupper.Rest] ee01184d-158b-44e1-9399-f88071721c38
[22:58:31.966 D] Replaced hook [Kupper.CombatBuffs] 766b4ca7-2cfb-4cfb-99bc-fb43ccae5748
[22:58:31.966 D] Replaced hook [Kupper.Heal] 90c2c24f-c9e5-40ed-9e2c-ec0c23d51738
[22:58:31.966 D] Replaced hook [Kupper.PreCombatBuffs] f3328a38-a1a0-44f5-807b-1266749caa38
[22:58:31.966 V] Verified behaviors can be created!
[22:58:31.966 N] Initialization complete!
[22:59:08.376 N] [Kupo] Shutingdown Kupo [ArcherBard]
[22:59:08.376 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[22:59:08.376 D] Kupo [ArcherBard] v1.0.263.0
[22:59:08.376 D] Kupper [ArcherBard] v1.0.181.0
[22:59:08.376 N] [Kupo] Starting Kupo [ArcherBard] 
[22:59:08.376 N] [Kupo] Old context:None CurrentContext:Normal
[22:59:08.376 D] Replaced hook [Kupo.Combat] 8fcab4f1-55bb-44af-b0cf-c517f6dbf14a
[22:59:08.376 D] Replaced hook [Kupo.Pull] a5423a7d-cebf-4357-9dd9-b93d0419ca54
[22:59:08.377 D] Replaced hook [Kupo.Rest] 993cbed5-2d9f-4308-bb38-992590141c84
[22:59:08.377 D] Replaced hook [Kupo.CombatBuffs] 0a707465-9a55-458b-8733-5663d21771e7
[22:59:08.377 D] Replaced hook [Kupo.Heal] 94ef234b-f52c-456c-b7ec-7e9db34eb5be
[22:59:08.377 D] Replaced hook [Kupo.PreCombatBuffs] 3370565c-ce0a-4c22-8829-57b861e3ee3c
[22:59:08.380 N] [Kupo] Initialization complete!
 
So, a little practice in patience here, but, here is what I found while testing this.

Here is the entire log of Psciu's method to change the CR, using the console code he posted above.

[HIDE]
Code:
[23:51:24.041 N] Logging in...[23:51:24.407 N] T: 5247339453268437899 H: 2786310453
[23:51:24.834 D] Microsoft Windows NT 6.2.9200.0
[23:51:26.190 D] Current Locale Eng
[23:51:26.190 N] Currently a level 50 Bard
[23:51:26.194 D] Reloading AssemblyLoader<ff14bot.AClasses.BotBase> - Initializing
[23:51:30.784 D] [BotManager] Botbases have been reloaded.
[23:51:30.785 D] Chocobot v1.0.0.0
[23:51:30.785 D] ChocoboTrainer v1.0.263.0
[23:51:30.785 D] Gardening bot v1.0.263.0
[23:51:30.785 D] Lisbeth v0.0.0.0
[23:51:30.785 D] Combat Assist v1.0.263.0
[23:51:30.786 D] Fate Bot v1.0.263.0
[23:51:30.786 D] PvP v1.0.263.0
[23:51:30.786 D] Fishing v1.0.263.0
[23:51:30.786 D] Grinding v1.0.263.0
[23:51:30.786 D] Gathering v1.0.263.0
[23:51:30.787 D] Order Bot v1.0.263.0
[23:51:30.812 D] Reloading AssemblyLoader<ff14bot.Interfaces.IBotPlugin> - Initializing
[23:51:44.869 N] [DFAlert] Settings loaded
[23:51:44.872 N] Building Actioncache
[23:51:45.093 N] Action Name:Sprint Action Id:3
[23:51:45.093 N] Action Name:Heavy Shot Action Id:97
[23:51:45.093 N] Action Name:Straight Shot Action Id:98
[23:51:45.093 N] Action Name:Hawk's Eye Action Id:99
[23:51:45.093 N] Action Name:Venomous Bite Action Id:100
[23:51:45.093 N] Action Name:Raging Strikes Action Id:101
[23:51:45.093 N] Action Name:Flaming Arrow Action Id:102
[23:51:45.093 N] Action Name:Misery's End Action Id:103
[23:51:45.093 N] Action Name:Quelling Strikes Action Id:104
[23:51:45.093 N] Action Name:Swiftsong Action Id:105
[23:51:45.093 N] Action Name:Quick Nock Action Id:106
[23:51:45.093 N] Action Name:Barrage Action Id:107
[23:51:45.093 N] Action Name:Shadowbind Action Id:108
[23:51:45.093 N] Action Name:Blunt Arrow Action Id:109
[23:51:45.093 N] Action Name:Bloodletter Action Id:110
[23:51:45.093 N] Action Name:Wide Volley Action Id:111
[23:51:45.093 N] Action Name:Repelling Shot Action Id:112
[23:51:45.093 N] Action Name:Windbite Action Id:113
[23:51:45.093 N] Action Name:Mage's Ballad Action Id:114
[23:51:45.093 N] Action Name:Foe Requiem Action Id:115
[23:51:45.093 N] Action Name:Army's Paeon Action Id:116
[23:51:45.093 N] Action Name:Rain of Death Action Id:117
[23:51:45.093 N] Action Name:Battle Voice Action Id:118
[23:51:45.093 N] Action Name:Internal Release Action Id:59
[23:51:45.093 N] Action Name:Invigorate Action Id:80
[23:51:45.093 N] Action Name:Blood for Blood Action Id:85
[23:51:45.093 N] Action Name:Haymaker Action Id:58
[23:51:45.093 N] Action Name:Second Wind Action Id:57
[23:51:45.093 N] Action Name:Manasong Action Id:1568
[23:51:45.093 N] Action Name:Farshot Action Id:1569
[23:51:45.093 N] Action Name:Blast Shot Action Id:1570
[23:51:45.093 N] Action Name:Enliven Action Id:1580
[23:51:45.093 N] Action Name:Mana Draw Action Id:1583
[23:51:45.093 N] Action Name:Purify Action Id:1584
[23:51:45.093 N] Action Name:Detect Action Id:1586
[23:51:45.093 N] Action Name:Recouperate Action Id:1590
[23:51:45.093 N] Done building Actioncache
[23:51:45.114 D] Reloading AssemblyLoader<ff14bot.Interfaces.ICombatRoutine> - Initializing
[23:51:58.500 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[23:51:58.500 D] Kupo [ArcherBard] v1.0.263.0
[23:51:58.500 D] Kupper [ArcherBard] v1.0.181.0
[23:51:58.500 D] Magitek v0.0.0.0
[23:51:58.500 D] MoreDots [Bard] v0.0.0.0
[23:51:58.500 D] Ultima v1.0.0.0
[23:52:30.700 N] Starting Combat Assist
[23:52:30.739 N] [Ultima] Loading: Bard
[23:52:32.264 D] DoAction Spell 98 0x40001354
[23:52:33.287 D] DoAction Spell 113 0x40001354
[23:52:33.321 N] [Ultima] Ability: Windbite
[23:52:33.349 D] DoAction Spell 101 0x1004523A
[23:52:33.349 N] [Ultima] Ability: Raging Strikes
[23:52:34.417 D] DoAction Spell 59 0x1004523A
[23:52:34.417 N] [Ultima] Ability: Internal Release
[23:52:35.690 D] DoAction Spell 98 0x40001354
[23:52:35.690 N] [Ultima] Ability: Straight Shot
[23:52:35.917 D] DoAction Spell 85 0x1004523A
[23:52:35.917 N] [Ultima] Ability: Blood for Blood
[23:52:36.687 D] DoAction Spell 99 0x1004523A
[23:52:36.687 N] [Ultima] Ability: Hawk's Eye
[23:52:38.289 D] DoAction Spell 100 0x40001354
[23:52:38.290 N] [Ultima] Ability: Venomous Bite
[23:52:38.316 D] DoAction Spell 107 0x1004523A
[23:52:38.316 N] [Ultima] Ability: Barrage
[23:52:39.056 D] DoAction Spell 109 0x40001354
[23:52:39.056 N] [Ultima] Ability: Blunt Arrow
[23:52:39.905 N] Stopping the bot. Reason:Pushed the stop button.
[23:52:39.905 D] CurrentBot.Stop()
[23:52:39.906 D] TreeHooks.Instance.ClearAll()
[23:52:39.907 N] Clearing all hooks.
[23:52:39.907 D] Navigator.Clear()
[23:52:39.907 V] [Poi.Clear] Reason: Bot stopped
[23:52:39.907 D] OnStop event
[23:52:39.916 N] Bot Thread Ended. Was this requested?

[B][SIZE=3]HERE IS WHERE I RAN THE CONSOLE COMMANDS - ULTIMA -> KUPO.[/SIZE][/B]

[23:52:50.411 D] Reloading AssemblyLoader<ff14bot.Interfaces.IBotPlugin> - Created
[23:52:51.469 N] [Kupo] Shutingdown Kupo [ArcherBard]
[23:52:51.471 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[23:52:51.471 D] Kupo [ArcherBard] v1.0.263.0
[23:52:51.471 D] Kupper [ArcherBard] v1.0.181.0
[23:52:51.471 D] Magitek v0.0.0.0
[23:52:51.471 D] MoreDots [Bard] v0.0.0.0
[23:52:51.471 D] Ultima v1.0.0.0
[23:52:51.471 N] [Kupo] Starting Kupo [ArcherBard] 
[23:52:51.473 N] [Kupo] Old context:None CurrentContext:Normal
[23:52:51.484 D] Replaced hook [Kupo.Combat] 0bbb5432-60ce-40f8-bfa4-d02d1d4dbb82
[23:52:51.485 D] Replaced hook [Kupo.Pull] 91699a73-9746-46a4-b911-a032478dbaa7
[23:52:51.486 D] Replaced hook [Kupo.Rest] 8fa59475-a73f-4979-ab50-1fb960a3a0a3
[23:52:51.486 D] Replaced hook [Kupo.CombatBuffs] 515caac2-c9cd-49b8-8dc2-41ab4e8cdfbc
[23:52:51.486 D] Replaced hook [Kupo.Heal] 7aec39d8-255a-4eb9-bba4-dafdc44904bc
[23:52:51.486 D] Replaced hook [Kupo.PreCombatBuffs] d6061932-a351-486e-af09-2cf3649cd1c9
[23:52:51.487 N] (Kupo) Verified behaviors can be created!
[23:52:51.487 N] [Kupo] Initialization complete! 
[23:53:02.766 N] Starting Combat Assist
[23:53:03.489 D] DoAction Spell 113 0x40001354
[23:53:03.489 N] [Ultima] Ability: Windbite
[23:53:03.621 D] DoActionLocation Spell 102 at <-611.4138, 46, -574.3954>
[23:53:04.324 N] [Ultima] Ability: Flaming Arrow
[23:53:05.858 D] DoAction Spell 100 0x40001354
[23:53:05.859 N] [Ultima] Ability: Venomous Bite
[23:53:08.224 D] DoAction Spell 97 0x40001354
[23:53:08.224 N] [Ultima] Ability: Heavy Shot
[23:53:08.259 D] DoAction Spell 103 0x40001354
[23:53:08.259 N] [Ultima] Ability: Misery's End
[23:53:08.988 D] DoAction Spell 110 0x40001354
[23:53:08.988 N] [Ultima] Ability: Bloodletter
[23:53:09.140 N] Stopping the bot. Reason:Pushed the stop button.
[23:53:09.140 D] CurrentBot.Stop()
[23:53:09.140 D] TreeHooks.Instance.ClearAll()
[23:53:09.140 N] Clearing all hooks.
[23:53:09.140 N] [Kupo] Hooks cleared, re-creating behaviors
[23:53:09.140 D] Replaced hook [Kupo.Combat] 4de7705e-1cee-4e19-8006-6b072b85e04b
[23:53:09.140 D] Replaced hook [Kupo.Pull] f49769bc-cffb-4adf-beb3-d5b5f710d859
[23:53:09.140 D] Replaced hook [Kupo.Rest] 17d4fda9-0b76-4daf-bf25-87bd5e36ba1a
[23:53:09.140 D] Replaced hook [Kupo.CombatBuffs] 4d6cc4bf-817a-4230-84ec-2d1e9fbdd6d1
[23:53:09.140 D] Replaced hook [Kupo.Heal] fb491f80-cc0e-4630-b982-696f18db84b5
[23:53:09.141 D] Replaced hook [Kupo.PreCombatBuffs] ff793142-89f2-4c60-ade4-f44b8581e2f4
[23:53:09.141 D] Navigator.Clear()
[23:53:09.141 V] [Poi.Clear] Reason: Bot stopped
[23:53:09.141 D] OnStop event
[23:53:09.154 N] Bot Thread Ended. Was this requested?
[/HIDE]

And here is the entire log of my method, included in the attached file on my post up above. Note that it does in fact USE RoutineManager.ChangeRoutine();

[HIDE]
Code:
[23:59:36.246 N] Logging in...[23:59:36.551 N] T: 5247339458190102315 H: 167041845
[23:59:36.963 D] Microsoft Windows NT 6.2.9200.0
[23:59:38.261 D] Current Locale Eng
[23:59:38.261 N] Currently a level 50 Bard
[23:59:38.265 D] Reloading AssemblyLoader<ff14bot.AClasses.BotBase> - Initializing
[23:59:42.943 D] [BotManager] Botbases have been reloaded.
[23:59:42.943 D] Chocobot v1.0.0.0
[23:59:42.943 D] ChocoboTrainer v1.0.263.0
[23:59:42.943 D] Gardening bot v1.0.263.0
[23:59:42.943 D] Lisbeth v0.0.0.0
[23:59:42.943 D] Combat Assist v1.0.263.0
[23:59:42.945 D] Fate Bot v1.0.263.0
[23:59:42.945 D] PvP v1.0.263.0
[23:59:42.945 D] Fishing v1.0.263.0
[23:59:42.945 D] Grinding v1.0.263.0
[23:59:42.945 D] Gathering v1.0.263.0
[23:59:42.945 D] Order Bot v1.0.263.0
[23:59:42.975 D] Reloading AssemblyLoader<ff14bot.Interfaces.IBotPlugin> - Initializing
[23:59:57.129 N] [DFAlert] Settings loaded
[23:59:57.133 N] Building Actioncache
[23:59:57.360 N] Action Name:Sprint Action Id:3
[23:59:57.360 N] Action Name:Heavy Shot Action Id:97
[23:59:57.360 N] Action Name:Straight Shot Action Id:98
[23:59:57.360 N] Action Name:Hawk's Eye Action Id:99
[23:59:57.360 N] Action Name:Venomous Bite Action Id:100
[23:59:57.360 N] Action Name:Raging Strikes Action Id:101
[23:59:57.360 N] Action Name:Flaming Arrow Action Id:102
[23:59:57.360 N] Action Name:Misery's End Action Id:103
[23:59:57.360 N] Action Name:Quelling Strikes Action Id:104
[23:59:57.360 N] Action Name:Swiftsong Action Id:105
[23:59:57.360 N] Action Name:Quick Nock Action Id:106
[23:59:57.360 N] Action Name:Barrage Action Id:107
[23:59:57.360 N] Action Name:Shadowbind Action Id:108
[23:59:57.360 N] Action Name:Blunt Arrow Action Id:109
[23:59:57.360 N] Action Name:Bloodletter Action Id:110
[23:59:57.360 N] Action Name:Wide Volley Action Id:111
[23:59:57.360 N] Action Name:Repelling Shot Action Id:112
[23:59:57.360 N] Action Name:Windbite Action Id:113
[23:59:57.360 N] Action Name:Mage's Ballad Action Id:114
[23:59:57.360 N] Action Name:Foe Requiem Action Id:115
[23:59:57.360 N] Action Name:Army's Paeon Action Id:116
[23:59:57.360 N] Action Name:Rain of Death Action Id:117
[23:59:57.360 N] Action Name:Battle Voice Action Id:118
[23:59:57.360 N] Action Name:Internal Release Action Id:59
[23:59:57.360 N] Action Name:Invigorate Action Id:80
[23:59:57.360 N] Action Name:Blood for Blood Action Id:85
[23:59:57.360 N] Action Name:Haymaker Action Id:58
[23:59:57.360 N] Action Name:Second Wind Action Id:57
[23:59:57.360 N] Action Name:Manasong Action Id:1568
[23:59:57.360 N] Action Name:Farshot Action Id:1569
[23:59:57.360 N] Action Name:Blast Shot Action Id:1570
[23:59:57.360 N] Action Name:Enliven Action Id:1580
[23:59:57.360 N] Action Name:Mana Draw Action Id:1583
[23:59:57.360 N] Action Name:Purify Action Id:1584
[23:59:57.360 N] Action Name:Detect Action Id:1586
[23:59:57.360 N] Action Name:Recouperate Action Id:1590
[23:59:57.360 N] Done building Actioncache
[23:59:57.381 D] Reloading AssemblyLoader<ff14bot.Interfaces.ICombatRoutine> - Initializing
[00:00:10.703 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[00:00:10.703 D] Kupo [ArcherBard] v1.0.263.0
[00:00:10.703 D] Kupper [ArcherBard] v1.0.181.0
[00:00:10.703 D] Magitek v0.0.0.0
[00:00:10.703 D] MoreDots [Bard] v0.0.0.0
[00:00:10.703 D] Ultima v1.0.0.0
[00:00:15.981 N] Starting Combat Assist
[00:00:16.021 N] [Ultima] Loading: Bard
[00:00:19.966 D] DoAction Spell 59 0x1004523A
[00:00:19.967 N] [Ultima] Ability: Internal Release
[00:00:21.070 D] DoAction Spell 113 0x40001354
[00:00:21.070 N] [Ultima] Ability: Windbite
[00:00:21.334 D] DoAction Spell 109 0x40001354
[00:00:21.334 N] [Ultima] Ability: Blunt Arrow
[00:00:22.107 D] DoActionLocation Spell 102 at <-611.4138, 46, -574.3954>
[00:00:22.899 N] [Ultima] Ability: Flaming Arrow
[00:00:23.703 D] DoAction Spell 100 0x40001354
[00:00:23.704 N] [Ultima] Ability: Venomous Bite
[00:00:23.994 N] Stopping the bot. Reason:Pushed the stop button.
[00:00:23.994 D] CurrentBot.Stop()
[00:00:23.995 D] TreeHooks.Instance.ClearAll()
[00:00:23.996 N] Clearing all hooks.
[00:00:23.996 D] Navigator.Clear()
[00:00:23.997 V] [Poi.Clear] Reason: Bot stopped
[00:00:23.997 D] OnStop event
[00:00:24.004 N] Bot Thread Ended. Was this requested?

[B][SIZE=3]HERE IS WHERE I RAN MY PLUGIN - ULTIMA -> KUPO.[/SIZE][/B]

[00:00:29.004 N] [Kupo] Shutingdown Kupo [ArcherBard]
[00:00:29.006 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[00:00:29.006 D] Kupo [ArcherBard] v1.0.263.0
[00:00:29.006 D] Kupper [ArcherBard] v1.0.181.0
[00:00:29.006 D] Magitek v0.0.0.0
[00:00:29.006 D] MoreDots [Bard] v0.0.0.0
[00:00:29.006 D] Ultima v1.0.0.0
[00:00:29.006 N] [Kupo] Starting Kupo [ArcherBard] 
[00:00:29.007 N] [Kupo] Old context:None CurrentContext:Normal
[00:00:29.017 D] Replaced hook [Kupo.Combat] 01c2d25c-cfd5-4f45-8c2f-bcc2f19e120d
[00:00:29.018 D] Replaced hook [Kupo.Pull] 8831edd8-0137-4735-8994-d446e4a8260f
[00:00:29.019 D] Replaced hook [Kupo.Rest] e17bbc3a-b267-42a5-b200-2b04c679ee98
[00:00:29.019 D] Replaced hook [Kupo.CombatBuffs] 7c13a189-d3c1-44ce-add0-40ef9abed86c
[00:00:29.019 D] Replaced hook [Kupo.Heal] 4222deba-c92e-44c9-a2d8-0988ae32b6c4
[00:00:29.019 D] Replaced hook [Kupo.PreCombatBuffs] e6826c41-aed2-4aa7-9d2f-5f6941aa8e91
[00:00:29.019 N] (Kupo) Verified behaviors can be created!
[00:00:29.019 N] [Kupo] Initialization complete! 
[00:00:29.890 N] [CRManager] Combat Routine Changed
[00:00:33.325 N] Starting Combat Assist
[00:00:33.334 D] DoAction Spell 97 0x40001354
[00:00:33.335 N] [Ultima] Ability: Heavy Shot
[00:00:33.342 D] DoAction Spell 85 0x1004523A
[00:00:33.342 N] [Ultima] Ability: Blood for Blood
[00:00:35.694 D] DoAction Spell 97 0x40001354
[00:00:35.694 N] [Ultima] Ability: Heavy Shot
[00:00:35.728 D] DoAction Spell 110 0x40001354
[00:00:35.728 N] [Ultima] Ability: Bloodletter
[00:00:38.056 D] DoAction Spell 113 0x40001354
[00:00:38.057 N] [Ultima] Ability: Windbite
[00:00:38.091 D] DoAction Spell 99 0x1004523A
[00:00:38.091 N] [Ultima] Ability: Hawk's Eye
[00:00:38.887 D] DoAction Spell 103 0x40001354
[00:00:38.887 N] [Ultima] Ability: Misery's End
[00:00:40.425 D] DoAction Spell 100 0x40001354
[00:00:40.425 N] [Ultima] Ability: Venomous Bite
[00:00:41.573 N] Stopping the bot. Reason:Pushed the stop button.
[00:00:41.573 D] CurrentBot.Stop()
[00:00:41.574 D] TreeHooks.Instance.ClearAll()
[00:00:41.574 N] Clearing all hooks.
[00:00:41.574 N] [Kupo] Hooks cleared, re-creating behaviors
[00:00:41.574 D] Replaced hook [Kupo.Combat] 4bddecc8-1c18-4d8f-83be-45f10c7ef8d0
[00:00:41.574 D] Replaced hook [Kupo.Pull] 5c3cab62-9cd3-43af-8c3d-cb5883b54d23
[00:00:41.574 D] Replaced hook [Kupo.Rest] 9430c890-81ca-41b4-a1c2-2af97bd98c78
[00:00:41.574 D] Replaced hook [Kupo.CombatBuffs] 374a5299-eacf-4ced-afa9-13f100d77816
[00:00:41.574 D] Replaced hook [Kupo.Heal] 7bc2c2b3-7776-4323-983b-58fa7b90ba2e
[00:00:41.574 D] Replaced hook [Kupo.PreCombatBuffs] 90a0fb6c-bb82-4a7c-9dfe-f586a46d2b32
[00:00:41.574 D] Navigator.Clear()
[00:00:41.574 V] [Poi.Clear] Reason: Bot stopped
[00:00:41.574 D] OnStop event
[00:00:41.596 N] Bot Thread Ended. Was this requested?
[/HIDE]

Notice anything strange? Like, while Kupo does get hooked according to the log, Ultima still is the CR in use for skill use, also according to the log? Even though it lists Kupo as the active CR through the log window of the console, and the bot's log itself? Which is exactly what I posted about in my first post on this issue, but I apparently didn't read or test anything...

Once again, the bot opens up the settings window for the bot that is selected through either the console switch, or through my plugin, but it does NOT actually un-hook or properly hook the new Combat Routine for skills use.

I am asking for help to understand here, and rather than a "Are you serious? Read better." as I did actually include the method you suggested I use, I would like to get some understanding as to what I should use, or, if I misused the command in question.

I don't mean to sound disrespectful, but that respect goes both ways. You have a plethora of knowledge and understanding, and I am attempting to learn. So I ask you kindly, help me understand.

As a final note and/or addition, attached is the entire code once more that I am using to try and switch profiles, and the logs of what I included in the hidden code boxes above.

Thank you for your continued help.
 

Attachments

Then that's probably ultima doing some bad stuff. Changeroutine is 100% the function, you pass it the name of the cr you want to use. It's whats used internally.


Edit:

Actually itll work for everything except combat assist, because combat assist only constructs the behavior tree once.


Add

_root = null;

to onstop in raidbro.cs
 
Okay, so here it is going from Kupo to Magitek, using the console method:

[HIDE]
Code:
[00:35:01.590 N] Logging in...
[00:35:01.969 N] T: 5247339479444068332 H: 3198026561
[00:35:02.415 D] Microsoft Windows NT 6.2.9200.0
[00:35:03.843 D] Current Locale Eng
[00:35:03.844 N] Currently a level 50 Bard
[00:35:03.847 D] Reloading AssemblyLoader<ff14bot.AClasses.BotBase> - Initializing
[00:35:08.540 D] [BotManager] Botbases have been reloaded.
[00:35:08.540 D] Chocobot v1.0.0.0
[00:35:08.540 D] ChocoboTrainer v1.0.263.0
[00:35:08.540 D] Gardening bot v1.0.263.0
[00:35:08.540 D] Lisbeth v0.0.0.0
[00:35:08.540 D] Combat Assist v1.0.263.0
[00:35:08.541 D] Fate Bot v1.0.263.0
[00:35:08.541 D] PvP v1.0.263.0
[00:35:08.541 D] Fishing v1.0.263.0
[00:35:08.541 D] Grinding v1.0.263.0
[00:35:08.541 D] Gathering v1.0.263.0
[00:35:08.541 D] Order Bot v1.0.263.0
[00:35:08.567 D] Reloading AssemblyLoader<ff14bot.Interfaces.IBotPlugin> - Initializing
[00:35:22.699 N] [DFAlert] Settings loaded
[00:35:22.702 N] Building Actioncache
[00:35:22.917 N] Action Name:Sprint Action Id:3
[00:35:22.917 N] Action Name:Heavy Shot Action Id:97
[00:35:22.917 N] Action Name:Straight Shot Action Id:98
[00:35:22.917 N] Action Name:Hawk's Eye Action Id:99
[00:35:22.917 N] Action Name:Venomous Bite Action Id:100
[00:35:22.917 N] Action Name:Raging Strikes Action Id:101
[00:35:22.917 N] Action Name:Flaming Arrow Action Id:102
[00:35:22.917 N] Action Name:Misery's End Action Id:103
[00:35:22.917 N] Action Name:Quelling Strikes Action Id:104
[00:35:22.917 N] Action Name:Swiftsong Action Id:105
[00:35:22.917 N] Action Name:Quick Nock Action Id:106
[00:35:22.917 N] Action Name:Barrage Action Id:107
[00:35:22.917 N] Action Name:Shadowbind Action Id:108
[00:35:22.917 N] Action Name:Blunt Arrow Action Id:109
[00:35:22.917 N] Action Name:Bloodletter Action Id:110
[00:35:22.917 N] Action Name:Wide Volley Action Id:111
[00:35:22.917 N] Action Name:Repelling Shot Action Id:112
[00:35:22.917 N] Action Name:Windbite Action Id:113
[00:35:22.917 N] Action Name:Mage's Ballad Action Id:114
[00:35:22.917 N] Action Name:Foe Requiem Action Id:115
[00:35:22.917 N] Action Name:Army's Paeon Action Id:116
[00:35:22.917 N] Action Name:Rain of Death Action Id:117
[00:35:22.917 N] Action Name:Battle Voice Action Id:118
[00:35:22.917 N] Action Name:Internal Release Action Id:59
[00:35:22.917 N] Action Name:Invigorate Action Id:80
[00:35:22.917 N] Action Name:Blood for Blood Action Id:85
[00:35:22.917 N] Action Name:Haymaker Action Id:58
[00:35:22.917 N] Action Name:Second Wind Action Id:57
[00:35:22.917 N] Action Name:Manasong Action Id:1568
[00:35:22.917 N] Action Name:Farshot Action Id:1569
[00:35:22.917 N] Action Name:Blast Shot Action Id:1570
[00:35:22.917 N] Action Name:Enliven Action Id:1580
[00:35:22.917 N] Action Name:Mana Draw Action Id:1583
[00:35:22.917 N] Action Name:Purify Action Id:1584
[00:35:22.917 N] Action Name:Detect Action Id:1586
[00:35:22.917 N] Action Name:Recouperate Action Id:1590
[00:35:22.917 N] Done building Actioncache
[00:35:22.939 D] Reloading AssemblyLoader<ff14bot.Interfaces.ICombatRoutine> - Initializing
[00:35:36.592 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[00:35:36.592 D] Kupo [ArcherBard] v1.0.263.0
[00:35:36.592 D] Kupper [ArcherBard] v1.0.181.0
[00:35:36.592 D] Magitek v0.0.0.0
[00:35:36.592 D] MoreDots [Bard] v0.0.0.0
[00:35:36.592 D] Ultima v1.0.0.0
[00:35:42.135 N] [Kupo] Starting Kupo [ArcherBard]
[00:35:42.145 N] [Kupo] Old context:None CurrentContext:Normal 
[00:35:42.159 D] Replaced hook [Kupo.Combat] 063e3fa0-f30b-4d27-ba1d-482d0c3a5457
[00:35:42.160 D] Replaced hook [Kupo.Pull] 1ace45c8-0cdd-400e-90cf-e3fd19d41227
[00:35:42.161 D] Replaced hook [Kupo.Rest] 7825cb7f-a6a5-4cd7-bc40-4e4cd2ae0d92
[00:35:42.161 D] Replaced hook [Kupo.CombatBuffs] 51c08899-12f2-45ec-83fd-2d739411fe1e
[00:35:42.161 D] Replaced hook [Kupo.Heal] ac816914-6c4a-460f-a619-a0cd4bcff051
[00:35:42.162 D] Replaced hook [Kupo.PreCombatBuffs] f7fffee3-8259-4351-8811-5868cd6c362c
[00:35:42.162 N] (Kupo) Verified behaviors can be created!
[00:35:42.162 N] [Kupo] Initialization complete!
[00:35:44.249 N] Starting Combat Assist
[00:35:47.620 N] [Kupo] Casting Bloodletter 
[00:35:47.620 D] DoAction Spell 110 0x40001354
[00:35:48.796 N] [Kupo] Applying Venomous Bite
[00:35:48.796 D] DoAction Spell 100 0x40001354
[00:35:51.164 N] [Kupo] Casting Heavy Shot 
[00:35:51.164 D] DoAction Spell 97 0x40001354
[00:35:53.534 N] [Kupo] Casting Heavy Shot
[00:35:53.534 D] DoAction Spell 97 0x40001354
[00:35:54.339 N] Stopping the bot. Reason:Pushed the stop button.
[00:35:54.339 D] CurrentBot.Stop()
[00:35:54.340 D] TreeHooks.Instance.ClearAll()
[00:35:54.340 N] Clearing all hooks.
[00:35:54.340 N] [Kupo] Hooks cleared, re-creating behaviors 
[00:35:54.340 D] Replaced hook [Kupo.Combat] 222f6ead-c59f-4a41-afc0-f24ec5738133
[00:35:54.341 D] Replaced hook [Kupo.Pull] 85fd5abe-3e07-4ae6-b34c-a4e098cf2802
[00:35:54.341 D] Replaced hook [Kupo.Rest] 55e8ec82-3ce9-4e59-8598-637c18e727bd
[00:35:54.341 D] Replaced hook [Kupo.CombatBuffs] e96233d5-e4af-4df4-9d43-440b5686e819
[00:35:54.341 D] Replaced hook [Kupo.Heal] e0cae06c-0ef5-4f93-bdc8-fad38ac493ae
[00:35:54.341 D] Replaced hook [Kupo.PreCombatBuffs] 195fe275-4068-4cbf-b2b0-fae36d7aab4b
[00:35:54.341 D] Navigator.Clear()
[00:35:54.341 V] [Poi.Clear] Reason: Bot stopped
[00:35:54.341 D] OnStop event
[00:35:54.368 N] Bot Thread Ended. Was this requested?
[00:36:10.446 D] Reloading AssemblyLoader<ff14bot.Interfaces.IBotPlugin> - Created
[00:36:11.510 N] [Kupo] Shutingdown Kupo [ArcherBard]
[00:36:11.511 N] [Kupo] Shutingdown Kupo [ArcherBard] 
[00:36:11.511 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[00:36:11.511 D] Kupo [ArcherBard] v1.0.263.0
[00:36:11.511 D] Kupper [ArcherBard] v1.0.181.0
[00:36:11.511 D] Magitek v0.0.0.0
[00:36:11.511 D] MoreDots [Bard] v0.0.0.0
[00:36:11.511 D] Ultima v1.0.0.0
[00:36:21.800 N] Starting Combat Assist
[00:36:22.184 N] [Kupo] Applying Venomous Bite
[00:36:22.184 D] DoAction Spell 100 0x40001354
[00:36:24.553 N] [Kupo] Casting Heavy Shot 
[00:36:24.553 D] DoAction Spell 97 0x40001354
[00:36:26.920 N] [Kupo] Casting Heavy Shot
[00:36:26.920 D] DoAction Spell 97 0x40001354
[00:36:28.778 N] [Kupo] Casting Misery's End 
[00:36:28.778 D] DoAction Spell 103 0x40001354
[00:36:29.283 N] [Kupo] Casting Straight Shot
[00:36:29.283 D] DoAction Spell 98 0x40001354
[00:36:30.592 N] Stopping the bot. Reason:Pushed the stop button.
[00:36:30.592 D] CurrentBot.Stop()
[00:36:30.592 D] TreeHooks.Instance.ClearAll()
[00:36:30.592 N] Clearing all hooks.
[00:36:30.592 D] Navigator.Clear()
[00:36:30.592 V] [Poi.Clear] Reason: Bot stopped
[00:36:30.592 D] OnStop event
[00:36:30.617 N] Bot Thread Ended. Was this requested?
[/HIDE]

Here from Kupo to Kupper, using the console method:

[HIDE]
Code:
[00:37:23.824 D] Current Locale Eng
[00:37:23.824 N] Currently a level 50 Bard
[00:37:23.828 D] Reloading AssemblyLoader<ff14bot.AClasses.BotBase> - Initializing
[00:37:28.503 D] [BotManager] Botbases have been reloaded.
[00:37:28.503 D] Chocobot v1.0.0.0
[00:37:28.503 D] ChocoboTrainer v1.0.263.0
[00:37:28.503 D] Gardening bot v1.0.263.0
[00:37:28.503 D] Lisbeth v0.0.0.0
[00:37:28.503 D] Combat Assist v1.0.263.0
[00:37:28.504 D] Fate Bot v1.0.263.0
[00:37:28.504 D] PvP v1.0.263.0
[00:37:28.504 D] Fishing v1.0.263.0
[00:37:28.504 D] Grinding v1.0.263.0
[00:37:28.504 D] Gathering v1.0.263.0
[00:37:28.504 D] Order Bot v1.0.263.0
[00:37:28.535 D] Reloading AssemblyLoader<ff14bot.Interfaces.IBotPlugin> - Initializing
[00:37:42.679 N] [DFAlert] Settings loaded
[00:37:42.682 N] Building Actioncache
[00:37:42.903 N] Action Name:Sprint Action Id:3
[00:37:42.903 N] Action Name:Heavy Shot Action Id:97
[00:37:42.903 N] Action Name:Straight Shot Action Id:98
[00:37:42.903 N] Action Name:Hawk's Eye Action Id:99
[00:37:42.903 N] Action Name:Venomous Bite Action Id:100
[00:37:42.903 N] Action Name:Raging Strikes Action Id:101
[00:37:42.903 N] Action Name:Flaming Arrow Action Id:102
[00:37:42.903 N] Action Name:Misery's End Action Id:103
[00:37:42.903 N] Action Name:Quelling Strikes Action Id:104
[00:37:42.903 N] Action Name:Swiftsong Action Id:105
[00:37:42.903 N] Action Name:Quick Nock Action Id:106
[00:37:42.903 N] Action Name:Barrage Action Id:107
[00:37:42.903 N] Action Name:Shadowbind Action Id:108
[00:37:42.903 N] Action Name:Blunt Arrow Action Id:109
[00:37:42.903 N] Action Name:Bloodletter Action Id:110
[00:37:42.903 N] Action Name:Wide Volley Action Id:111
[00:37:42.903 N] Action Name:Repelling Shot Action Id:112
[00:37:42.903 N] Action Name:Windbite Action Id:113
[00:37:42.903 N] Action Name:Mage's Ballad Action Id:114
[00:37:42.903 N] Action Name:Foe Requiem Action Id:115
[00:37:42.903 N] Action Name:Army's Paeon Action Id:116
[00:37:42.903 N] Action Name:Rain of Death Action Id:117
[00:37:42.903 N] Action Name:Battle Voice Action Id:118
[00:37:42.903 N] Action Name:Internal Release Action Id:59
[00:37:42.903 N] Action Name:Invigorate Action Id:80
[00:37:42.903 N] Action Name:Blood for Blood Action Id:85
[00:37:42.903 N] Action Name:Haymaker Action Id:58
[00:37:42.903 N] Action Name:Second Wind Action Id:57
[00:37:42.903 N] Action Name:Manasong Action Id:1568
[00:37:42.903 N] Action Name:Farshot Action Id:1569
[00:37:42.903 N] Action Name:Blast Shot Action Id:1570
[00:37:42.903 N] Action Name:Enliven Action Id:1580
[00:37:42.903 N] Action Name:Mana Draw Action Id:1583
[00:37:42.903 N] Action Name:Purify Action Id:1584
[00:37:42.903 N] Action Name:Detect Action Id:1586
[00:37:42.903 N] Action Name:Recouperate Action Id:1590
[00:37:42.903 N] Done building Actioncache
[00:37:42.924 D] Reloading AssemblyLoader<ff14bot.Interfaces.ICombatRoutine> - Initializing
[00:37:56.277 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[00:37:56.277 D] Kupo [ArcherBard] v1.0.263.0
[00:37:56.277 D] Kupper [ArcherBard] v1.0.181.0
[00:37:56.277 D] Magitek v0.0.0.0
[00:37:56.277 D] MoreDots [Bard] v0.0.0.0
[00:37:56.277 D] Ultima v1.0.0.0
[00:38:00.354 N] [Kupo] Starting Kupo [ArcherBard]
[00:38:00.363 N] [Kupo] Old context:None CurrentContext:Normal 
[00:38:00.376 D] Replaced hook [Kupo.Combat] 5083c757-a659-4d10-b992-52d61536895d
[00:38:00.377 D] Replaced hook [Kupo.Pull] 1506fb5f-139d-460a-9836-51fdd3e7658c
[00:38:00.377 D] Replaced hook [Kupo.Rest] d81699b8-2c8c-4b83-af5f-464819397047
[00:38:00.377 D] Replaced hook [Kupo.CombatBuffs] 053a0678-51cf-4923-8682-f5d692c940af
[00:38:00.377 D] Replaced hook [Kupo.Heal] 2ce37d51-8188-4eb8-8e14-fe033255dae4
[00:38:00.378 D] Replaced hook [Kupo.PreCombatBuffs] 30f70494-2008-42f8-bb4e-a0f92d13602f
[00:38:00.378 N] (Kupo) Verified behaviors can be created!
[00:38:00.378 N] [Kupo] Initialization complete!
[00:38:15.334 N] Starting Combat Assist
[00:38:16.796 N] [Kupo] Casting Straight Shot 
[00:38:16.797 D] DoAction Spell 98 0x40001354
[00:38:16.813 N] [Kupo] Casting Bloodletter
[00:38:16.813 D] DoAction Spell 110 0x40001354
[00:38:18.545 N] [Kupo] Casting Misery's End 
[00:38:18.545 D] DoAction Spell 103 0x40001354
[00:38:19.150 N] [Kupo] Applying Venomous Bite
[00:38:19.150 D] DoAction Spell 100 0x40001354
[00:38:21.683 N] [Kupo] Casting Heavy Shot 
[00:38:21.683 D] DoAction Spell 97 0x40001354
[00:38:23.111 N] [Kupo] Casting Bloodletter
[00:38:23.111 D] DoAction Spell 110 0x40001354
[00:38:23.501 N] Stopping the bot. Reason:Pushed the stop button.
[00:38:23.501 D] CurrentBot.Stop()
[00:38:23.502 D] TreeHooks.Instance.ClearAll()
[00:38:23.502 N] Clearing all hooks.
[00:38:23.502 N] [Kupo] Hooks cleared, re-creating behaviors 
[00:38:23.502 D] Replaced hook [Kupo.Combat] 5f5b58be-74ba-4619-b119-4e4108154cb0
[00:38:23.502 D] Replaced hook [Kupo.Pull] e2d58924-a5ab-4afc-ae2e-afc78ca73e53
[00:38:23.503 D] Replaced hook [Kupo.Rest] bfadd555-a4a5-4451-9fce-bab88fe3f284
[00:38:23.503 D] Replaced hook [Kupo.CombatBuffs] d5a8af75-49f4-4682-8744-e648d922be44
[00:38:23.503 D] Replaced hook [Kupo.Heal] b0dc422c-14ab-4397-8d61-66e971338106
[00:38:23.503 D] Replaced hook [Kupo.PreCombatBuffs] 7dd56498-3437-43c7-b9f3-7bdeb9030e9e
[00:38:23.503 D] Navigator.Clear()
[00:38:23.503 V] [Poi.Clear] Reason: Bot stopped
[00:38:23.503 D] OnStop event
[00:38:23.516 N] Bot Thread Ended. Was this requested?
[00:38:31.137 D] Reloading AssemblyLoader<ff14bot.Interfaces.IBotPlugin> - Created
[00:38:32.169 N] [Kupo] Shutingdown Kupo [ArcherBard]
[00:38:32.170 N] [Kupo] Shutingdown Kupo [ArcherBard] 
[00:38:32.171 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[00:38:32.171 D] Kupo [ArcherBard] v1.0.263.0
[00:38:32.171 D] Kupper [ArcherBard] v1.0.181.0
[00:38:32.171 D] Magitek v0.0.0.0
[00:38:32.171 D] MoreDots [Bard] v0.0.0.0
[00:38:32.171 D] Ultima v1.0.0.0
[00:38:32.171 N] Starting Kupper [ArcherBard]
[00:38:32.172 N] Old context:None CurrentContext:Normal
[00:38:32.190 D] Replaced hook [Kupper.Combat] 68ec2a3a-d93c-4662-b74e-8e2fa34d5959
[00:38:32.192 D] Replaced hook [Kupper.Pull] 800df70e-dbb4-484a-ae7d-4b86cdf48efa
[00:38:32.194 D] Replaced hook [Kupper.Rest] 30af7ffd-0c66-4207-b9da-7c1b44709ed4
[00:38:32.194 D] Replaced hook [Kupper.CombatBuffs] 51da422a-5f99-4c6e-a9f5-3ab89b874979
[00:38:32.194 D] Replaced hook [Kupper.Heal] bd46babf-b990-4f58-9626-5eef18c23825
[00:38:32.194 D] Replaced hook [Kupper.PreCombatBuffs] 8b9a6d74-e555-4b26-b277-5aa4ec89e7e6
[00:38:32.194 V] Verified behaviors can be created!
[00:38:32.194 N] Initialization complete!
[00:38:35.913 N] Starting Combat Assist
[00:38:35.923 N] [Kupo] Casting Straight Shot
[00:38:35.923 D] DoAction Spell 98 0x40001354
[00:38:35.931 N] [Kupo] Casting Misery's End 
[00:38:35.931 D] DoAction Spell 103 0x40001354
[00:38:38.126 N] [Kupo] Casting Bloodletter
[00:38:38.126 D] DoAction Spell 110 0x40001354
[00:38:38.290 N] [Kupo] Applying Venomous Bite 
[00:38:38.290 D] DoAction Spell 100 0x40001354
[00:38:41.254 N] [Kupo] Casting Heavy Shot
[00:38:41.254 D] DoAction Spell 97 0x40001354
[00:38:43.622 N] [Kupo] Casting Heavy Shot 
[00:38:43.622 D] DoAction Spell 97 0x40001354
[00:38:45.985 N] [Kupo] Casting Heavy Shot
[00:38:45.985 D] DoAction Spell 97 0x40001354
[00:38:46.514 N] Stopping the bot. Reason:Pushed the stop button.
[00:38:46.514 D] CurrentBot.Stop()
[00:38:46.514 D] TreeHooks.Instance.ClearAll()
[00:38:46.514 N] Clearing all hooks.
[00:38:46.514 N] Hooks cleared, re-creating behaviors
[00:38:46.515 D] Replaced hook [Kupper.Combat] 738edc97-fec9-4fa0-8a71-b0dd30ecb067
[00:38:46.516 D] Replaced hook [Kupper.Pull] bdf5dfa8-1efc-4f80-bd4c-255011c672a4
[00:38:46.517 D] Replaced hook [Kupper.Rest] 669cc0a7-8646-4020-bde4-592101df6122
[00:38:46.517 D] Replaced hook [Kupper.CombatBuffs] 29e5e57a-185e-4176-888f-38c9cfb5757e
[00:38:46.517 D] Replaced hook [Kupper.Heal] b14eec68-89f4-4ead-99ef-5a8cf826cf3d
[00:38:46.517 D] Replaced hook [Kupper.PreCombatBuffs] 4f56f15d-bdca-44f1-9cd4-c190c38e7a91
[00:38:46.517 D] Navigator.Clear()
[00:38:46.517 V] [Poi.Clear] Reason: Bot stopped
[00:38:46.517 D] OnStop event
[00:38:46.520 N] Bot Thread Ended. Was this requested?
[/HIDE]

Here from Kupo to MoreDots, using the console method:

[HIDE]
Code:
[00:39:33.286 D] Current Locale Eng
[00:39:33.286 N] Currently a level 50 Bard
[00:39:33.290 D] Reloading AssemblyLoader<ff14bot.AClasses.BotBase> - Initializing
[00:39:37.860 D] [BotManager] Botbases have been reloaded.
[00:39:37.860 D] Chocobot v1.0.0.0
[00:39:37.860 D] ChocoboTrainer v1.0.263.0
[00:39:37.860 D] Gardening bot v1.0.263.0
[00:39:37.860 D] Lisbeth v0.0.0.0
[00:39:37.861 D] Combat Assist v1.0.263.0
[00:39:37.862 D] Fate Bot v1.0.263.0
[00:39:37.862 D] PvP v1.0.263.0
[00:39:37.862 D] Fishing v1.0.263.0
[00:39:37.862 D] Grinding v1.0.263.0
[00:39:37.862 D] Gathering v1.0.263.0
[00:39:37.862 D] Order Bot v1.0.263.0
[00:39:37.887 D] Reloading AssemblyLoader<ff14bot.Interfaces.IBotPlugin> - Initializing
[00:39:52.199 N] [DFAlert] Settings loaded
[00:39:52.202 N] Building Actioncache
[00:39:52.440 N] Action Name:Sprint Action Id:3
[00:39:52.440 N] Action Name:Heavy Shot Action Id:97
[00:39:52.440 N] Action Name:Straight Shot Action Id:98
[00:39:52.440 N] Action Name:Hawk's Eye Action Id:99
[00:39:52.440 N] Action Name:Venomous Bite Action Id:100
[00:39:52.440 N] Action Name:Raging Strikes Action Id:101
[00:39:52.440 N] Action Name:Flaming Arrow Action Id:102
[00:39:52.440 N] Action Name:Misery's End Action Id:103
[00:39:52.440 N] Action Name:Quelling Strikes Action Id:104
[00:39:52.440 N] Action Name:Swiftsong Action Id:105
[00:39:52.440 N] Action Name:Quick Nock Action Id:106
[00:39:52.440 N] Action Name:Barrage Action Id:107
[00:39:52.440 N] Action Name:Shadowbind Action Id:108
[00:39:52.440 N] Action Name:Blunt Arrow Action Id:109
[00:39:52.440 N] Action Name:Bloodletter Action Id:110
[00:39:52.440 N] Action Name:Wide Volley Action Id:111
[00:39:52.440 N] Action Name:Repelling Shot Action Id:112
[00:39:52.440 N] Action Name:Windbite Action Id:113
[00:39:52.440 N] Action Name:Mage's Ballad Action Id:114
[00:39:52.440 N] Action Name:Foe Requiem Action Id:115
[00:39:52.440 N] Action Name:Army's Paeon Action Id:116
[00:39:52.440 N] Action Name:Rain of Death Action Id:117
[00:39:52.440 N] Action Name:Battle Voice Action Id:118
[00:39:52.440 N] Action Name:Internal Release Action Id:59
[00:39:52.440 N] Action Name:Invigorate Action Id:80
[00:39:52.440 N] Action Name:Blood for Blood Action Id:85
[00:39:52.440 N] Action Name:Haymaker Action Id:58
[00:39:52.440 N] Action Name:Second Wind Action Id:57
[00:39:52.440 N] Action Name:Manasong Action Id:1568
[00:39:52.440 N] Action Name:Farshot Action Id:1569
[00:39:52.440 N] Action Name:Blast Shot Action Id:1570
[00:39:52.440 N] Action Name:Enliven Action Id:1580
[00:39:52.440 N] Action Name:Mana Draw Action Id:1583
[00:39:52.440 N] Action Name:Purify Action Id:1584
[00:39:52.440 N] Action Name:Detect Action Id:1586
[00:39:52.440 N] Action Name:Recouperate Action Id:1590
[00:39:52.440 N] Done building Actioncache
[00:39:52.459 D] Reloading AssemblyLoader<ff14bot.Interfaces.ICombatRoutine> - Initializing
[00:40:06.164 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[00:40:06.164 D] Kupo [ArcherBard] v1.0.263.0
[00:40:06.164 D] Kupper [ArcherBard] v1.0.181.0
[00:40:06.164 D] Magitek v0.0.0.0
[00:40:06.164 D] MoreDots [Bard] v0.0.0.0
[00:40:06.164 D] Ultima v1.0.0.0
[00:40:09.131 N] [Kupo] Starting Kupo [ArcherBard]
[00:40:09.149 N] [Kupo] Old context:None CurrentContext:Normal 
[00:40:09.161 D] Replaced hook [Kupo.Combat] 41523003-6d7a-4d49-87ba-9172f5bcf6cb
[00:40:09.162 D] Replaced hook [Kupo.Pull] f6138c0e-d33e-4405-be4c-0adcb3a1b252
[00:40:09.163 D] Replaced hook [Kupo.Rest] dea8a0d2-f8f9-42de-a090-0c5f942b3b65
[00:40:09.163 D] Replaced hook [Kupo.CombatBuffs] f25060eb-ee94-4ad6-bf8a-4178f50066d4
[00:40:09.163 D] Replaced hook [Kupo.Heal] 63f3858e-7c82-4a92-a211-b0ecaf6781b7
[00:40:09.163 D] Replaced hook [Kupo.PreCombatBuffs] 28cb54d3-c77f-45bb-aa08-1eb5f195af0f
[00:40:09.163 N] (Kupo) Verified behaviors can be created!
[00:40:09.163 N] [Kupo] Initialization complete!
[00:40:10.768 N] Starting Combat Assist
[00:40:16.746 N] [Kupo] Applying Venomous Bite 
[00:40:16.747 D] DoAction Spell 100 0x40001354
[00:40:19.114 N] [Kupo] Casting Heavy Shot
[00:40:19.114 D] DoAction Spell 97 0x40001354
[00:40:21.484 N] [Kupo] Casting Heavy Shot 
[00:40:21.484 D] DoAction Spell 97 0x40001354
[00:40:23.646 N] [Kupo] Casting Misery's End
[00:40:23.646 D] DoAction Spell 103 0x40001354
[00:40:23.846 N] [Kupo] Casting Heavy Shot 
[00:40:23.846 D] DoAction Spell 97 0x40001354
[00:40:24.007 N] Stopping the bot. Reason:Pushed the stop button.
[00:40:24.007 D] CurrentBot.Stop()
[00:40:24.008 D] TreeHooks.Instance.ClearAll()
[00:40:24.008 N] Clearing all hooks.
[00:40:24.008 N] [Kupo] Hooks cleared, re-creating behaviors
[00:40:24.008 D] Replaced hook [Kupo.Combat] 4bdc7522-327b-4bee-a0f6-a8d8ae72696c
[00:40:24.008 D] Replaced hook [Kupo.Pull] ab07adf0-5904-4552-a21d-d75902c0e3ef
[00:40:24.008 D] Replaced hook [Kupo.Rest] 7f91a102-e091-4bc5-8375-4174456bad75
[00:40:24.008 D] Replaced hook [Kupo.CombatBuffs] 4f6aade5-02a8-45bb-a573-18a638a85510
[00:40:24.008 D] Replaced hook [Kupo.Heal] 854dcd0d-df00-4a3a-9876-fd5f4f5d2b03
[00:40:24.008 D] Replaced hook [Kupo.PreCombatBuffs] bec504d1-8c5b-4e98-a3f6-addadd2d713d
[00:40:24.008 D] Navigator.Clear()
[00:40:24.009 V] [Poi.Clear] Reason: Bot stopped
[00:40:24.009 D] OnStop event
[00:40:24.011 N] Bot Thread Ended. Was this requested?
[00:40:35.756 D] Reloading AssemblyLoader<ff14bot.Interfaces.IBotPlugin> - Created
[00:40:36.854 N] [Kupo] Shutingdown Kupo [ArcherBard] 
[00:40:36.854 N] [Kupo] Shutingdown Kupo [ArcherBard]
[00:40:36.856 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
[00:40:36.856 D] Kupo [ArcherBard] v1.0.263.0
[00:40:36.856 D] Kupper [ArcherBard] v1.0.181.0
[00:40:36.856 D] Magitek v0.0.0.0
[00:40:36.856 D] MoreDots [Bard] v0.0.0.0
[00:40:36.856 D] Ultima v1.0.0.0
[00:40:40.004 N] Starting Combat Assist
[00:40:40.006 N] [Kupo] Casting Straight Shot 
[00:40:40.006 D] DoAction Spell 98 0x40001354
[00:40:40.015 N] [Kupo] Casting Bloodletter
[00:40:40.015 D] DoAction Spell 110 0x40001354
[00:40:41.158 N] [Kupo] Casting Misery's End 
[00:40:41.158 D] DoAction Spell 103 0x40001354
[00:40:42.390 N] [Kupo] Applying Venomous Bite
[00:40:42.390 D] DoAction Spell 100 0x40001354
[00:40:44.754 N] [Kupo] Casting Heavy Shot 
[00:40:44.754 D] DoAction Spell 97 0x40001354
[00:40:47.125 N] [Kupo] Casting Straight Shot
[00:40:47.125 D] DoAction Spell 98 0x40001354
[00:40:49.488 N] [Kupo] Casting Heavy Shot 
[00:40:49.488 D] DoAction Spell 97 0x40001354
[00:40:50.078 N] Stopping the bot. Reason:Pushed the stop button.
[00:40:50.078 D] CurrentBot.Stop()
[00:40:50.078 D] TreeHooks.Instance.ClearAll()
[00:40:50.078 N] Clearing all hooks.
[00:40:50.078 D] Navigator.Clear()
[00:40:50.078 V] [Poi.Clear] Reason: Bot stopped
[00:40:50.078 D] OnStop event
[00:40:50.095 N] Bot Thread Ended. Was this requested?
[/HIDE]

So is every single CR not capable of being switched? And if so, how do I ask the developers to fix the "bad"? Or even look into doing it myself?

EDIT: I saw your edit, adding it now.
 
read my edit

simple slouthing would have revealed the issue for your self, looking at combat assists source, and simply checking the value of routinemanager.current to confirm that it changed would have indicated the issue was with combat assist.
 
Now we are much, much closer to where I wanted it to be.

As per your suggestion, I added:

[HIDE]
Code:
        public void OnStop()
        {
            _root = null;
        }
[/HIDE]

to RaidBro.cs as it did not have an OnStop() declared in it initally, and when I placed _root = null; into:

[HIDE]
Code:
        public override void Stop()
        {
            HotkeyManager.Unregister("Raidbro Pause");
        }
[/HIDE]

it threw an error:

[00:58:52.749 D] System.ApplicationException: Cannot run Tick before running Start first!
at TreeSharp.Composite.Tick(Object context)
at ff14bot.TreeRoot.().

Is there something further that I am going to need to edit in Raidbro?

While adding it to it's own declaration OnStop(), compiles and runs, once you stop Combat Assist and try to start it again, it will not take over again, it just sits idle.

Since it only constructs the behavior tree once, am I going to need to add in a OnStart() as well and re-create that behavior tree?

EDIT: I forgot to add, FATE bot worked! It definitely switched the CRs exactly like it should have. Only Combat Assist is having the issue now.
 
Sorry, "Stop" is the proper function. That exception shouldn't do any harm.
 
Okay, I switched it back to the Stop() function. It takes another Start/Stop to get it to switch over, but it seems to be working as intended now.

Thank you very much for your help in this. I will remember this as a lesson learned to try the other botbases as well, to see if it is something that is only affecting one.

As an additional question, would it be possible to add that line, or even the CR switching functionality itself into the next release of RB, or, should I include instructions in the plugin release thread itself to add your line of code to RaidBro.cs and/or include a modified copy of it with the plugin?
 
I'll probably add an event handler to routinemanager. The otherbot bases shouldn't be storing the tree.
 
Understood. Thank you once again mastahg. I'll look forward to whatever it is you decide to do, and will react accordingly.

For now, I'll just include the modified RaidBro with the plugin, and cut it back out when I need to.
 
Back
Top