Commit Graph

3162 Commits

Author SHA1 Message Date
Devin Doucette
01274b17c8 Logging: Added a dedicated master thread for logging
#preflight 622fb0eca709bd110fea0da5
#rb Zousar.Shaker

[CL 19387540 by Devin Doucette in ue5-main branch]
2022-03-15 12:31:55 -04:00
paul chipchase
1f90b5c58b Allow stand alone programs to opt into full FPackagePath functionality even if the program is not compiling with the editor.
#rb Matt.Peters
#rnx
#preflight 622b69320a614dcb0cf998d3

- This is useful for stand alone programs that want to compile with core and coreuobject but don't want to compile against the editor/engine.
- To make use of this the program should add 'GlobalDefinitions.Add("UE_SUPPORT_FULL_PACKAGEPATH=1")' to it's Target.cs .
- If the program does not define UE_SUPPORT_FULL_PACKAGEPATH then it will default to WITH_EDITOR which was the pre-existing behavior.

[CL 19370946 by paul chipchase in ue5-main branch]
2022-03-14 03:39:21 -04:00
andrew scheidecker
533e2944b4 Add a FDynamicallyTypedValue class that stores a value as some uninterpreted memory and a pointer to some runtime type information that contains methods to interpret the memory.
The garbage collector gains opcodes to mark references inside these values, though a FProperty to emit those opcodes is not part of this changelist.
#rb Robert.Manuszewski, Steve.Robb
#preflight 622b3d98cd605bd993bb58e1

#ROBOMERGE-AUTHOR: andrew.scheidecker
#ROBOMERGE-SOURCE: CL 19353106 via CL 19354089 via CL 19355248 via CL 19357433 via CL 19357654
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19359137 by andrew scheidecker in ue5-main branch]
2022-03-11 14:30:17 -05:00
Robert Manuszewski
fba442df5a Fixed a condition that checks if 'obj refs -history=' value is correct
#jira none
#rb trivial
#preflight none

[CL 19354957 by Robert Manuszewski in ue5-main branch]
2022-03-11 10:23:06 -05:00
Robert Manuszewski
dec28ffca1 Fixing obj refs -history=1 not looking in GC history
#rb trivial
#jira none
#preflight none

[CL 19353464 by Robert Manuszewski in ue5-main branch]
2022-03-11 09:00:59 -05:00
steve robb
0e1e8c13fb Removal of unused CopyFormatted*() and *_TextOnly() functions.
#rb graeme.thornton
#preflight 6229fae77341dd1ecf70f0a0

#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 19335163 via CL 19339363 via CL 19345711 via CL 19350978 via CL 19351029
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19351730 by steve robb in ue5-main branch]
2022-03-11 04:01:36 -05:00
marc audy
51b9541255 Moving IsRoutingPostLoad to a tighter scope to prevent crashes when loading packages with non-native objects
#rb trivial
#preflight none


#ushell-cherrypick of 19339131 by robert.manuszewski

#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 19317027 via CL 19345332 via CL 19350794 via CL 19350872
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19351728 by marc audy in ue5-main branch]
2022-03-11 04:01:16 -05:00
jamie dale
00f04864c0 Added FCoreUObjectDelegates::OnObjectPostCDOCompiled
This is similar to UObject::OnPostCDOCompiled, but doesn't require that you implement the logic on a particular class.

#jira
#preflight 6227b758c653e7ef9f572d0b
#rb Rex.Hill

#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 19319787 via CL 19319840 via CL 19320685 via CL 19323486 via CL 19323658
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19348039 by jamie dale in ue5-main branch]
2022-03-10 21:51:02 -05:00
danny couture
de7b184e48 Add class and object name on check that reports abstract class instanciation failures so we can know more about where this is coming from
#rnx
#rb Matt.Peters
#preflight 622759b0695c94f981a123d1

