Skip to content

Update LogBlueprintHookingCodeGen errors to include mod reference of hooking mod #379

@budak7273

Description

@budak7273

Consider the following error message:

[2025.06.29-23.11.36:315][  0]LogBlueprintHookingCodeGen: Error: Cannot insert after hooks past the event return statement in Function /Game/FactoryGame/Buildable/Factory/TradingPost/UI/BPW_Hub_SchematicButton.BPW_Hub_SchematicButton_C:ExecuteUbergraph_BPW_Hub_SchematicButton
[2025.06.29-23.11.36:315][  0]LogBlueprintHookManager: Warning: Function /Game/FactoryGame/Buildable/Factory/TradingPost/UI/BPW_Hub_SchematicButton.BPW_Hub_SchematicButton_C:ExecuteUbergraph_BPW_Hub_SchematicButton failed to install some of the hooks. Function dumps for debugging are provided below:
[2025.06.29-23.11.36:315][  0]LogBlueprintHookManager: Display: Original function code /Game/FactoryGame/Buildable/Factory/TradingPost/UI/BPW_Hub_SchematicButton.BPW_Hub_SchematicButton_C:ExecuteUbergraph_BPW_Hub_SchematicButton
[2025.06.29-23.11.36:315][  0]LogBlueprintHookManager: Display: Function ExecuteUbergraph_BPW_Hub_SchematicButton (Flags 0x808001)
[2025.06.29-23.11.36:315][  0]LogBlueprintHookManager: Display: 	Function Locals:
[2025.06.29-23.11.36:315][  0]LogBlueprintHookManager: Display: 		EntryPoint: IntProperty (8001040000294)
<...>

It's not clear what mod tried to attach this hook. Currently, the only indication is that if a mod also has a configuration asset, it will be the configuration asset most recently logged:

[2025.06.29-23.11.36:315][  0]LogConfigManager: Display: Successfully loaded configuration from ../../../FactoryGame/Configs/MAMTips.cfg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    📋 Backlog

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions