kamrann / KantanCharts

UE4 plugin providing simple UMG/Slate chart plotting
http://kantandev.com/free/kantan-charts
MIT License
85 stars 37 forks source link

Couldn't find file for package /Script/KantanChartsUMG requested by async loading code. NameToLoad: /Script/KantanChartsUMG #12

Open greenwoodms06 opened 8 months ago

greenwoodms06 commented 8 months ago

UE4.27 (I know... stuck in the past still)

This plugin is working great in editor or via remote connection to a AR headset (Hololens). However, in a packaged build the widget using KantanCharts fails to work. Checking the log provides the following error:

Couldn't find file for package /Script/KantanChartsUMG requested by async loading code. NameToLoad: /Script/KantanChartsUMG

Anyone have insight on how to address this? I've scoured the forums with no success. There are numerous hits but the underlying issue doesn't seem to be the case. I'm guessing there is something that doesn't agree with UWP needed for Hololens builds but not sure as no other errors show up anywhere.

Also, no "Script" folder exists that I can find.

Any help would be immensely appreciated.

kamrann commented 8 months ago

I haven't tried the plugin on any XR platforms so pretty amazed that it works at all to be honest. At a guess that error is just because the modules aren't enabled for the platform. /Script is for whatever reason the UE prefix for C++ module packages. Try editing the uplugin file and adding the Hololens platform to each of the WhitelistPlatforms lists except for KantanChartsEditor.

praful0203 commented 2 months ago

Hey, I am using Unreal Engine 4.27.2 and the plugin version is 1.8. While packaging, I got the following warnings and the chart UI does not show up in the Hololens 2:

LogPluginManager: Mounting plugin KantanCharts
LogLinker: Warning: Asset '../../Plugins/Marketplace/KantanCharts/Content/Style/SeriesStyles/PointStyles/PS_X.uasset' has been saved with empty engine version. The asset will be loaded but may be incompatible.
LogClass: Display: StructProperty FKantanCartesianDatapoint::Coords is not initialized properly. Module:KantanChartsDatasource File:Public/KantanCartesianDatapoint.h
UATHelper: Packaging (HoloLens):   LogLinker: Warning: Asset '../../Plugins/Marketplace/KantanCharts/Content/Style/SeriesStyles/PointStyles/PS_X.uasset' has been saved with empty engine version. The asset will be loaded but may be incompatible.
PackagingResults: Warning: Asset '../../Plugins/Marketplace/KantanCharts/Content/Style/SeriesStyles/PointStyles/PS_X.uasset' has been saved with empty engine version. The asset will be loaded but may be incompatible.
UATHelper: Packaging (HoloLens):   LogClass: Display: StructProperty FKantanCartesianDatapoint::Coords is not initialized properly. Module: KantanChartsDatasource File:Public/KantanCartesianDatapoint.h
UATHelper: Packaging (HoloLens):   LogInit: Display: LogLinker: Warning: Asset '../../Plugins/Marketplace/KantanCharts/Content/Style/SeriesStyles/PointStyles/PS_X.uasset' has been saved with empty engine version. The asset will be loaded but may be incompatible.

This is the .uplugin file after making the suggested changes:

{
    "FileVersion": 3,
    "Version": 8,
    "VersionName": "1.8",
    "FriendlyName": "Kantan Charts",
    "Description": "Simple UMG/Slate charts for debugging and basic UI.",
    "Category": "Kantan",
    "CreatedBy": "Kantan Dev",
    "CreatedByURL": "http://kantandev.com",
    "DocsURL": "https://kamrann.github.io/KantanCharts-Docs/",
    "MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/89bd18db011b4bd19606db2e31020f13",
    "SupportURL": "mailto:kantandev@gmail.com",
    "EngineVersion": "4.27.0",
    "CanContainContent": true,
    "Installed": true,
    "Modules": [
        {
            "Name": "KantanChartsDatasource",
            "Type": "Runtime",
            "LoadingPhase": "Default",
            "WhitelistPlatforms": [
                "Win64",
                "Win32",
                "Android",
                "Mac",
                "IOS",
                "Linux",
                "Hololens"
            ]
        },
        {
            "Name": "KantanChartsSlate",
            "Type": "Runtime",
            "LoadingPhase": "Default",
            "WhitelistPlatforms": [
                "Win64",
                "Win32",
                "Android",
                "Mac",
                "IOS",
                "Linux",
                "Hololens"
            ]
        },
        {
            "Name": "KantanChartsUMG",
            "Type": "Runtime",
            "LoadingPhase": "Default",
            "WhitelistPlatforms": [
                "Win64",
                "Win32",
                "Android",
                "Mac",
                "IOS",
                "Linux",
                "Hololens"
            ]
        },
        {
            "Name": "KantanChartsEditor",
            "Type": "EditorNoCommandlet",
            "LoadingPhase": "Default",
            "WhitelistPlatforms": [
                "Win64",
                "Mac",
                "Linux"
            ]
        }
    ]
}

I tried following the above method that you mentioned, but after adding "Hololens" to each of the WhitelistPlatforms(except KantanChartsEditor), I am getting the following error:

UATHelper: Packaging (HoloLens): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (HoloLens): Running: E:\UE_4.27\Engine\Binaries\DotNET\UnrealBuildTool.exe MRProject HoloLens Development -Project=E:\UnrealProjects\MRProject2024_Praful\MRProject.uproject  E:\UnrealProjects\MRProject2024_Praful\MRProject.uproject -NoUBTMakefiles  -remoteini="E:\UnrealProjects\MRProject2024_Praful" -Architecture=x64 -Manifest=E:\UnrealP
rojects\MRProject2024_Praful\Intermediate\Build\Manifest.xml -NoHotReload -log="\Unreal Engine\AutomationTool\Logs\E+UE_4.27\UBT-MRProject-HoloLens-Development.txt"
UATHelper: Packaging (HoloLens):   Using x64 architecture for deploying to HoloLens device
UATHelper: Packaging (HoloLens):   Building using Windows SDK version 10.0.18362.0 for HoloLens
UATHelper: Packaging (HoloLens):   ERROR: Missing precompiled manifest for 'KantanChartsDatasource'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in KantanChartsDatasource.build.cs to override.
PackagingResults: Error: Missing precompiled manifest for 'KantanChartsDatasource'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in KantanChartsDatasource.build.cs to override.
UATHelper: Packaging (HoloLens): Took 0.5966489s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (HoloLens): UnrealBuildTool failed. See the log for more details. (Unreal Engine\AutomationTool\Logs\E+UE_4.27\UBT-MRProject-HoloLens-Development.txt)
UATHelper: Packaging (HoloLens): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (HoloLens): BUILD FAILED
PackagingResults: Error: Unknown Error

Any help on how I can get it working would be grateful!