#ROBOMERGE-OWNER: danny.couture
#ROBOMERGE-AUTHOR: danny.couture
#ROBOMERGE-SOURCE: CL 19319145 via CL 19320240 via CL 19321182 via CL 19321247
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19348011 by danny couture in ue5-main branch]
2022-03-10 21:49:50 -05:00
justin marcus
8df3a69f3d Fix missing closing paren in log message
#rb trivial

#ROBOMERGE-AUTHOR: justin.marcus
#ROBOMERGE-SOURCE: CL 19309128 via CL 19309138 via CL 19312263 via CL 19315592 via CL 19315668
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19347728 by justin marcus in ue5-main branch]
2022-03-10 21:37:10 -05:00
steve robb
deebf593a2 Fix for mixing SUBOBJECT_DELIMITER_CHAR with non-TCHARs - when used in a ternary in particular, it caused the result to become promoted to an integer.
#rb martin.ridgers
#preflight 6225fe2d825c6abb99fa5d1c

#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 19284148 via CL 19295463 via CL 19304889 via CL 19305094
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19347125 by steve robb in ue5-main branch]
2022-03-10 21:02:28 -05:00
pj kack
0988dfc4fb AsyncLoading2: Fix crash in seamless server travel.
When reloading an existing UPackage make sure to always set all serialized package flags again since they may have been cleared since the last load.
One example is UWorld::FinishDestroy that may clear PKG_ContainsMap on its world UPackage.

#jira UE-135502
#rb carlmagnus.nordin,per.larsson
#rnx
#preflight 62275410e83598518f2a720f

#ROBOMERGE-AUTHOR: pj.kack
#ROBOMERGE-SOURCE: CL 19302798 in //UE5/Release-5.0/... via CL 19303924
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19346856 by pj kack in ue5-main branch]
2022-03-10 20:49:12 -05:00
robert manuszewski
1074c5e48c Added a few utility functions to help with using property setters and getters with properties representing containers (Arrays / Sets / Maps) or structs
#preflight 6221fb52b066ef60bba404a3
#rb Steve.Robb

#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 19264826 via CL 19266236 via CL 19271583 via CL 19278279 via CL 19293645
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19344991 by robert manuszewski in ue5-main branch]
2022-03-10 19:36:10 -05:00
Zousar Shaker
b23efc3a7b Reduce overhead from high frequency redundant access tracking caused by resolving the same TObjectPtr repeatedly. Saves 3 minutes from large project full cook.
#rb matt.peters
#jira UE-144430
#preflight 622843e68138f020c641085e
#ushell-cherrypick of 19283269 by Zousar.Shaker

[CL 19322440 by Zousar Shaker in ue5-main branch]
2022-03-09 12:44:16 -05:00
Matt Peters
6b69c8a5d9 #jira UE-144941
Make the cooked AssetRegistry.bin deterministic.
#rb Johan.Torp
#rnx
#preflight 6228b03acc09078bab52ecbb

[CL 19319417 by Matt Peters in ue5-main branch]
2022-03-09 09:03:55 -05:00
Marc Audy
ccd2d95215 Nested subobjects that have overriden properties in a blueprint now be initialized correctly from their archetype, not the native default values
#jira UE-139048

Nested subobjects that are part of Objects created from a template will now correctly initialize their properties from the supplied template
#jira UE-138949

#rb Phillip.Kavan, Ben.Hoffman
#preflight 622661ff9d201d1ecdf2845c
#preflight 6227afc27077eb04cf74a929

[CL 19308998 by Marc Audy in ue5-main branch]
2022-03-08 14:52:11 -05:00
mark lintott
e6fc5fe952 Static Analysis Fixes
#rb trivial
#jira UE-144624
#preflight 62223924c33b6ba25d0bb1d6

[CL 19266980 by mark lintott in ue5-main branch]
2022-03-04 11:11:37 -05:00
Ryan Gerleve
d23e502ddd Fix replicated references to class default objects.
They're considered stably named for networking again, so they can be referred to by path. This had changed as unintended fallout of CL 18803336 updating UObjectBaseUtility::IsDefaultSubobject.

#jira UE-143225
#rb marc.audy, brian.bekich
#preflight 6221794dbf662715a8d933c0

