satisfactorymodding / satisfactorymodding/SatisfactoryModLoader

Update `LogBlueprintHookingCodeGen` errors to include mod reference of hooking mod

Open
#379 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
344
Forks
225
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the LogBlueprintHookingCodeGen error path and inspect how hook installation failures are logged. Update the relevant error output so it identifies the mod that attempted the hook, then verify that the resulting log distinguishes the hooking mod without relying on configuration-asset messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, unreal-engine
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.