Skip to content

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

@LunarWhisper

Description

@LunarWhisper

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions