Skip to content

Similar Code but "Couldn't register Osiris subscriber for PROC_Fun2/1: Symbol not found in story." #549

@eviluess

Description

@eviluess

I have attempted solutions to common problems

Yes

I have checked that my game version is supported

Yes

OS

Windows 11

Platform

GOG

Description

Hey, Nice Day~

In my Mod's Story, I have defined PROC_Fun1 and PROC_Fun2 like this:

PROC
PROC_Fun1((CHARACTER)_Target)
THEN
DB_NOOP(1);

PROC
PROC_Fun2((CHARACTER)_Target)
THEN
DB_NOOP(1);

And they are called somewhere like:

PROC
PROC_ExecFuns ((CHARACTER)_Target)
THEN
PROC_Fun1(_Target);
PROC_Fun2(_Target);

And in my Mod's Lua Script, I registered them in two callback like this:

Ext.Osiris.RegisterListener("PROC_Fun1", 1, "before", function (character)
    Ext.Entity.Get(character).ServerCharacter.OriginalTemplate.IsSteeringEnabled = true
end)

Ext.Osiris.RegisterListener("PROC_Fun2", 1, "before", function (character)
    Ext.Entity.Get(character).ServerCharacter.OriginalTemplate.IsMovementEnabled = true
end)

After the game is started, I found Fun2 is NOT executed, while Fun1 is executed.
I check the log and see
Couldn't register Osiris subscriber for PROC_Fun2/1: Symbol not found in story.

I just don't know why.
I tried to rename Fun2 to anything but just got similar "not found" error report.

For now, I have a workarround to do everything inside Fun1 until I can figure out why the Fun2 is now found in story.
SE v27;

Indications

bg3se::esv::lua::OsirisCallbackManager::RegisterNodeHandler(): Couldn't register Osiris subscriber for PROC_Fun2/1: Symbol not found in story.

Diagnostic Files

"https://github.com/Norbyte/blob/main/Generate%20BG3%20Diagnostic.bat" not found:
Image

Steps to Reproduce

All steps are in the description.

Expected Behavior

Fun2 should not be reported not found as it's similar to Fun1.

Actual Behavior

[Fun2 ](bg3se::esv::lua::OsirisCallbackManager::RegisterNodeHandler(): Couldn't register Osiris subscriber for PROC_Fun2/1: Symbol not found in story.)

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