daz3d / DazToUnreal

Daz to Unreal Bridge
Apache License 2.0
150 stars 44 forks source link

Project packaged with DazToUnreal engine doesnt launch #32

Open bjdash opened 1 year ago

bjdash commented 1 year ago

I have a project with DazToUnreal plugin enabled. The plugin is placed under <project_path>/Plugins directory. I packed the game in Development mode and tried to launch it. But nothis happens and the log shows following error

Log file open, 02/22/23 16:41:50
LogWindows: Failed to load 'aqProf.dll' (GetLastError=0)
LogWindows: File 'aqProf.dll' does not exist
LogProfilingDebugging: Loading WinPixEventRuntime.dll for PIX profiling (from ../../../Engine/Binaries/ThirdParty/Windows/WinPixEventRuntime/x64).
LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=0)
LogWindows: File 'VtuneApi.dll' does not exist
LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=0)
LogWindows: File 'VtuneApi32e.dll' does not exist
LogWindows: Custom abort handler registered for crash reporting.
LogInit: Display: Running engine for game: testX
LogCore: Display: UnrealTraceServer: Unable to launch the trace store with '"../../../Engine//Binaries/Win64/UnrealTraceServer.exe" fork' (00000002)
LogCore: Initializing trace...
LogCore: Finished trace initialization.
LogCsvProfiler: Display: Metadata set : platform="Windows"
LogCsvProfiler: Display: Metadata set : config="Development"
LogCsvProfiler: Display: Metadata set : buildversion="++UE5+Release-5.1-CL-23901901"
LogCsvProfiler: Display: Metadata set : engineversion="5.1.1-23901901+++UE5+Release-5.1"
LogCsvProfiler: Display: Metadata set : commandline="" ..\..\..\testX\testX.uproject""
LogCsvProfiler: Display: Metadata set : os="Windows 11 (22H2) [10.0.22621.1265] "
LogCsvProfiler: Display: Metadata set : cpu="AuthenticAMD|AMD Ryzen 5 3600XT 6-Core Processor"
LogCsvProfiler: Display: Metadata set : pgoenabled="0"
LogCsvProfiler: Display: Metadata set : loginid="752ef2964185dca8eb92a8ad0929f9fb"
LogCsvProfiler: Display: Metadata set : asan="0"
LogCsvProfiler: Display: Metadata set : llm="0"
LogInit: Display: Project file not found: ../../../testX/testX.uproject
LogInit: Display:   Attempting to find via project info helper.
LogUProjectInfo: Found projects:
LogIoDispatcher: Display: Reading toc: ../../../testX/Content/Paks/global.utoc
LogIoDispatcher: Display: Toc signature hash: 0000000000000000000000000000000000000000
LogIoDispatcher: Display: Mounting container '../../../testX/Content/Paks/global.utoc' in location slot 0
LogPakFile: Display: Initialized I/O dispatcher file backend. Mounted the global container: ../../../testX/Content/Paks/global.utoc
LogPakFile: Display: Found Pak file ../../../testX/Content/Paks/testX-Windows.pak attempting to mount.
LogPakFile: Display: Mounting pak file ../../../testX/Content/Paks/testX-Windows.pak.
LogIoDispatcher: Display: Reading toc: ../../../testX/Content/Paks/testX-Windows.utoc
LogIoDispatcher: Display: Toc signature hash: 0000000000000000000000000000000000000000
LogIoDispatcher: Display: Mounting container '../../../testX/Content/Paks/testX-Windows.utoc' in location slot 0
LogPakFile: Display: Mounted IoStore container "../../../testX/Content/Paks/testX-Windows.utoc"
LogPakFile: Display: Mounted Pak file '../../../testX/Content/Paks/testX-Windows.pak', mount point: '../../../'
LogStats: Stats thread started at 0.084042
LogAssetRegistry: Premade AssetRegistry loaded from '../../../testX/AssetRegistry.bin'
LogICUInternationalization: ICU TimeZone Detection - Raw Offset: +0:00, Platform Override: ''
LogInit: Session CrashGUID >====================================================
         Session CrashGUID >   UECC-Windows-359A68124CC7A15B693F4E973CEE1B57
         Session CrashGUID >====================================================
LogPluginManager: Error: Unable to load plugin 'LiveLink'. Aborting.
LogCore: Engine exit requested (reason: EngineExit() was called)
LogExit: Preparing to exit.
LogModuleManager: Shutting down and abandoning module RenderCore (28)
LogModuleManager: Shutting down and abandoning module Landscape (26)
LogModuleManager: Shutting down and abandoning module SlateRHIRenderer (24)
LogModuleManager: Shutting down and abandoning module AnimGraphRuntime (22)
LogModuleManager: Shutting down and abandoning module Renderer (20)
LogModuleManager: Shutting down and abandoning module Engine (18)
LogModuleManager: Shutting down and abandoning module CoreUObject (16)
LogModuleManager: Shutting down and abandoning module SandboxFile (14)
LogModuleManager: Shutting down and abandoning module PakFile (12)
LogModuleManager: Shutting down and abandoning module RSA (11)
LogModuleManager: Shutting down and abandoning module NetworkFile (8)
LogModuleManager: Shutting down and abandoning module StreamingFile (6)
LogModuleManager: Shutting down and abandoning module CookOnTheFly (4)
LogModuleManager: Shutting down and abandoning module StorageServerClient (2)
LogExit: Exiting.
Log file closed, 02/22/23 16:41:50

I noticed the error Error: Unable to load plugin 'LiveLink'. Aborting. and tried to disable it as its not relevant to my project but since its used by DazToUnreal it can't be disabled.

Any way to remove this dependency to get the game working?

danielbui78 commented 1 year ago

You can try opening the DazToUnreal.uplugin file inside the \Plugins\DazToUnreal folder, and then removing the following lines:

https://github.com/daz3d/DazToUnreal/blob/40a37f4c8a53c73fab7813f755b907995c629ddd/UnrealPlugin/DazToUnreal/DazToUnreal.uplugin#L50-L53

You may also need to delete or modify blueprints that reference LiveLink.

Another option you can use is to create a second project that does not have LiveLink and then "Migrate" the Daz characters to your new project. Before migration, you may want to collect all the Daz To Unreal Plugin Content files to the main project content folder for easier folder management in the migrated assets (do this ONLY from Unreal Content Browser and not from the Windows Explorer or you will screw up your file path references and possibly irreversibly break your project).