Mastahg,
I am currently getting some very interesting behavior out of the following 2 API calls:
I am currently using the following code to test these in the RebornConsole:
Currently, when I just start a brand new instance of RB and I haven't actually started any BotBase, when I run the above code this is what I'm getting:
Notice how I'm getting the name of the Hooks, but I'm not getting any HookDescriptions at all.
Now is where things are really getting weird for me and I don't understand what is causing them to happen. As soon as I hit Start on RB to start running the BotBase, I now get this result from running the same code snippet in the Console:
Notice how we have a new Hook showing up (DeathReturnLogic) and we are finally getting a HookDescription as well (for DeathReturnLogic).
Why this is weird to me is because I've looked at the code in RaidBro.cs (Combat Assist) and I don't see it adding a new HookExecutor or a new HookDescription anywhere.
Further confusion is caused when I click the Stop button in RB. After clicking Stop and re-running the same code snippet, I get the following results:
It looks like there is something wrong within the BotStop methods somewhere. The reason I say this, is because if I click Start and then run the code snippet again, I get the same results...but as soon as I hit Stop and then run the code snippet again, I get another duplicate entry in the HookDescriptions.
Here's a result after Starting/Stopping the bot many times:
Can you give any insight on why the API is inserting a new hook (DeathReturnLogic). Can you also look into the duplicate entries into the HookDescriptions.
Thanks,
Rahl
I am currently getting some very interesting behavior out of the following 2 API calls:
- TreeHooks.Instance.Hooks
- TreeHooks.Instance.HookDescriptions
I am currently using the following code to test these in the RebornConsole:
Code:
Log(BotManager.Current.EnglishName);
Log("\n");
foreach (var hook in ff14bot.Behavior.TreeHooks.Instance.Hooks)
{
Log(hook.Key);
}
Log("\n");
foreach (var hookDescription in ff14bot.Behavior.TreeHooks.Instance.HookDescriptions)
{
Log(hookDescription.Name + ":\t" + hookDescription.Description);
}
Currently, when I just start a brand new instance of RB and I haven't actually started any BotBase, when I run the above code this is what I'm getting:
Code:
Combat Assist
TreeStart
PoiAction
PreCombatBuff
Heal
Pull
CombatBuff
Combat
Rest
Notice how I'm getting the name of the Hooks, but I'm not getting any HookDescriptions at all.
Now is where things are really getting weird for me and I don't understand what is causing them to happen. As soon as I hit Start on RB to start running the BotBase, I now get this result from running the same code snippet in the Console:
Code:
Combat Assist
TreeStart
PoiAction
PreCombatBuff
Heal
Pull
CombatBuff
Combat
Rest
DeathReturnLogic
DeathReturnLogic: This logic runs if the player has died and succesfully revied
Notice how we have a new Hook showing up (DeathReturnLogic) and we are finally getting a HookDescription as well (for DeathReturnLogic).
Why this is weird to me is because I've looked at the code in RaidBro.cs (Combat Assist) and I don't see it adding a new HookExecutor or a new HookDescription anywhere.
Further confusion is caused when I click the Stop button in RB. After clicking Stop and re-running the same code snippet, I get the following results:
Code:
Combat Assist
TreeStart
PoiAction
PreCombatBuff
Heal
Pull
CombatBuff
Combat
Rest
DeathReturnLogic
DeathReturnLogic: This logic runs if the player has died and succesfully revied
DeathReturnLogic: This logic runs if the player has died and succesfully revied
It looks like there is something wrong within the BotStop methods somewhere. The reason I say this, is because if I click Start and then run the code snippet again, I get the same results...but as soon as I hit Stop and then run the code snippet again, I get another duplicate entry in the HookDescriptions.
Here's a result after Starting/Stopping the bot many times:
Code:
Combat Assist
TreeStart
PoiAction
PreCombatBuff
Heal
Pull
CombatBuff
Combat
Rest
DeathReturnLogic
DeathReturnLogic: This logic runs if the player has died and succesfully revied
DeathReturnLogic: This logic runs if the player has died and succesfully revied
DeathReturnLogic: This logic runs if the player has died and succesfully revied
DeathReturnLogic: This logic runs if the player has died and succesfully revied
DeathReturnLogic: This logic runs if the player has died and succesfully revied
DeathReturnLogic: This logic runs if the player has died and succesfully revied
DeathReturnLogic: This logic runs if the player has died and succesfully revied
Can you give any insight on why the API is inserting a new hook (DeathReturnLogic). Can you also look into the duplicate entries into the HookDescriptions.
Thanks,
Rahl