ArticySoftware / Articy3ImporterForUnreal

Articy Importer plugin for the Unreal Engine 4 and Unreal Engine 5 (work in progress).
MIT License
98 stars 41 forks source link

Packaged game missing Articy Database? #20

Closed sbnewsom closed 4 years ago

sbnewsom commented 4 years ago

When packaging the game, I've found the data and debug I get from any instances that used AD to not getting any return data. As if it doesn't have a database. Here is the error log. I also made symbol debug keys to get bare minimum data like name and it gives nothing in return except the error. Is there suppose to be a procedure with packaging the game like copying over certain files? This is a Development build, and I have yet to try Debug or Shipped...but the same thing happens in Standalone Play in Editor.

`[2020.02.29-01.35.57:671][ 0]LogTemp: Warning: Cloning ArticyDatabase. [2020.02.29-01.35.57:673][ 0]LogOutputDevice: Warning:

Script Stack (3 frames): Ent_InvItem_C.ExecuteUbergraph_Ent_InvItem Ent_InvItem_C.AltConstruct Ent_InvItem_C.UserConstructionScript

[2020.02.29-01.35.58:801][ 0]LogStats: FPlatformStackWalk::StackWalkAndDump - 1.128 s [2020.02.29-01.35.58:801][ 0]LogOutputDevice: Error: === Handled ensure: === [2020.02.29-01.35.58:801][ 0]LogOutputDevice: Error: [2020.02.29-01.35.58:801][ 0]LogOutputDevice: Error: Ensure condition failed: AssetData.Num() != 0 [File:O:\NaughtyShinobi\SOIGame\Plugins\ArticyImporter\Source\ArticyRuntime\Private\ArticyDatabase.cpp] [Line: 390] [2020.02.29-01.35.58:801][ 0]LogOutputDevice: Error: Could not find original asset of ArticyDraftDatabase! [2020.02.29-01.35.58:801][ 0]LogOutputDevice: Error: Stack: [2020.02.29-01.35.58:801][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff9212cd499 UE4Editor-ArticyRuntime.dll!::operator()() [O:\NaughtyShinobi\SOIGame\Plugins\ArticyImporter\Source\ArticyRuntime\Private\ArticyDatabase.cpp:390] [2020.02.29-01.35.58:801][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff9212cc6f3 UE4Editor-ArticyRuntime.dll!DispatchCheckVerify<bool, >() [O:\Program Files\Epic Games\UE_4.22\Engine\Source\Runtime\Core\Public\Misc\AssertionMacros.h:162] [2020.02.29-01.35.58:801][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff921272c89 UE4Editor-ArticyRuntime.dll!UArticyDatabase::GetOriginal() [O:\NaughtyShinobi\SOIGame\Plugins\ArticyImporter\Source\ArticyRuntime\Private\ArticyDatabase.cpp:390] [2020.02.29-01.35.58:801][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff92126e00c UE4Editor-ArticyRuntime.dll!UArticyDatabase::Get() [O:\NaughtyShinobi\SOIGame\Plugins\ArticyImporter\Source\ArticyRuntime\Private\ArticyDatabase.cpp:138] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff921271f41 UE4Editor-ArticyRuntime.dll!FArticyRef::GetObjectInternal() [O:\NaughtyShinobi\SOIGame\Plugins\ArticyImporter\Source\ArticyRuntime\Private\ArticyRef.cpp:38] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff9212321dc UE4Editor-ArticyRuntime.dll!FArticyRef::GetObject() [O:\NaughtyShinobi\SOIGame\Plugins\ArticyImporter\Source\ArticyRuntime\Public\ArticyRef.h:82] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff92125e502 UE4Editor-ArticyRuntime.dll!UArticyFunctionLibrary::ArticyRef_GetObject() [O:\NaughtyShinobi\SOIGame\Plugins\ArticyImporter\Source\ArticyRuntime\Private\ArticyFunctionLibrary.cpp:14] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff921299a00 UE4Editor-ArticyRuntime.dll!UArticyFunctionLibrary::execArticyRef_GetObject() [O:\NaughtyShinobi\SOIGame\Plugins\ArticyImporter\Source\ArticyRuntime\Public\ArticyFunctionLibrary.h:18] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff969febac8 UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a1e00e2 UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a1fcbc1 UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a214be6 UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a1fe98d UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a1d5efb UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a1fe6a9 UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a1fe98d UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a1d5efb UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a1fe6a9 UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a1fe98d UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a1fe378 UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff969febac8 UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96a1fdf07 UE4Editor-CoreUObject.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff967729ff3 UE4Editor-Engine.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96772a10b UE4Editor-Engine.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96770a40e UE4Editor-Engine.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff967731252 UE4Editor-Engine.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff967f29916 UE4Editor-Engine.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff96880ec90 UE4Editor-Engine.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff9687ed8cb UE4Editor-Engine.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff9686fd6b4 UE4Editor-Engine.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff9686a1d97 UE4Editor-Engine.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff967d48b92 UE4Editor-Engine.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff622672bc1 UE4Editor.exe!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff62268544a UE4Editor.exe!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff6226855ca UE4Editor.exe!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff62269316c UE4Editor.exe!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff622695b8e UE4Editor.exe!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff9adfd7bd4 KERNEL32.DLL!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [Callstack] 0x00007ff9aedeced1 ntdll.dll!UnknownFunction [] [2020.02.29-01.35.58:802][ 0]LogOutputDevice: Error: [2020.02.29-01.35.58:806][ 0]LogStats: SubmitErrorReport - 0.000 s [2020.02.29-01.36.00:244][ 0]LogStats: SendNewReport - 1.438 s [2020.02.29-01.36.00:244][ 0]LogStats: FDebug::EnsureFailed - 2.570 s`

herr-edgy commented 4 years ago

Thanks for the notification.

This is most likely expected behavior. Since the database asset, the GV asset and the package assets are not referenced directly in any level, they are stripped out during packaging by default.

To change this behavior, please go to 'Project Settings' -> 'Packaging' -> Expand the 'Packaging' tab and add the 'ArticyContent' folder under the setting "Additional Asset Directories to Cook". The entry should look like this: "/Game/ArticyContent/"

As for the standalone mode, this is sadly due to a bug in the engine that Epic has failed to address over several versions of the engine and that we can not fix on our end.

If the error persists, please let me know.

sbnewsom commented 4 years ago

Thanks. This solved a longstanding issue which preventing me from REALLY using Articy previously. This is a massive relief. I knew it was somewhat along these lines because of another plugin I used a long time ago, but forgot where to look. Thanks Quexlaw!

Liosan commented 4 years ago

Hi folks. I managed to workaround the "standalone game" issue by creating hard references to articy assets in an always-loaded actor. In particular, I added 3 unused variables to my game mode: the articy database asset, the articy global variabes asset and the articy package asset. A dirty hack but it seemed to solve the problem.

Liosan commented 4 years ago

Scratch that. I found a proper solution. In your Project Settings, go to Asset Manager, and add articy data types as primary asset types to scan. Then, in Custom Primary Asset Rules, set them to "Always Cook". Works like a charm.

image image

herr-edgy commented 4 years ago

Thanks for informing us @Liosan! As we can't easily set this up inside the plugin itself we will add this to our upcoming documentation's FAQ section.