15372 Commits

Author SHA1 Message Date
a bialokozowicz
8be6ec6511 Fix "Update Redirector References" process unable to fix up redirectors of assets used in level instances
#jira UE-217737
#rb JeanFrancois.Dube

[CL 37274448 by a bialokozowicz in 5.5 branch]
2024-10-18 13:26:36 -04:00
matt begoghina
f7700fa398 Return Android devices with Turnkey, and Editor Platforms menu update
The goal of this update is to have valid Android devices not showing with a Warning in the Platforms menu.

To allow this, the AndroidPlatformSDK now return the list of connected devices and their SDK Versions.
The change in TurnkeySupportModule ensures we are stripping the cook flavor from the DeviceId which would fail to verify the SDK.

Regarding the Editor `Platforms` menu, the code was adjusted to have devices listed outside of a submenu when `Platform->SupportsFeature(ETargetPlatformFeatures::ShowAsPlatformGroup)` returns false.
Another addition was a new `ETargetPlatformFeatures::ShowAggregateDevice` to allow platforms to not list the aggregate device (ex: `All_Android_on...`)

#review-36072549
#jira UE-223262
#rb adam.kinge, Chris.Babcock, Josh.Adams

[CL 37262963 by matt begoghina in 5.5 branch]
2024-10-18 09:28:09 -04:00
arciel rekman
98a871409b Fix HMD name in HMD analytics.
- Also add StaticLighting CVar to the list of parameters

#jira UE-223504
#rb Jeff.Fisher

[CL 37237848 by arciel rekman in 5.5 branch]
2024-10-17 18:03:56 -04:00
kenzo terelst
6bfa613964 - Use non uniform resource index for sampling bindless resources in raytracing shaders
- Re-enable bindless for raytracing

#jira UE-227550
#rb Krzysztof.Narkowicz

[CL 37167932 by kenzo terelst in 5.5 branch]
2024-10-16 05:42:42 -04:00
carl lloyd
906ea67138 Added missing entry for Metal 3.1 to GetMetalFamilyVersionString
#rb Mihnea.Balta
#jira UE-223695

[CL 37016311 by carl lloyd in 5.5 branch]
2024-10-10 08:16:49 -04:00
laura hermanns
71ec2b152b [UBA] Set MaxCores=500 by default in UbaHordeAgentManager.
If UbaController is not used this has no effect and only sets the maximum number of remote agent cores to 500 if this value is not specified externally.
It fixes an issue with parsing INI configurations from the commandline that contain multiple key-value pairs.

#jira UE-227128
#rnx
#rb jason.nadro

[CL 37015549 by laura hermanns in 5.5 branch]
2024-10-10 07:01:15 -04:00
Johan Berg
48085643bb Revert log level increment
#jira UE-225464
#rb trivial

[CL 36897825 by Johan Berg in 5.5 branch]
2024-10-07 09:39:36 -04:00
carl lloyd
fb258cffbc Fix for material exports attempting to write to depth textures when none are bound
#rb Jon.Cain
#jira UE-225347

[CL 36897477 by carl lloyd in 5.5 branch]
2024-10-07 09:26:38 -04:00
carl lloyd
b15fd4e953 - Fix for Mac failing to startup if TargettedRHI is missing from config, now displays error and falls back to SM5
- Changed MacTargetSettings so you cannot unselect all target platforms

#rb Zack.Neyland
#jira UE-226473

[CL 36870824 by carl lloyd in 5.5 branch]
2024-10-04 14:10:21 -04:00
Johan Berg
091793f53e Fix crashes in UnrealInsights cache files.
#jira UE-225464
#ushell-cherrypick of 36702657 by Johan.Berg
#rb ionut.matasaru
#lockdown mark.lintott

[CL 36859609 by Johan Berg in 5.5 branch]
2024-10-04 10:21:59 -04:00
kevin macaulayvacher
2576f229f2 Changes FAssetHeaderPatcherInner to leverage the CoreRedirect system for resolving FNames in a package header, and string paths when context about the string itself is well known (i.e. we know the string data is a stringified ObjectPath/PackagePath, or ObjectName are deducible). We still make use of string scanning replacement mechanism but those are now constrained to only patching strings content specifically (e.g. Tag data)
- Added FAssetHeaderPatcher::FContext for storing data on how to perform a patch (which redirects to follow, string -> string replacement map). Allows for an extensibility point for encapsulating special case patching so we don't need to  rely on string->string mappings exclusively
- Added `virtual FArchive& operator<<(FTopLevelAssetPath& Value)` to `FActorDescArchive` to allow for patching of FTopLevelAssetPath directly. Without this overload the FNames within a FTopLevelAssetPath would be patched one at a time losing all context about what the FNames are.
- Removed IAssetTools::GetAdditionalPatchCopyMappings, GetPatchCopyMappingsForRootRename, and PatchCopyPackageFile as these methods were internal and using the patcher directly should be preferred.
- Added some unit tests for the FAssetHeaderPatcherInner implementation works to codify the assumptions and expectations of the patcher implementation

Set use HeaderPatching as true by default for CopyProjectWithHeaderPatching. AdvancedCopy still disables header patching (to be enabled in a follow-up change)

#rnx
#rb Dave.Belanger
[FYI] Francis.Hurteau
#p4v-cherrypick 36706626, 36741243

[CL 36858806 by kevin macaulayvacher in 5.5 branch]
2024-10-04 09:42:40 -04:00
benoit gadreau
b1161f9352 Alternate Skin Weights fixes
- MeshAssetFunctions: updated ddc cache when adding a new profile (should be handled in CommitMeshDescription)
    - LODUtilities: corrected GenerateImportedSkinWeightProfileData, which did not correctly handle maximum bone influence + weight sorting (+ fixed similar position test)
    - SkinnedMeshComponent: added GSkinnedMeshSkinWeightProfileEarlyExit (false by default) to avoid exiting too early when defining a new profile stack
    - FSkeletalMeshAttributes: adding a new skin weight attribute now returns true if the attribute is already available

NOTE: things to keep in mind when generating rendering meshes from editable meshes (mainly for the future me)
    - influences may be clamped at 8/12 when converted for rendering, even if editable data can support any number (be sure to check rendering settings and the number of bones supported by the current platform)
    - as weights can be clamped, it's important that weights are sorted from highest to lowest
    - use FBoneWeights to ensure that weights are re-normalized if they are clamped

TODO:
    - test CommitMeshDescription to ensure that adding a new profile triggers a DDC invalidation
    - there is redundancy between MeshUtilities::GenerateSkeletalRenderMesh and LOD rendering mesh generation (which is a source of errors)
    - FLODUtilities::UpdateAlternateSkinWeights could benefit from a more robust projection algorithm (see FTransferBoneWeights)


#rb halfdan.ingvarsson
#rnx

[CL 36788984 by benoit gadreau in 5.5 branch]
2024-10-02 11:38:49 -04:00
Marc Audy
4cab3bc5d7 Fix lost deletes from CL# 35150803
#rnx
#jira

[CL 36772312 by Marc Audy in 5.5 branch]
2024-10-02 01:16:16 -04:00
kevin macaulayvacher
1a8ac06fbb [Backout] - CL36700789
[FYI] kevin.macaulayvacher
Original CL Desc
-----------------------------------------------------------------
Changes FAssetHeaderPatcherInner to leverage the CoreRedirect system for resolving FNames in a package header, and string paths when context about the string itself is well known (i.e. we know the string data is a stringified ObjectPath/PackagePath, or ObjectName are deducible). We still make use of string scanning replacement mechanism but those are now constrained to only patching strings content specifically (e.g. Tag data)

- Added FAssetHeaderPatcher::FContext for storing data on how to perform a patch (which redirects to follow, string -> string replacement map). Allows for an extensibility point for encapsulating special case patching so we don't need to  rely on string->string mappings exclusively
- Added `virtual FArchive& operator<<(FTopLevelAssetPath& Value)` to `FActorDescArchive` to allow for patching of FTopLevelAssetPath directly. Without this overload the FNames within a FTopLevelAssetPath would be patched one at a time losing all context about what the FNames are.
- Removed IAssetTools::GetAdditionalPatchCopyMappings, GetPatchCopyMappingsForRootRename, and PatchCopyPackageFile as these methods were internal and using the patcher directly should be preferred.
- Added some unit tests for the FAssetHeaderPatcherInner implementation works to codify the assumptions and expectations of the patcher implementation

New patching changes are left disabled by default

#rnx

#rb Dave.Belanger, JeanFrancois.Dube

[CL 36764539 by kevin macaulayvacher in 5.5 branch]
2024-10-01 20:43:42 -04:00
kevin macaulayvacher
73861a1e58 Changes FAssetHeaderPatcherInner to leverage the CoreRedirect system for resolving FNames in a package header, and string paths when context about the string itself is well known (i.e. we know the string data is a stringified ObjectPath/PackagePath, or ObjectName are deducible). We still make use of string scanning replacement mechanism but those are now constrained to only patching strings content specifically (e.g. Tag data)
- Added FAssetHeaderPatcher::FContext for storing data on how to perform a patch (which redirects to follow, string -> string replacement map). Allows for an extensibility point for encapsulating special case patching so we don't need to  rely on string->string mappings exclusively
- Added `virtual FArchive& operator<<(FTopLevelAssetPath& Value)` to `FActorDescArchive` to allow for patching of FTopLevelAssetPath directly. Without this overload the FNames within a FTopLevelAssetPath would be patched one at a time losing all context about what the FNames are.
- Removed IAssetTools::GetAdditionalPatchCopyMappings, GetPatchCopyMappingsForRootRename, and PatchCopyPackageFile as these methods were internal and using the patcher directly should be preferred.
- Added some unit tests for the FAssetHeaderPatcherInner implementation works to codify the assumptions and expectations of the patcher implementation

