Commit Graph

96 Commits

Author SHA1 Message Date
Ben Cosh
b89d6bc0e0 This adds an editor setting in the general project settings under blueprints to allow users can define the script maximum loop iterations
#TTP 340083 - +UE4: K2: Add editor exposed configuration of script max loop iterations count
#Branch UE4
#Proj Engine, CoreUObject

#Change added base engine config value MaximumLoopIterationCount defaulted to the same value as RUNAWAY_LIMIT in scriptcore.cpp
#Change added UEngine::MaximumLoopIterationCount UProperty to receive and store the config value
#Change replaced RUNAWAY_LIMIT define in sciptcore.cpp with GMaximumScriptLoopIterations and switched checks to use this variable
#Change added FBlueprintCoreDelegates::SetScriptMaximumLoopIterations as a feeder function to set GMaximumScriptLoopIterations in the CoreUObjectModule.
#Change Added call to update GMaximumScriptLoopIterations in UEngine::Init and UEditorEngine::PlayInEditor to forward any user changes at key points.

#codereview Chris.Wood, Mike.Beach

[CL 2246761 by Ben Cosh in Main branch]
2014-08-07 05:10:46 -04:00
Maciej Mroz
57da7673ae BP: passing parameters by ref optimization - part 1 - native code (similar change should be done for VM calling).
The reference should always be retrieved from MostRecentPropertyAddress. There is no need to copy the parameter.

#codereview Michael.Noland, Nick.Whiting, Robert.Manuszewski

[CL 2244148 by Maciej Mroz in Main branch]
2014-08-05 06:54:03 -04:00
Maciej Mroz
e9ab408c41 Break redundant recursive loading.
ttp341943 LIVE: BUILD: Class Array breaks shipping build

#codereview Robert.Manuszewski, Nick.Whiting

[CL 2238279 by Maciej Mroz in Main branch]
2014-07-31 09:49:01 -04:00
Robert Manuszewski
1b12d8aa39 Refactoring CoreUObject initialization to make LaunchEngineLoop not depend directly on CoreUObject module code.
#change Moved static class initalization to CoreUObject module (StartupModule)
#change Re-ordered PreInit initialization
#change Fixed a crash (when using dashes from Outlook) and duplicated code in commandline initialization

[CL 2238173 by Robert Manuszewski in Main branch]
2014-07-31 07:38:19 -04:00
Mikolaj Sieluzycki
b121d9efac Add missing #if guard.
[CL 2235708 by Mikolaj Sieluzycki in Main branch]
2014-07-29 08:04:19 -04:00
Mikolaj Sieluzycki
38aa5d6971 Add missing macro around FReferenceChainLink::GetReferencedByName
[CL 2235685 by Mikolaj Sieluzycki in Main branch]
2014-07-29 07:14:41 -04:00
Robert Manuszewski
1a892433de CIS Fixes for UnrealFrontend linker errors + initialization order fix
[CL 2235668 by Robert Manuszewski in Main branch]
2014-07-29 06:34:45 -04:00
Mikolaj Sieluzycki
e6a91a7fea Fix missing property names in obj refs output.
TTP #341661 CORE: 'Obj refs' output is sometimes missing property names.
#codereview Robert.Manuszewski

[CL 2235667 by Mikolaj Sieluzycki in Main branch]
2014-07-29 06:34:33 -04:00
Robert Manuszewski
26f250c9a2 Hot-reload: support for structural changes for hot-reload (adding/removing properties/classes/structs/enums)
#change Classes will now be defer registered instead of being created during static initialization
#change Added class re-instancing after hot-reload
#change Changes to UHT to keep track of generated code changes
#change Refactored a few CoreUObject delegates to a common namespace struct.

[CL 2235479 by Robert Manuszewski in Main branch]
2014-07-29 02:43:48 -04:00
Maciej Mroz
7d7ee986b5 Structs, that are not POD, are copied (by default) using native copy constructor.
BP:  Passing a struct by val leads to unexpected results ttp341538

#codereview Robert.Manuszewski

[CL 2234258 by Maciej Mroz in Main branch]
2014-07-28 05:28:31 -04:00
Robert Manuszewski
c79e6827e0 LinkerLoad: only skip CreateExport when actually following a redirector (and only in non-cooked builds)
#ttp 341935: MAIN: CRASH: Clients crash when loading into a zone

[CL 2232207 by Robert Manuszewski in Main branch]
2014-07-25 17:45:44 -04:00
Jaroslaw Palczynski
cfcda1df30 CORE: In-editor fixup redirects not working with string asset ref
TTP# 341126

[CL 2230254 by Jaroslaw Palczynski in Main branch]
2014-07-24 13:25:23 -04:00
Marc Audy
f03974d941 Document metadata tags
[CL 2229074 by Marc Audy in Main branch]
2014-07-23 17:36:55 -04:00
Wes Hunt
0c5bbb7b93 Remove DLLEXPORT specification from a few templates that could cause failure if inlining expansion is turned off.
[CL 2228861 by Wes Hunt in Main branch]
2014-07-23 14:56:19 -04:00
Robert Manuszewski
f0a48eb095 Helper functions for TMaps and TSets in FReferenceCollector
[CL 2228355 by Robert Manuszewski in Main branch]
2014-07-23 08:26:24 -04:00
Jaroslaw Palczynski
b30666376e StringClassReference needs to work with cooking and redirects
TTP# 338203

Refactored StringClassReference to be a subclass of StringAssetReference.

[CL 2226863 by Jaroslaw Palczynski in Main branch]
2014-07-22 08:14:39 -04:00
Nick Darnell
d6ac4ce60c General - UFunction::GetReturnProperty is now const (always was, just adding the keyword so it's callable in a const context).
[CL 2223641 by Nick Darnell in Main branch]
2014-07-18 14:20:26 -04:00
Nick Whiting
25b17bb457 #ue4 Fix for all functions in BPs marked as Exec. Added overrides for normal exec gating for KE / CE events, and removed the flagging
[CL 2221415 by Nick Whiting in Main branch]
2014-07-16 18:05:35 -04:00
Dmitriy Dyomin
b619a572da Optional bUseFullTimeLimit for AsyncLoading, controlled by UEngine::bAsyncLoadingUseFullTimeLimit config variable (default is true)
#code_review Ben.Zeigler, Robert.Manuszewski

[CL 2220300 by Dmitriy Dyomin in Main branch]
2014-07-16 01:49:04 -04:00
Mike Beach
875305a99d Adding a more robust system for editor category mapping (allows for easy remapping and localization). Pulling editor metadata specifics out of UClass (and relocating them).
#codereview Robert.Manuszewski Nick.Whiting

[CL 2192177 by Mike Beach in Main branch]
2014-07-11 15:13:57 -04:00
John Pollard
fcba7dbe08 Check package guid when loading network packages + derive bPackage status implicitly
[CL 2187729 by John Pollard in Main branch]
2014-07-10 13:30:31 -04:00
Robert Manuszewski
9b74a78e1b AActor::OwnedComponents will no longer be exposed as UPROPERTY.
#change made OwnedComponents native, referenced through AActor::AddReferencedObjects
#change Added FReferenceCollectorAddReferencedObject overload that accepts TArrays

#codereview Marc.Audy

[CL 2181730 by Robert Manuszewski in Main branch]
2014-07-09 13:28:01 -04:00
John Pollard
882085d414 Remove unused network package loading code
[CL 2176572 by John Pollard in Main branch]
2014-07-08 18:23:20 -04:00
John Pollard
6b34964e28 Detect and remove broken network guids
[CL 2171342 by John Pollard in Main branch]
2014-07-07 19:00:09 -04:00
Robert Manuszewski
41d1e2ccb7 ScriptPlugin: Script Generated Blueprint classes.
#ue4
#change Exposed the entire UFunction outside of CoreUObject
#change Script stack frame will now track currently executed native UFunctions
#change Added a few more lua types (FLinearColor etc)
#change Removed ScriptAsset
#change Added ScriptBlueprint and ScriptGeneratedBlueprintClass
#change Added ScriptActor. Both ScriptActor and ScriptComponent now serve the purpose of base classes for script generated classes
#change ScriptGeneratedBlueprint classes have properties and functions exported from script

[CL 2128742 by Robert Manuszewski in Main branch]
2014-07-03 03:22:03 -04:00