Commit Graph

725 Commits

Author SHA1 Message Date
Dmitriy Dyomin
3b8638f078 Fixed: UE-4603 Landscape layers in Elemental not rendering in game
#codereview sebastian.kowalczyk, Jaroslaw.Palczynski

Landscape module was initializing too late

[CL 2352609 by Dmitriy Dyomin in Main branch]
2014-11-07 09:48:16 -05:00
Daniel Lamb
c79198196b Made sure log directory is created even if we are not using log files as this is required for minidump output.
[CL 2352351 by Daniel Lamb in Main branch]
2014-11-07 09:46:18 -05:00
Jamie Dale
92c2ef7b70 Made a render thread font cache for Canvas to use
This addresses a crash when trying to draw text from the render thread.

The extra font cache is managed by FEngineFontServices, and its creation is delayed until it is first needed. In Canvas you now use FEngineFontServices (rather than FSlateApplication directly) which will automatically return the correct cache for the current thread.

#codereview Matt.Kuhlenschmidt

[CL 2350206 by Jamie Dale in Main branch]
2014-11-05 13:10:54 -05:00
Matt Kuhlenschmidt
bcfc2607d1 Fixed editor shutdown crash. Slate cannot be shut down after the UObject system!
[CL 2345035 by Matt Kuhlenschmidt in Main branch]
2014-10-30 12:29:17 -04:00
Jaroslaw Palczynski
2df4ab4b49 [UE-4798] AutostartupModules is not working properly
The auto-startup module list is now compiled to:
1. Exe if the target is a program.
2. Game module binary if the target is game, editor etc.

#codereview Robert.Manuszewski

[CL 2344885 by Jaroslaw Palczynski in Main branch]
2014-10-30 10:07:51 -04:00
Daniel Wright
887d53d184 Materials are no longer limited to 13 unique textures!
* This is achieved by using shared samplers on TextureSample nodes.  The property SamplerSource must be set to 'Shared: Wrap' or 'Shared: Clamp' to not consume a sampler slot.  Materials can use up to 128 unique textures with this setup.

[CL 2341439 by Daniel Wright in Main branch]
2014-10-27 15:18:06 -04:00
Martin Mittring
eabed21908 changed cvars Set() behavior: Each Set should specify a priority, order no longer matters if the priority is higher (solved a lot of corner cases), might need some iterations.
[CL 2341334 by Martin Mittring in Main branch]
2014-10-27 14:02:50 -04:00
Martin Mittring
df8f058625 added more transparency what set a console variable the last time (cvar name in the console shows it), allows to implement a order free override
[CL 2341188 by Martin Mittring in Main branch]
2014-10-27 13:08:58 -04:00
Mieszko Zielinski
3af68be1f1 Made EQS avaiable as experimental feature in the editor #UE4
- also fixed EQS editor crashing when adding or clicking on tests

[CL 2340426 by Mieszko Zielinski in Main branch]
2014-10-24 17:47:36 -04:00
Jaroslaw Palczynski
02fab6f6a5 Fix for cooking problems in VehicleGame (et al.).
Turnes out that Pre/PostWorldInitialization events are not fired every time after creation and cooking initialization is completely different than normal editor run. Added a new event called in UWorld constructors and registered Landscape event to it and added auto-startup module loading to the commandlet path.

[CL 2337078 by Jaroslaw Palczynski in Main branch]
2014-10-22 13:34:05 -04:00
Marc Audy
0d7fa6852a Move World teardown to GameEngine::PreExit instead of HandleExitCommand
Move SlateApplication shutdown after Engine and App PreExit

[CL 2335982 by Marc Audy in Main branch]
2014-10-21 13:39:30 -04:00
sebastian kowalczyk
352c7b97ff Changed GameplayDebugger to use AutoStartup functionality (bIsAutoStartupModule flag) #ue4
Moved AutoStartup initialization to FEngineLoop::Init() function (ELoadingPhase::PostEngineInit phase) - after talk with Jaroslaw Palczynski about it. #ue4

[CL 2334529 by sebastian kowalczyk in Main branch]
2014-10-20 09:58:24 -04:00
Jaroslaw Palczynski
7f6f4c9549 Couple of fixes for Landscape split out.
[CL 2332956 by Jaroslaw Palczynski in Main branch]
2014-10-17 09:02:40 -04:00
Jaroslaw Palczynski
1b50963ccd Landscape module from Engine split out.
[CL 2331341 by Jaroslaw Palczynski in Main branch]
2014-10-16 05:16:44 -04:00
Nick Atamas
b922662050 Guarding against crash if SlateApplication is not initialized.
[CL 2330433 by Nick Atamas in Main branch]
2014-10-15 13:53:01 -04:00
Nick Atamas
dd6d69e447 Added OnFinishedPointerInput(), which gets called after event processing and before GEngine->Tick(). SViewport and FSceneViewport now uses this function instead of ProcessInput() to accumulate high-precision mouse events.
Addresses TTP#349213 MouseX and MouseY are a frame behind all other input