New patching changes are left disabled by default

#rnx

#rb Dave.Belanger, JeanFrancois.Dube

[CL 36764489 by kevin macaulayvacher in 5.5 branch]
2024-10-01 20:42:58 -04:00
dan engelbrecht
cb4a52a496 Allow zenserver to be installed using a "link" to the installed UE executables instead of copying to the %PROGRAMDATA% folder which may have restrictions preventing the zenserver executable from running.
Selecting "link" or "copy" is done automatically by checking if UE is running from an installed place or if it is a dev/p4 stream place, you can override this with the option -ZenAutoLaunchInstallMode.
The ZenAutoLaunchInstallMode defaults to "auto" where it tries to detect if it is an installed engine or not. "link" forces the use of a link file and "copy" forces the copy-install option which is the legacy behavior.

Additional fixes:
FMacSystemWideCriticalSection which could fail to aquire the critical section causing launch to fail  now uses flock in the same manner as FUnixSystemWideCriticalSection which resolves the issues
When checking if processes are running on Unix/Mac we now detect zombie processes properly

#jira UE-224517

#rb zack.neyland, Zousar.Shaker

[CL 36764363 by dan engelbrecht in 5.5 branch]
2024-10-01 20:41:28 -04:00
sebastian arleryd
d983fe5f49 Fix non-stretched widgets in toolbars
#jira UE-225817
#rb aditya.ravichandran

[CL 36764334 by sebastian arleryd in 5.5 branch]
2024-10-01 20:41:00 -04:00
joe kirchoff
0932329920 NaniteBuilder: Disable core.StackAddressEscape clang checker
#jira UE-213614
#rnx

[CL 36762945 by joe kirchoff in 5.5 branch]
2024-10-01 20:24:26 -04:00
charles lefebvre
47718bb848 Fix LiveCoding console not starting when activated through command line
#rnx
#rb Tim.Smith

[CL 36761985 by charles lefebvre in 5.5 branch]
2024-10-01 20:13:18 -04:00
sebastian arleryd
c4f799e613 Fix bug in ToolMenus where superfluous SSpacer widgets were added to toolbars after the last section
#jira UE-221719
#rb ross.smith

[CL 36761519 by sebastian arleryd in 5.5 branch]
2024-10-01 20:08:03 -04:00
paul chipchase
7532065020 Fix a potential shutdown crash in the uncontrolled changelist module.
#rb Patrick.Enfedaque
#jira UE-225282

- When FUncontrolledChangelistsModule::ShutdownModule is called we do try to ensure that the start up task has completed if it is still running but in very rare cases the job will not get time to run on worker threads until the engine exit path has already started to exit and things that it relies on, such as the asset registry have already shutdown. In these cases we can hit an assert.
- We now hook into the OnEnginePreExit delegate which is invoked before major engine systems start to shutdown.
- We also try to first cancel the job, in case it is still pending on the task system as that is the fastest way to stop it from running.
- If the job has already started we will have to wait for it to complete.
- Note that the job will try to early out once it detect that the engine is shutting down so the wait here should be relatively short.
- There is now no need to check that the start up task has finished during ::ShutdownModule so we now double check for future coding errors with an assert instead.

[CL 36760604 by paul chipchase in 5.5 branch]
2024-10-01 19:58:20 -04:00
catalin dragoiu
692b30e4e5 Hide close button for the Connection Tab in Unreal Insights Frontend.
Reset state of Trace Control Widget when session selection changes.

#rb ionut.matasaru
#jira UE-224497

[CL 36758685 by catalin dragoiu in 5.5 branch]
2024-10-01 19:41:23 -04:00
jeannoe morissette
498403d8d8 VulkanRHI: Add missing 3 component types.
#rb Mihnea.Balta
#jira UE-225212
#rnx

[CL 36758066 by jeannoe morissette in 5.5 branch]
2024-10-01 19:35:49 -04:00
dan elksnitis
55df76e600 [shaders] fix metal shader archive population, was still implementing a deprecated API
#rb Jason.Nadro

[CL 36757780 by dan elksnitis in 5.5 branch]
2024-10-01 19:32:51 -04:00
dan engelbrecht
b9f05c16a4 Add missing check if zenserver process is running when we time out waiting for it
Fixes problem with CL 36532666

#jira UE-224531

[CL 36757563 by dan engelbrecht in 5.5 branch]
2024-10-01 19:31:04 -04:00