NVIDIA GameWorks Integration

That offroad vehicle demo in the learn tab has the code for it.

I figured there would be a more efficient way, but i guess making line traces should work, I just wanted to use there existing traces. But Thanks guys.

Hello. I faced with problem that I canā€™t access to gameworks repository after linking GitHub and Epic accounts 1 week ago.

Hey guys,

Does anybody had problem with GameWorks builds?

crashing every time I am opening large projects like Character Interaction, or maps from Soul: City, Soul: Cave.

Showing message: Array index out of bounds

You sure is specific to the GW branch? Can you check if you get that same error on stock UE 4.21.2?

You have to be logged into that github account you linked to see the ue4 repos.

Thank you

Good question. I checked in UE 4.21.2 from the stock, and it seems okay. All three (Character Interaction, Soul City, Soul Cave) passed the load test.
Also I had non GW custom build of UE 4.21, it worked fine too.

Just in case Soul City and Soul Cave are available for free at Marketplace, so it will be easy to reproduce.

Can you give more specific repro instructions? Just to make sure, you are running on Windows, right? (Windows is requirement for GameWorks itself)

I just did fresh build for my 4.21-GameWorks and opened Soul: Cave with it. It worked fine in the editor without errors (I also opened all included maps with it just to make sure itā€™s not some specific level that triggers the error). It also worked fine when I packaged it with Shipping & 64-bit conf and ran the result in standalone so thereā€™s not much I can do from my end unless you can give more specific repro case Iā€™m afraid :confused:

edit: I originally opened Soul: Cave as a blueprint project. I now also tested Soul: City with c++ project as well but it works fine on my end too, all levels load up fine. Both tested on my 4.21.2 GameWorks branch.

Also, have you used the branch with or without WaveWorks? The branch Iā€™m testing with now doesnā€™t have WaveWorks.

Hmm, thatā€™s weird. I tested these in both with and without WaveWorks branches. I am running on Windows 10. GameWorks test projects are running just fine.

The steps as below:

  1. Create a new project
  2. In the EPIC launcher add Soul: Cave into project. Select version as 4.21
  3. In the new project open Soul: Cave map
  4. At point it will crash

works fine for me. Are you building on VS2017? VS2015 builds are super unstable on 4.20+ so if you use that, it could be one reason.

With 15.8 and before the 2017 is also producing bad code and the editor can random crash. So itā€™s better to use 15.9+ (update the vs) and clean build the solution.

I am building on VS2019. It builds pretty well, but I had to make a few changes:

  1. VCToolChain.cs got extra lines at line #463
    Arguments.Add(ā€œ/wd4800ā€);
    Arguments.Add(ā€œ/wd5038ā€);
  2. One of GameWorks files was complaining on std::string, so I had to add <string> into that file

Thank you for your help

Just in case. I had also custom non GameWorks build on VS2019, and the Soul: Cave was running just fine.
Currently Installing 2017, will see how it will react

To confirm 2017 build also has .

Then Iā€™m afraid itā€™s out of my hands. It works on my end without issues on both mentioned Soul samples and GW samples so I canā€™t repro . Are you sure you are now trying to build completely unmodified version of my repo? You later on said you had bunch of changes on top, your issues could be caused by them. And you use the current version on the github and not some earlier one?

Anyway since I canā€™t repro , best you can do it to debug the cause yourself - which you should do regardless as Iā€™m not officially giving any support for these, these are just made available for people who want to use them.

One way to get proper callstack for :

  • Make a empty UE4.21 c++ project with no starter content using the custom engine (or if you made it with Epic Launcher, after project creation, go to project folder, right click the uproject and use ā€œswitch engine versionā€ option to swap the project to target the custom engine build)
  • Add the content that breaks it for you using Epic Launcher, be it that Soul:Cave or Soul:City
  • Open the projects sln file with Visual Studio, make sure UE4 is the default project there (seen in bold on the hierarchy tab), if itā€™s not default, you can set it by right clicking the project and set it to default startup project there
  • Once solution open on VS and default set to UE4, just hit the green play button (or use menu to start the thing with debugger attached), will launch the UE4 editor with VS debugger attached. Also make sure youā€™ve havenā€™t changed the default build conf on project sln, it defaults to ā€œDevelopment Editorā€ which is the right choice usually.
  • If it crashes, it will throw you back into VS at the moment of crash and you can examine the callstack. The topmost item you see is probably the array.h one but thatā€™s just generic UE4 class that is not likely the cause of your, trace down the callstack and try to see what part of the code actually tries to use the array incorrectly.

@ Oh, just to verify, you are building the engine using the official UE4 build instructions and are using ā€œDevelopment Editorā€ as the build configuration? If you do full debug build for the whole engine, it will not likely work as Iā€™ve not tested recent gameworks on configuration + I think some user reported FleX etc had some issues on it (but that must have been on 4.20 as thereā€™s no 4.21 FleX). I should probably try and fix that myself, itā€™s sourced from nvidias code as they most likely didnā€™t test that case either. In general even testing engine side debug builds thoroughly would be a pain as editor itā€™s really slow to run on my computer.

Edit: Tested Soul:City also with Debug build, works fine.

Just to note , when I update or launch new branch for GameWorks these are the things I test it with:

  • I usually start with clean branch with no previously compiled binaries existing there (beyond what gets loaded by dependencies). I usually just do brute force by wiping everything from the root folder but .git and then do hard git reset for the branch, ensures thereā€™s never anything else on the folder than what new users would have when they try to build at the first time.
  • I verify that there are no additional warnings when the GenerateProjectFiles runs (some may sometimes slip through but I try to minimize them before pushing to github).
  • Then I run Setup and GenerateProjectFiles just like UE4 readme tells one to do
  • I open the generated solution using the recommended Visual Studio version by Epic, means the default VS that the solution is prepared for by GenerateProjectFiles script.
  • I wait for intellisense/VA to process it, usually need to swap UE4 as default startup project as I usually want to launch the editor immediately after successful build to get the shaders compiled.
  • I start building it using ā€œDevelopment Editorā€ build conf and by hitting that play button (which will launch the editor after successful build with debugger attached).
  • Once editor is fine, I open sample projects from the GameWorks tech Iā€™ve just merged, verify it works in the editor and usually on both Shipping and Development Windows 64-bit builds. If Iā€™m verifying an engine update instead of new GameWorks tech, I often verify that it didnā€™t break anything by opening random GW projects and building them, just to see there are no new issues on them.

What I donā€™t do:

  • I donā€™t test 32-bit game builds are theyā€™ve randomly failed for me even on stock UE4 + they are not really that widely used anymore.
  • I donā€™t test debug editor or any other than Development Editor builds for the actual editor code (but those game packaging tests do additionally test development and shipping build confs for the actual engine code).

The things I donā€™t test are mainly due to time constraints, and I already do quite extensive testing on the GW feats not breaking others. For example there was a crash in some older merge I fixed that only happened with combining these techs, there Nvidia Flow and VXGI just crashed the editor when feats were used on the same scene. and some other similar fixes are still on my latest GW merges.

Thank you . And no problem. I will do debugging in a week, and then will see what is broken

hi guys ,please help me in getting the horizon white color change,it does not change with daytime,like in the evening the sun warm color does not show on the water plane and even in night i have the white horizon .Can anyone know how to do the change PLease

I canā€™t remember how waveworks was setup for colors but the white border on your screenshot looks more like ue4ā€™s own fog. If itā€™s in the scene, try adjusting the color from it.