ArticySoftware / Articy3ImporterForUnreal

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

"Warning: No ArticyDraftDatabase was found." in Standalone Game #65

Open PartlyAtomic opened 2 years ago

PartlyAtomic commented 2 years ago

Database isn't found when running as Standalone Game. However, I've verified that it works in PIE and packaged games.


[2021.10.22-01.24.47:265][  0]LogTemp: Warning: Cloning ArticyDatabase.
[2021.10.22-01.24.47:266][  0]LogArticyRuntime: Warning: No ArticyDraftDatabase was found.
[2021.10.22-01.24.47:266][  0]LogOutputDevice: Warning: 

Script Stack (0 frames):

[2021.10.22-01.24.47:577][  0]LogStats: FPlatformStackWalk::StackWalkAndDump -  0.311 s
[2021.10.22-01.24.47:577][  0]LogOutputDevice: Error: === Handled ensure: ===
[2021.10.22-01.24.47:577][  0]LogOutputDevice: Error: 
[2021.10.22-01.24.47:577][  0]LogOutputDevice: Error: Ensure condition failed: database [File:G:/UnrealProjects/PartlyAtomic/HiShop/Plugins/ArticyImporterForUnreal/Source/ArticyRuntime/Private/ArticyRef.cpp] [Line: 39]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: Could not get articy database
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: Stack: 
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffac3425b99 UE4Editor-ArticyRuntime.dll!<lambda_3a7a50a622fa432ba6c571c9f511ed74>::operator()() [G:\UnrealProjects\PartlyAtomic\HiShop\Plugins\ArticyImporterForUnreal\Source\ArticyRuntime\Private\ArticyRef.cpp:39]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffac3424103 UE4Editor-ArticyRuntime.dll!DispatchCheckVerify<bool,<lambda_3a7a50a622fa432ba6c571c9f511ed74> >() [G:\Epic Games\UE_4.27\Engine\Source\Runtime\Core\Public\Misc\AssertionMacros.h:165]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffac33c4489 UE4Editor-ArticyRuntime.dll!FArticyRef::GetObjectInternal() [G:\UnrealProjects\PartlyAtomic\HiShop\Plugins\ArticyImporterForUnreal\Source\ArticyRuntime\Private\ArticyRef.cpp:39]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffac337dacc UE4Editor-ArticyRuntime.dll!FArticyRef::GetObject<UArticyObject>() [G:\UnrealProjects\PartlyAtomic\HiShop\Plugins\ArticyImporterForUnreal\Source\ArticyRuntime\Public\ArticyRef.h:150]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffac33e2931 UE4Editor-ArticyRuntime.dll!UArticyFlowPlayer::SetCursorToStartNode() [G:\UnrealProjects\PartlyAtomic\HiShop\Plugins\ArticyImporterForUnreal\Source\ArticyRuntime\Private\ArticyFlowPlayer.cpp:356]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffac33aa7ae UE4Editor-ArticyRuntime.dll!UArticyFlowPlayer::BeginPlay() [G:\UnrealProjects\PartlyAtomic\HiShop\Plugins\ArticyImporterForUnreal\Source\ArticyRuntime\Private\ArticyFlowPlayer.cpp:28]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffaed097362 UE4Editor-Engine.dll!AActor::BeginPlay() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3557]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffaed0a0bdf UE4Editor-Engine.dll!AActor::DispatchBeginPlay() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3519]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffaee4a9dd5 UE4Editor-Engine.dll!AWorldSettings::NotifyBeginPlay() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\WorldSettings.cpp:247]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffaed7ec951 UE4Editor-Engine.dll!AGameStateBase::HandleBeginPlay() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\GameStateBase.cpp:205]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffaee44de7e UE4Editor-Engine.dll!UWorld::BeginPlay() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\World.cpp:4416]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffaee37c951 UE4Editor-Engine.dll!UEngine::LoadMap() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\UnrealEngine.cpp:13264]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffaee3285e3 UE4Editor-Engine.dll!UEngine::Browse() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\UnrealEngine.cpp:12463]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffaed80db2e UE4Editor-Engine.dll!UGameInstance::StartGameInstance() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\GameInstance.cpp:584]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ff7c7f43290 UE4Editor.exe!FEngineLoop::Init() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4056]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ff7c7f60e32 UE4Editor.exe!GuardedMain() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:160]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ff7c7f610aa UE4Editor.exe!GuardedMainWrapper() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ff7c7f640cd UE4Editor.exe!LaunchWindowsStartup() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:273]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ff7c7f75984 UE4Editor.exe!WinMain() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:320]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ff7c7f7853a UE4Editor.exe!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffb6ee57034 KERNEL32.DLL!UnknownFunction []
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: [Callstack] 0x00007ffb70d42651 ntdll.dll!UnknownFunction []
[2021.10.22-01.24.47:578][  0]LogOutputDevice: Error: 
[2021.10.22-01.24.47:580][  0]LogStats:                SubmitErrorReport -  0.000 s
[2021.10.22-01.24.48:955][  0]LogStats:                    SendNewReport -  1.376 s
[2021.10.22-01.24.48:955][  0]LogStats:             FDebug::EnsureFailed -  1.689 s
PartlyAtomic commented 2 years ago

I've found a temporary fix on the unreal forums: https://forums.unrealengine.com/t/asset-registry-why-does-this-assert-only-in-standalone-from-editor/101732/5

By adding the following to Game->Asset Manager->Primary Asset Types to Scan in Project Settings, Standalone now works correctly. image

brwarner commented 2 years ago

Does it work if you try this?

https://github.com/ArticySoftware/ArticyImporterForUnreal#error-could-not-get-articy-database-when-running-a-packaged-build

I'm guessing the problem is that Unreal doesn't know the Articy Database asset is required for the build, so it doesn't cook it. I haven't used the Asset Manager settings before. Usually I just suggest you add the asset to the list to cook.

PartlyAtomic commented 2 years ago

That worked for the packaged build, but not Standalone

brwarner commented 2 years ago

Interesting... Thanks for reporting this. I'll do some research and update our Readme documentation for anyone else who runs into this.

DarioVangelista commented 2 years ago

I have encountered the same issue, even in the ManiacMansion demo. Not a big deal at the moment.

wahoozerman commented 1 year ago

This is still occurring, though in UE5 the above solutions do not cleanly solve the issue any longer.

It seems the correct solution is to give the Articy classes proper overrides for GetPrimaryAssetID so that they can be found by the asset manager. Then add them to the asset manager in the project settings as described above. Unfortunately doing this requires a custom change to the plugin.