mesterKG:
Hi,
I’m struggling with the standalone issue, ie. when running in standalone from editor or RMB on uproject file and Launch, the game crashes on load with this in log
[2018.04.09-12.09.12:697] 0]LoadErrors: Failed to load /Script/AbleEditor.AblAbilityGraph Referenced by ABY_Farmer_BowRaiseAndDraw_01
[2018.04.09-12.09.12:697] 0]LogUObjectGlobals: Warning: Failed to load '/Script/AbleEditor': Can't find file '/Script/AbleEditor'
[2018.04.09-12.09.12:697] 0]LogLinker: Warning: Can't find file for asset '/Script/AbleEditor' while loading NULL.
[2018.04.09-12.09.12:697] 0]LoadErrors: Failed to load /Script/AbleEditor.AblAbilityGraph Referenced by ABY_Farmer_BowRaiseAndDraw_01
[2018.04.09-12.09.12:697] 0]LogUObjectGlobals: Warning: Failed to load '/Script/AbleEditor': Can't find file for asset '/Script/AbleEditor' while loading NULL.
[2018.04.09-12.09.19:236] 0]LogWindows: Error: === Critical error: ===
[2018.04.09-12.09.19:236] 0]LogWindows: Error:
[2018.04.09-12.09.19:236] 0]LogWindows: Error: Fatal error!
[2018.04.09-12.09.19:236] 0]LogWindows: Error:
[2018.04.09-12.09.19:236] 0]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000060
[2018.04.09-12.09.19:236] 0]LogWindows: Error:
[2018.04.09-12.09.19:236] 0]LogWindows: Error: [Callstack] 0x00000000458504A9 UE4Editor-Engine.dll!UEdGraph::GetAllChildrenGraphs() [c:\gamedev\mesterkg_lightspark\unrealengine\engine\source\runtime\engine\private\edgraph\edgraph.cpp:340]
[2018.04.09-12.09.19:236] 0]LogWindows: Error: [Callstack] 0x00000000454F7794 UE4Editor-Engine.dll!UBlueprint::GetAllGraphs() [c:\gamedev\mesterkg_lightspark\unrealengine\engine\source\runtime\engine\private\blueprint.cpp:1542]
[2018.04.09-12.09.19:237] 0]LogWindows: Error: [Callstack] 0x0000000052DCA8E0 UE4Editor-UnrealEd.dll!FRegenerationHelper::LinkExternalDependencies() [c:\gamedev\mesterkg_lightspark\unrealengine\engine\source\editor\unrealed\private\kismet2\blueprinteditorutils.cpp:1096]
[2018.04.09-12.09.19:237] 0]LogWindows: Error: [Callstack] 0x0000000052DCA651 UE4Editor-UnrealEd.dll!FBlueprintEditorUtils::LinkExternalDependencies() [c:\gamedev\mesterkg_lightspark\unrealengine\engine\source\editor\unrealed\private\kismet2\blueprinteditorutils.cpp:1560]
[2018.04.09-12.09.19:237] 0]LogWindows: Error: [Callstack] 0x000000004551548E UE4Editor-Engine.dll!UBlueprint::RegenerateClass() [c:\gamedev\mesterkg_lightspark\unrealengine\engine\source\runtime\engine\private\blueprint.cpp:649]
Last I asked about this, you referred me to a fix in engine code. I’ve applied that fix:
UClass* FBlueprintEditorUtils::RegenerateBlueprintClass(UBlueprint* Blueprint, UClass* ClassToRegenerate, UObject* PreviousCDO, TArray<UObject*>& ObjLoaded)
{
// Purge any NULL graphs - fix for ABLE standalone issue
FBlueprintEditorUtils::PurgeNullGraphs(Blueprint);
bool bRegenerated = false;
// Cache off the dirty flag for the package, so we can restore it later
UPackage* Package = Blueprint->GetOutermost();
bool bIsPackageDirty = Package ? Package->IsDirty() : false;
Any ideas?
–mesterKG
That’s the fix and the callstack for that nullptr crash. Are you sure you recompiled the engine and are running against that version? You’ll need to right click on your uproject file and tell it to use your custom version of the engine.