ue 4.27 packagin error, I did not have before.

Hi to all here.
I just did some polishing to my game in Ue 4.27.2 and tried to package it for windows. Now i have an early packaging error that I did not have before.
Only thing I new I changed, is working and packaging with ue 5.6. and installing a new Visual Studio Community Version and updating windows 10 to the latest.

In the log it told me it tried to package with visual stuido 2022, so i manually reinstalled visual studio 2019 for this. The reminders are gone now, but the problem still occurs.

Here is the last part of the log:

ATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(219): warning C4996: ‘TCastImpl<From,To,ECastType::UObjectToUObject>::DoCast’: Cast<>() and CastChecked<>() should not be used with FProperties. Use CastField<>() or CastFieldChecked<>() instead. Please update your code
to the new API before upgrading to the next release, otherwise your project will no longer compile.
UATHelper: Packaging (Windows (64-bit)): with
UATHelper: Packaging (Windows (64-bit)): [
UATHelper: Packaging (Windows (64-bit)): From=FProperty,
UATHelper: Packaging (Windows (64-bit)): To=FArrayProperty
UATHelper: Packaging (Windows (64-bit)): ]
UATHelper: Packaging (Windows (64-bit)): C:\Users\stuck\Documents\Unreal Projects\opaks_milestone_07\Plugins\VictoryPlugin27\Source\VictoryBPLibrary\Public\VictoryBPFunctionLibrary.h(1731): note: Siehe Verweis auf die gerade kompilierte Instanziierung “To *Cast<FArrayProperty,FProperty>(From *)” der Funktions-Vorlage.
UATHelper: Packaging (Windows (64-bit)): with
UATHelper: Packaging (Windows (64-bit)): [
UATHelper: Packaging (Windows (64-bit)): To=FArrayProperty,
UATHelper: Packaging (Windows (64-bit)): From=FProperty
UATHelper: Packaging (Windows (64-bit)): ]
UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(219): warning C4996: ‘TCastImpl<From,To,ECastType::UObjectToUObject>::DoCast’: Cast<>() and CastChecked<>() should not be used with FProperties. Use CastField<>() or CastFieldChecked<>() instead. Please update your code
to the new API before upgrading to the next release, otherwise your project will no longer compile.
UATHelper: Packaging (Windows (64-bit)): with
UATHelper: Packaging (Windows (64-bit)): [
UATHelper: Packaging (Windows (64-bit)): From=FProperty,
UATHelper: Packaging (Windows (64-bit)): To=const FNumericProperty
UATHelper: Packaging (Windows (64-bit)): ]
UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(318): note: Siehe Verweis auf die gerade kompilierte Instanziierung “To *Cast<T,U>(From *)” der Funktions-Vorlage.
UATHelper: Packaging (Windows (64-bit)): with
UATHelper: Packaging (Windows (64-bit)): [
UATHelper: Packaging (Windows (64-bit)): To=const FNumericProperty,
UATHelper: Packaging (Windows (64-bit)): T=const FNumericProperty,
UATHelper: Packaging (Windows (64-bit)): U=FProperty,
UATHelper: Packaging (Windows (64-bit)): From=FProperty
UATHelper: Packaging (Windows (64-bit)): ]
UATHelper: Packaging (Windows (64-bit)): C:/Users/stuck/Documents/Unreal Projects/opaks_milestone_07/Plugins/VictoryPlugin27/Source/VictoryBPLibrary/Private/VictoryBPFunctionLibrary.cpp(5360): note: Siehe Verweis auf die gerade kompilierte Instanziierung “T *Cast<const FNumericProperty,FProperty>(const U *)” der Funktions-Vorlage.
UATHelper: Packaging (Windows (64-bit)): with
UATHelper: Packaging (Windows (64-bit)): [
UATHelper: Packaging (Windows (64-bit)): T=const FNumericProperty,
UATHelper: Packaging (Windows (64-bit)): U=FProperty
UATHelper: Packaging (Windows (64-bit)): ]
UATHelper: Packaging (Windows (64-bit)): Took 39,2712404s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool failed. See log for more details. (C:\Users\stuck\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\UBT-opaks-Win64-Development_2.txt)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error
LogSlate: Only BGRA pngs, bmps or icos are supported in by External Image Picker
LogSlate: Window ‘Project Settings’ being destroyed
LogSlate: Window ‘Project Settings’ being destroyed

Can anybody help me with this ?
I am an absolute noob in visualstudio related issues …
kind regards
Ingo

Sorry to post here again, but this is really an important issue for me. The betatests of the game should have begun already, only i cant get the game packaged for testing …

Would really need help here !
kind regards

Ingo

Hey there @stucki! It looks like there’s an issue with a module. Specifically here, there’s some code that’s using the incorrect cast type for your version. This one explains itself for the most part. These seem to stem from either a version of Rami’s Victory Plugin that’s a version too far forward for your project.

You might be able to glean more information from the UBT logs here:

(C:\Users\stuck\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\UBT-opaks-Win64-Development_2.txt)

SupportiveEntity, thx very much for the hint. As I am a noob in such things, what am i supposed to do now ?
Contact the developer of the plugin ?
And how did that happen ? I am not aware, I installed a newer version of the plugin at all.
And a few weeks before the package ran without a problem…

kind regards-

Ingo

So just to verify, there were no updates to the victory plugin, your project engine version, or your Visual Studio version or modules?

First back up your project, then delete the Saved, DerivedDataCache, Builds and Intermediate folders in your project folder.

Test to see if the error changes.

Another test would be to verify you can build a (fresh) default project, once that works, then see if it can be built with the same version of the Victory plugin.

there has been an update to visdual studio. Unreal engine told me that. So i reinstalled the old version of visualstudio and unreal engine no longer tells me that it wants to compile with an older version.
There also has been an windows 10 update ( the last :wink: )
In my point of view there has been no update of the victory plugin itself.
I already contacted rama the author of the plugin, but no answer yet.

I will try the blank project. thx for the idea !!
kind regards

The blank project with the victory plugin packaged without any problems.

I did try the delete the unnecessary folders a week ago. Didnt change a thing …
So I am really clueless, which is really bad, as my betatesters are waiting to test :wink:

So if any other clue. I would be very thankful

but there is another thing i noticed when starting levels in the editor.
i have this error

LogStats: FPlatformStackWalk::StackWalkAndDump - 0.018 s
LogOutputDevice: Error: === Handled ensure: ===
LogOutputDevice: Error: Ensure condition failed: VTRequestPageStatus_HasData(RequestResult.Status) [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/Texture2D.cpp] [Line: 997]
LogOutputDevice: Error: Stack:
LogOutputDevice: Error: [Callstack] 0x00007ffe154730c9 UE4Editor-Engine.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffe14b31b00 UE4Editor-Engine.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffe14b30f53 UE4Editor-Engine.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffe758be35b UE4Editor-RenderCore.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffe758f7db4 UE4Editor-RenderCore.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffe759028f9 UE4Editor-RenderCore.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffe60de2398 UE4Editor-Core.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffe60de27ce UE4Editor-Core.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffe75889c67 UE4Editor-RenderCore.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffe75892f34 UE4Editor-RenderCore.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffe6137ff0b UE4Editor-Core.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffe61377050 UE4Editor-Core.dll!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffed06d7374 KERNEL32.DLL!UnknownFunction
LogOutputDevice: Error: [Callstack] 0x00007ffed0d5cc91 ntdll.dll!UnknownFunction
LogStats: SubmitErrorReport - 0.000 s
LogStats: SendNewReport - 1.031 s
LogStats: FDebug::EnsureFailed - 1.049 s

Does this make sence to anybody of you ?