Skip to content

Listeners not triggered for built-in query #578

Description

@Armithaig

I have attempted solutions to common problems

Yes

I have checked that my game version is supported

Yes

OS

Windows 10

Platform

Steam

Description

Listeners for the built-in query GetPerformGroupJoinRadius are not being triggered.

Indications

No response

Diagnostic Files

BG3 Diagnostic Data.txt

Steps to Reproduce

Include the below server-side lua test.

function TestOsirisPerformRadiusQuerySubscribers()
    local regOk = false
    local regOk2 = false
    Ext.Osiris.RegisterListener("GetPerformGroupJoinRadius", 1, "before", function (radius) 
        regOk = true
    end)
    Ext.Osiris.RegisterListener("GetPerformGroupJoinRadius", 1, "after", function (radius) 
        regOk2 = true
    end)
    Osi.GetPerformGroupJoinRadius()
    AssertEquals(regOk, true)
    AssertEquals(regOk2, true)
end

Execute !se_test in server-context console.

Expected Behavior

regOk and regOk2 should both be true.

Actual Behavior

Osiris callback manager registers the node handler without complaint, no errors are logged.
But handler functions never execute, regOk and regOk2 are both false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions