Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdvDia.CurrentWorldDynamicId and ZetaDia.Globals.WorldId lead to slow down the bot #98

Open
LunarWhisper opened this issue Jan 29, 2019 · 0 comments

Comments

@LunarWhisper
Copy link

I'm not sure how this should work, but in my case Zeta returns a value (for example, Invalid) that is different from what Adv returns (and is stored in the ExplorationGrid). This leads to the fact that every 200 ms the bot re-create the grid. Bot wildly slows down, generates megabytes of logs in a few seconds and the game crashes.

default

в Trinity.Components.Adventurer.Game.Exploration.Grid`1.Update(ISceneData newSceneData) в W:\DB\Plugins\Trinity\Components\Adventurer\Game\Exploration\Grid.cs:строка 61
в Trinity.Modules.SceneStorage.Update() в W:\DB\Plugins\Trinity\Modules\SceneStorage.cs:строка 144
в Trinity.Modules.GridEnricher.UpdateGrid() в W:\DB\Plugins\Trinity\Modules\GridEnricher.cs:строка 87
в Trinity.Modules.GridEnricher.OnPulse() в W:\DB\Plugins\Trinity\Modules\GridEnricher.cs:строка 73

https://github.com/BosslandGmbH/Trinity/blob/master/Modules/GridEnricher.cs

if (grid.NearestNode == null || grid.NearestNode.DynamicWorldId != ZetaDia.Globals.WorldId)
{
        Core.Scenes.Reset();
        Core.Scenes.Update();
        Core.Logger.Debug(LogCategory.Avoidance, "No Player Nearest Node or WorldId Mismatch");
        return;
}

https://github.com/BosslandGmbH/Trinity/blob/master/Components/Adventurer/Game/Exploration/ExplorationGrid.cs

public static ExplorationGrid Instance => GetWorldGrid(AdvDia.CurrentWorldDynamicId);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant