Crash when hooking player inventory widget appearing on the main menu

This one's a bit weird... - Custom Player Inventory's config widget has a player inventory widget for previewing purposes. - If I hook Construct using the new SML hooking system, it results in the attached crash when I visit the config from the main menu, no matter what the hook code is. - The crash doesn't happen from the game world (and the hook works correctly) - If I remove my hook, the player inventory widget alone doesn't crash the game from the main menu not sure if this is a problem with my mod or with SML's hooking approach in this edge case. source code is public
5 Replies
Robb
RobbOP4mo ago
for now I just don't spawn the inventory widget when on the main menu, avoiding the crash, but it would be nice to know the true cause of this crash also happens with MAM Enhancer's config widget which has 3 instances of MAM nodes. did not happen earlier in the update process but definitely does now that I am hooking stuff. again only happens on the main menu
Robb
RobbOP4mo ago
Robb
RobbOP4mo ago
bringing in @Mircea (Area Actions) @Archengius since I think you have the most new hooking system knowledge
Robb
RobbOP4mo ago
here's the full log from that game session
FICSIT-Fred
FICSIT-Fred4mo ago
It has been attached to this message. -# Responding to Crash found in FactoryGame.log triggered by @Robb (Extra Busy)

Did you find this page helpful?