Commit Graph

4031 Commits

Author SHA1 Message Date
michael nicolella
cd56533446 Adding a thread_local global FFrame* tracking pointer that mimics the ScriptStack in the FBlueprintContextTracker, but remains enabled when DO_BLUEPRINT_GUARD=0
#rb Phillip.Kavan
#preflight 6279dc5b5b16ddee36e88d21

#ROBOMERGE-AUTHOR: michael.nicolella
#ROBOMERGE-SOURCE: CL 20118901 via CL 20120619 via CL 20120654 via CL 20120674
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20121921 by michael nicolella in ue5-main branch]
2022-05-10 09:04:27 -04:00
Matt Peters
d5bea590f1 SavePackage: Fix argument error in log statement - filename is a TCHAR* rather than an FString.
#rb None, trivial
#rnx
#preflight 627972faa35fb5cb3f583c35

[CL 20110424 by Matt Peters in ue5-main branch]
2022-05-09 16:20:20 -04:00
Matt Peters
8c3b950c08 Saving External Objects and AssetRegistry dependencies: mark objects in external packages as used-in-game (not editor-only), so that their imports are marked as used-in-game, and are followed when looking for manage references.
#rb Francis.Hurteau
#rnx
#preflight 62796acd242446ce6c6568f4

[CL 20109801 by Matt Peters in ue5-main branch]
2022-05-09 15:52:12 -04:00
patrick enfedaque
52390aeef1 UPackage::FindAssetInPackage: Prioritize Valid Assets over deleted ones if multiple are found in same package
This fixes replaced actors being considered as the package asset when replacement actor is the better choice. (AActor::PreSaveRoot was being called on wrong actor)

#jira UE-151254
#rb francis.hurteau, jeanfrancois.dube
#preflight 627927af822bdc69f00e3150

#ROBOMERGE-AUTHOR: patrick.enfedaque
#ROBOMERGE-SOURCE: CL 20104013 via CL 20104027 via CL 20104064
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20109729 by patrick enfedaque in ue5-main branch]
2022-05-09 15:47:30 -04:00
robert millar
ef35ae6934 Fix non-unity error in correct file this time.
#rb none

#ROBOMERGE-AUTHOR: robert.millar
#ROBOMERGE-SOURCE: CL 20087400 via CL 20087407 via CL 20087409 via CL 20087411
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20108401 by robert millar in ue5-main branch]
2022-05-09 15:07:33 -04:00
robomerge
0183811784 Fix non-unity error.
#rb none

#ROBOMERGE-AUTHOR: robert.millar
#ROBOMERGE-SOURCE: CL 20086616 via CL 20086621 via CL 20086637 via CL 20086644
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20108337 by robomerge in ue5-main branch]
2022-05-09 15:05:39 -04:00
robert millar
8f7639f498 Add simple command-line options for enabling and disabling pending kill.
#rb none

#ROBOMERGE-AUTHOR: robert.millar
#ROBOMERGE-SOURCE: CL 20085586 via CL 20086176 via CL 20086262 via CL 20086331
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20108320 by robert millar in ue5-main branch]
2022-05-09 15:05:15 -04:00
robert millar
ef3f3a4ef0 Always include referencing property info in HandleGarbageReference since it's guarded by a cvar anyway.
Allow ENABLE_GC_OBJECT_CHECKS to be overriden outside of GarbageCollection.h

#rb none

#ROBOMERGE-AUTHOR: robert.millar
#ROBOMERGE-SOURCE: CL 20085499 via CL 20086136 via CL 20086228 via CL 20086317
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20108298 by robert millar in ue5-main branch]
2022-05-09 15:04:33 -04:00
john barrett
0524c1ec01 Added checks for unsupported nested NetDeltaSerialize structs.
#JIRA UE-131493
#rb Jon.Nabozny, Peter.Engstrom