#codereview Matt.Kuhlenschmidt,Peter.Knepley

[CL 2330315 by Nick Atamas in Main branch]
2014-10-15 12:12:25 -04:00
Thomas Sarkanen
d3dd77b60b Removed remaining flag blocking early Behavior Tree loading
Statically-initialized (ie. CDO) assets that attempted to load BTs coudl fail if the flag was still set to false in ini files.

[CL 2329921 by Thomas Sarkanen in Main branch]
2014-10-15 05:26:17 -04:00
Robert Manuszewski
55f4bd6581 Removed [URL] GameName=Name from ini as we no longer need it for anything else than fixing the game name case (passed from command line)
#change Removed GGameName usage from code and replaced it with FApp::*GameName API
#change Added FApp::SetGameName(), FApp::IsGameNameEmpty()
#change Added IFileManager::GetFilenameOnDisk to get the correct case of a filename on disk
#change Renamed GGameName to GInternalGameName

[CL 2328446 by Robert Manuszewski in Main branch]
2014-10-14 10:31:43 -04:00
sebastian kowalczyk
0ce08add27 New features and fixes for VIsual Logger.
- fixed crash in visual logger while using EnableAILoggind command line
- LogVisualizer flushes data from visual logger to be updated with all logs
- added visual log events
- first version of reports generated from visual log events as part LogVisualizer

[CL 2328392 by sebastian kowalczyk in Main branch]
2014-10-14 10:29:46 -04:00
Andrew Rodham
4ad1b987fc Improved progress reporting in the editor
FScopedSlowTask has been refactored to better allow for nesting of slow operations. This allows us to cascade nested scopes and provide accurate feedback on slow tasks. FScopedSlowTasks now work together when nested inside sub functions. Break up long functions that contain calls to multiple nested FScopedSlowTasks with FScopedSlowTask::EnterProgressFrame().

Example Usage:
void DoSlowWork()
{
    FScopedSlowTask Progress(2.f, LOCTEXT("DoingSlowWork", "Doing Slow Work..."));
    // Optionally make this show a dialog if not already shown
    Progress.MakeDialog();

    // Indicate that we are entering a frame representing 1 unit of work
    Progress.EnterProgressFrame(1.f);

    // DoFirstThing() can follow a similar pattern of creating a scope divided into frames. These contribute to their parent's progress frame proportionately.
    DoFirstThing();

    Progress.EnterProgressFrame(1.f);
    DoSecondThing();
}

This addresses TTP#338602 - NEEDS REVIEW: Editor progress bars nearly always just show 100%, don't offer useful indication of progress

[CL 2322391 by Andrew Rodham in Main branch]
2014-10-08 04:42:34 -04:00
Gil Gribb
c107c9fcd3 UE4 - turn on RHI thread by default for platforms that support it
[CL 2317540 by Gil Gribb in Main branch]
2014-10-02 13:30:36 -04:00
Matt Kuhlenschmidt
019f0bed7c - Fix movie player shutdown potentially unregistering a rendering tickable on the game theread
- Fixed movie player holding on to slate widgets when no movie is playing

[CL 2314779 by Matt Kuhlenschmidt in Main branch]
2014-09-30 15:44:12 -04:00
Josh Adams
15c95bb978 - Fixed the crash when failing to connect to a fileserver and ICU trying to localize the message, using data loaded from the server [ttp 345594]
[CL 2309075 by Josh Adams in Main branch]
2014-09-24 20:02:40 -04:00
Mark Satterthwaite
61ccbd05fe Call FPlatformMisc::LoadPreInitModules() before LoadModuleChecked("SlateRHIRenderer") so that on OS X you don't then end up trying to unload SlateRHIRenderer after OpenGLDrv has been shutdown which immediately crashes deleting any outstanding SlateRHI textures. This is the only obvious, sensible solution to TTP #346989.
#codereview michael.trepka, Robert.Manuszewski

[CL 2305404 by Mark Satterthwaite in Main branch]
2014-09-22 09:43:40 -04:00
Max Preussner
121fccd2ab Code and documentation cleanup pass
- removed dummy UClasses (no longer needed)
- removed file header comments (not used)
- removed duplicated function documentation in cpp files
- documentation cleanup, punctuation, spelling etc.
- pragma once include guards (now work on all platforms)
- relative public includes (are auto-discovered by UBT)
- fixed too many/too few line breaks
- deleted empty files
- missing override
- NULL to nullptr

[CL 2305058 by Max Preussner in Main branch]
2014-09-21 20:35:48 -04:00