[CL 19260867 by Ryan Gerleve in ue5-main branch]
2022-03-03 21:42:23 -05:00
steve robb
288f3de432 Fixes for the implicit conversion of ints and chars to TCHARs in UTF-8 mode.
#rb trivial
#preflight 621ed0b4e15c51d8c5e5d081

#ROBOMERGE-OWNER: steve.robb
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 19219816 via CL 19220283 via CL 19220288 via CL 19223679
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19227684 by steve robb in ue5-main branch]
2022-03-02 15:30:50 -05:00
andrew rodham
355efbd7ef Fix for mismatched weakptr serialization between FJsonArchiveOutputFormatter and FJsonArchiveInputFormatter.
#rb Steve.Robb
#preflight 621da3fdca28c556340cc56d

#ROBOMERGE-AUTHOR: andrew.rodham
#ROBOMERGE-SOURCE: CL 19203318 via CL 19207261 via CL 19213316 via CL 19213622 via CL 19213693
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19225224 by andrew rodham in ue5-main branch]
2022-03-02 13:57:41 -05:00
dave jones2
17a79b862c UE-141802 - Set Editor Property fails with float and object argument types
Editor properties go through the PropertyAccessUtil interface to change property values. However, they don't support potential float<->double conversions that might occur. This has become more prevalent since Blueprint floats default to double precision.

We can fix this by simply adding explicit float<->double conversions to PropertyAccessUtil. Unfortunately, lossiness will potentially occur since there's a narrowing conversion, but we're already expecting some of that when interfacing with native float properties.

#jira UE-141802
#preflight 621e6f2ae15c51d8c5d69905
#rb jamie.dale
#lockdown julien.marchand


#ROBOMERGE-AUTHOR: dave.jones2
#ROBOMERGE-SOURCE: CL 19211200 via CL 19211319 via CL 19211986 via CL 19212055 via CL 19212198
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19224257 by dave jones2 in ue5-main branch]
2022-03-02 13:16:29 -05:00
jamie dale
88f34e3e51 Fixed FSoftObjectPath::GetLongPackageName returning an empty string when set to a package name
If a FSoftObjectPath was set to a package name (eg, "/Game/MyPackage") then GetLongPackageName would return an empty string which is inconsistent with GetLongPackageFName.

This change makes the behavior of GetLongPackageName and GetLongPackageFName consistent (returning the package name if there's no object in the path), and also removes a temporary FString allocation from GetLongPackageName and GetAssetName.

#jira
#preflight 62193b8a1d1c5017994bd387
#rb Matt.Peters

#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 19178061 via CL 19183781 via CL 19185359 via CL 19185753 via CL 19200259
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19213115 by jamie dale in ue5-main branch]
2022-03-01 20:03:15 -05:00
robert seiver
40129f69bf Make a check for corrupted tags in an asset platform generic (instead of just on Windows)
#review-19203606 Brandon.Schaefer, Matt.Peters, Danny.Couture
#jira UE-144272
#preflight 621e74cdad75a7f58fca9634

[CL 19204978 by robert seiver in ue5-main branch]
2022-03-01 15:26:40 -05:00
Matt Peters
bb59284a90 Downgrade SavePackage messages that the package did not save because it was editor-only from display to verbose. They cause a lot of spam on projects using WorldPartition (or OneFilePerActor packages) because OneFilePerActor packages are editor-only.
#rb JeanFrancois.Dube
#rnx
#preflight 621e52763e14f0c7e5470839

[CL 19200611 by Matt Peters in ue5-main branch]
2022-03-01 12:13:18 -05:00
Matt Peters
63955f5f1f Optimize FCoreRedirects::GetMatchingRedirects since it is showing up as a moderately high cost in cooks (38s out of 870s in CitySample).
#rb Stefan.Boberg
#rnx
#preflight 621e42cbca28c556342bd1d9

[CL 19199624 by Matt Peters in ue5-main branch]
2022-03-01 11:28:32 -05:00