#ROBOMERGE-AUTHOR: john.barrett
#ROBOMERGE-SOURCE: CL 20078729 via CL 20078740 via CL 20079098 via CL 20079430
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20106407 by john barrett in ue5-main branch]
2022-05-09 13:54:21 -04:00
louisphilippe seguin
521fda3d2d NetConditionGroup feature
* Added new ELifetimeCondition COND_NetGroup, that is only supported on replicated subobjects.
* Any subobject using COND_NetGroup must be part of a netcondition group via the NetConditionGroupManager world subsystem for it to get replicated.
* PlayerControllers can be members of a group via IncludeInNetConditionGroup
* When a netgroup subobject replicates to a connection we will only replicate it if the playercontroller of the connection is a member of atleast one group of that subobject.
* NetGroupOwner and NetGroupReplay are special groups that automatically replicate to the owner's connection or the replay net driver.
* This feature is only available to Actors or Actorcomponents with bReplicateUsingRegisteredSubObjectList = true

#jira UE-132891
#rb Ryan.Gerleve, Mattias.Hornlund, John.Barrett

#ROBOMERGE-AUTHOR: louisphilippe.seguin
#ROBOMERGE-SOURCE: CL 20076279 via CL 20076546 via CL 20076844
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20106219 by louisphilippe seguin in ue5-main branch]
2022-05-09 13:48:08 -04:00
paul chipchase
0a84c135ad Fix a crash when trying to load a package trailer (backwards) from an archive that is smaller than the package footer size
#rb trivial
#rnx
#preflight 6274dcab732d07cf93f5a143

- This is most likely to occur when trying to load a package trailer from a corrupted 0 byte file.
- Currently we load the footer then check that the package tag exists to confirm that the package file is malformed
- We need to check that there is actually room for us to seek backwards to the potential start point of the footer otherwise FArchive code will assert on a negative seek position.

[CL 20073384 by paul chipchase in ue5-main branch]
2022-05-06 04:37:38 -04:00
David Harvey
910086f603 add missing include
#rb trivial
#jira none
#rnx
#preflight 6274db228d32cd80d8d43998

[CL 20073359 by David Harvey in ue5-main branch]
2022-05-06 04:29:17 -04:00
paul chipchase
6cef6bb3c3 Add a utility to load a package trailer directly from an archive
#rb trivial
#rnx
#preflight 6273dd6a5c29fb7661e98c60

[CL 20057584 by paul chipchase in ue5-main branch]
2022-05-05 10:34:32 -04:00
pj kack
70b097884c GC: Fix incorrect assert in GCObjectReferencer (fallout from 19898875).
Assertion failed: GObjUnhashUnreachableIsInProgress || GObjIncrementalPurgeIsInProgress || !IsGarbageCollecting() [File:.\Runtime/CoreUObject/Private/Misc/GCObjectReferencer.cpp]
With the new default lock behavior it should be allowed to add and remove references outside of the reachability analysis scope.
With the legacy lock behavior checking IsGarbageCollectingAndLockingUObjectHashTables() means the same thing as IsGarbageCollecting().
When the legacy lock behavior is deleted this check can be simplified to check(!IsGarbageCollectingAndLockingUObjectHashTables()).

#jira UE-150654
#rb francis.hurteau, danny.couture, robert.millar
#rnx

#ROBOMERGE-OWNER: pj.kack
#ROBOMERGE-AUTHOR: pj.kack
#ROBOMERGE-COMMAND: _robomerge[bot4] UE5-MAIN
#ROBOMERGE-SOURCE: CL 20038707 via CL 20038717 via CL 20038721 via CL 20038724 via CL 20038728
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20038836 by pj kack in ue5-main branch]
2022-05-04 04:20:42 -04:00
nick darnell
06aed28a93 Engine - Adding support for Double Range types, as well as reading doubles in metadata.
[REVIEW] [at]Matt.Kuhlenschmidt

#ROBOMERGE-AUTHOR: nick.darnell
#ROBOMERGE-SOURCE: CL 20029842 via CL 20029853 via CL 20029859
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20035025 by nick darnell in ue5-main branch]
2022-05-03 19:47:22 -04:00
paul chipchase
404eebde89 Add a utility to load a package trailer directly from a file using a string based file path rather than FPackagePath
#rb trivial
#rnx
#preflight 627145185e6ce673f443b981

- This can be used to load a trailer from a package file that is not stored in a mount point (and so would fail if FPackagePath is used)

