Skip to content

Bug Report: CreateObject2 for creatures not being detected anymore in new sniffs due to Tolerance being too tight. #979

@Gultask

Description

@Gultask

I've taken a batch of sniffs lately specifically for CO2s, but those aren't showing when parsed.

As a test, here's something I took today:

Video.Project.9.mp4

Not too far, NPC Time also showed when it spawned, but GitHub is being annoying with any video longer than 10s

And here's my config settings: https://gist.github.com/Gultask/d981d47d67f32b11f2aa57151f3667c3

<add key="creature"                               value="true"/>
<add key="GenerateCreateObject2SpawnsOnly" value="true"/>
<add key="TreatAsCreateObject2Tolerance" value="3"/> // Default

However, there is no sql output.

Image

Setting GenerateCreateObject2SpawnsOnly to false does generate an output, but no CreateObject2s

Looking a bit further. I used SET_SELECTION to find the recently spawned ones. As a group, they spawned in a batch, which was seen.

This is the spawn:

[0] UpdateType: CreateObject1
[0] Object Guid: Full: 0x2030EC476017228000489600009C2AE5 Creature/0 R3131/S18582 Map: 571 Entry: 23690 Low: 10234597
[0] TreatAsCreateObject2: False
[0] TimestampDiff: 14399

In the full video, the timestamp taken by the addon NPC Time had it down to the second, it lined up perfectly.

So I added a 15000 tolerance to CreateObject2. And it finally worked.

SET @CGUID := SET_VALUE_MANUALLY_HERE;

DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+4;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `VerifiedBuild`) VALUES
(@CGUID+0, 24791, 571, 495, 0, '0', '0', 0, 0, 0, 278.85894775390625, -4880.16650390625, 260.5655517578125, 5.829399585723876953, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 66044), -- 24791 (Area: 0 - Difficulty: 0) CreateObject2
(@CGUID+1, 23690, 571, 495, 0, '0', '0', 0, 0, 0, 281.818359375, -4882.2255859375, 260.521331787109375, 3.38135695457458496, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 66044), -- 23690 (Area: 0 - Difficulty: 0) CreateObject2
(@CGUID+2, 24791, 571, 495, 0, '0', '0', 0, 0, 0, 285.990875244140625, -4886.85791015625, 260.663604736328125, 2.305212020874023437, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 66044), -- 24791 (Area: 0 - Difficulty: 0) CreateObject2
(@CGUID+3, 24791, 571, 495, 0, '0', '0', 0, 0, 0, 289.745025634765625, -4880.17724609375, 257.09344482421875, 3.394398450851440429, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 66044), -- 24791 (Area: 0 - Difficulty: 0) CreateObject2
(@CGUID+4, 23690, 571, 495, 0, '0', '0', 0, 0, 0, 278.884124755859375, -4887.6279296875, 262.108428955078125, 1.073895215988159179, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 66044); -- 23690 (Area: 0 - Difficulty: 0) CreateObject2

Setting the tolerance to 15, as it's supposed to represent seconds, doesn't work.

The creatures I'm sniffing aren't really competed so it's fine on my end for now, I'm just putting it out there that the timestamps might be wrong or wrongfully represented.

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