[CL 20026913 by paul chipchase in ue5-main branch]
2022-05-03 11:54:19 -04:00
carlmagnus nordin
8f068bfd3c LinkerLoad: Fixed issue with imported package linkers sometimes being incomplete and unusable for packages that are loaded using LoadPackageAsync and timing out during their async loading tick.
#preflight 626fdac9ad00dced62beb914
#rb francis.hurteau

#ROBOMERGE-AUTHOR: carlmagnus.nordin
#ROBOMERGE-SOURCE: CL 20023702 via CL 20024191 via CL 20024198 via CL 20024204
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20024840 by carlmagnus nordin in ue5-main branch]
2022-05-03 09:59:07 -04:00
paul chipchase
f5d208077f Update editor bulkdata unit tests to work with CL 19850627
#rb Matt.Peters
#jira UE-150878
#rnx
#preflight 627104295e6ce673f4356059

[CL 20024571 by paul chipchase in ue5-main branch]
2022-05-03 09:38:17 -04:00
graeme thornton
3877878414 Fix a missing Adapter.Close() when serializing a multicast delegate property. Wouldn't have any affect unless writing to a text archive
[FYI] andrew.rodham, steve.robb
#preflight 62710f645e6ce673f437526e

#ROBOMERGE-AUTHOR: graeme.thornton
#ROBOMERGE-SOURCE: CL 20023687 via CL 20023690 via CL 20023697 via CL 20023701
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20024236 by graeme thornton in ue5-main branch]
2022-05-03 09:14:45 -04:00
Matt Peters
7ad238a806 AssetRegistry includes (Engine/Source): change #include "AssetData.h" -> #include "AssetRegistry/AssetData.h", and similar for the other moved AssetRegistry headers.
#rb Zousar.Shaker
#rnx
#preflight 6270509a220f89f0ad573030

[CL 20016982 by Matt Peters in ue5-main branch]
2022-05-02 18:06:48 -04:00
Matt Peters
8d0a30a7a9 Cooker: Add PKG_CookGenerated to mark packages that are generated during the cook and do not exist in the workspace domain.
#jira UE-150443
#rb Francis.Hurteau
#rnx
#preflight 6270344a91629533ec24e83e

[CL 20014384 by Matt Peters in ue5-main branch]
2022-05-02 16:01:27 -04:00
Matt Peters
cafc7ab8d9 Delete SavePackage1. It has been replaced by SavePackage2 and is no longer supported.
#preflight 626fd27dad00dced62bd9c52

[CL 20007527 by Matt Peters in ue5-main branch]
2022-05-02 09:04:05 -04:00
michael nicolella
7839536cf5 added EBlueprintExceptionType::AbortException, when raised it sets a flag on the FFrame to signal that script execution should stop and return ASAP. It is currently only checked in the interpreter loop inside ProcessLocalScriptFunction.
- FBlueprintContextTracker::GetScriptStack is deprecated
- FBlueprintContextTracker::GetCurrentScriptStack() now returns a TArrayView so that the view of the stack remains const
- FBlueprintContextTracker::GetCurrentScriptStackWritable() added for uses that explicitly need writable access to the stack
- FBlueprintCoreDelegates::ThrowScriptException now needs a non-const FFrame to be able to set the abort flag

#rb matt.breindel julien.marchand phil.pizlo phillip.kavan
#preflight 626c710d2c01a675267ebcab

#ROBOMERGE-AUTHOR: michael.nicolella
#ROBOMERGE-SOURCE: CL 19992064 via CL 19992251 via CL 19992502 via CL 19992685
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19995787 by michael nicolella in ue5-main branch]
2022-04-30 13:03:18 -04:00
Marc Audy
f2cecd15c8 Fix typo and failure to copy paste something while doing last minute name tweak
#rnx
#lockdown JeanFrancois.Dube
#preflight

[CL 19988680 by Marc Audy in ue5-main branch]
2022-04-29 20:22:41 -04:00
Marc Audy
d9c630dcd8 Add IsInheritedInstance to exports
#rb Phillip.Kavan
Add missing generate public hash entries to ArchiveStackTrace
#fyi Francis.Hurteau
#preflight 626c692cb046e6ecc338080e
#lockdown JeanFrancois.Dube

[CL 19988606 by Marc Audy in ue5-main branch]
2022-04-29 20:15:15 -04:00