Announcement

Collapse
No announcement yet.

Unreal Engine 4 is available for Win10 UWP app dev now

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    So because I found a lot of posts from people asking how to build uwp games, here is a short guide:


    check this link: https://docs.unrealengine.com/latest...alStudioSetup/

    1. Download Visual Studio
    2. Open Visual Studio Installer
    3. Modify your Visual Studio installation and add all needed components

    (You get most components when you simply add the following workloads:
    -Universal Windows Platform development
    -Desktop development with C++
    -Game development with C++
    Check individual components and make sure that VC++ toolset, C++ Support, .Net Framework targeting pack & Windows SDK's are selected!)

    4. Install Visual Studio

    check this link: https://docs.unrealengine.com/latest...gUnrealEngine/

    5. Download/clone the uwp unreal engine version you need from github
    (links and instructions in first post: https://forums.unrealengine.com/deve...-now#post90679)
    6. Unzip and run Setup.bat
    7. Run GenerateProjectFiles.bat
    (If you need to build any plugins from source, you can copy them now to \Engine\Plugins)
    8. Open UE4.sln with Visual Studio
    9. Right Click on UE4 and build
    (optional: Go to \Engine\Binaries\Win64 and run UnrealVersionSelector-Win64-Shipping.exe)

    Now you can start Unreal Engine by running UE4Editor.exe located in \Engine\Binaries\Win64



    errors i know so far:

    -warning MSB3245: Could not resolve this reference. Could not locate the assembly "Windows"
    -error CS0246: The type or namespace name 'Windows' could not be found


    try this: https://forums.unrealengine.com/deve...unreal-release


    -missing toolchain or toolset

    try this: install correct vc toolset or reinstall


    -Errors everywhere

    Try this: open visual studio installer and repair your installation. If this doesn't work, you should try to uninstall everything and reinstall again.
    you can also try this tool: https://github.com/Microsoft/VisualS...aller/releases

    Also try to install visual studio and all components to your c: drive. Splitting the Installation between hard drives can cause problems.

    If you can't read the errors of setup.bat and GenerateProjectFiles.bat because the windows close too fast, then try to run them via command prompt.

    Last edited by OmniMachina; 01-21-2018, 04:35 AM.

    Comment


      After unzipping and running Setup.bat. When I run GenerateProjectFiles.bat I get the following Warning:

      WARNING: Unable to resolve location for WinMD api contract Windows.Gaming.XboxLive.StorageApiContract

      Any ideas?

      Comment


        Originally posted by fkrstevski View Post
        After unzipping and running Setup.bat. When I run GenerateProjectFiles.bat I get the following Warning:

        WARNING: Unable to resolve location for WinMD api contract Windows.Gaming.XboxLive.StorageApiContract

        Any ideas?
        I'm not sure.. But i guess something went wrong with your setup.bat or visual studio installation..

        I would try to unzip a fresh uwp release and run setup.bat again
        Last edited by OmniMachina; 01-21-2018, 02:13 AM.

        Comment


          The GitHub repository has a docs folder https://github.com/MICROSOFT-XBOX-AT...edReality/docs
          Read UnrealEngineWithWindowsMixedReality.docx for detailed instructions on how to build. Just be sure your Visual Studio installer has
          Universal Windows Platform development
          and
          Desktop development with C++ installed. The build takes a couple of hours and uses 53GB disk space.

          Comment


            Right now there are two branches
            release_uwp - UE4 version 4.18.x, requires Steam VR, no template, less functional
            dev_MixedReality - UE4 version 4.16.2 - VR preview directly in Mixed Reality portal (very nice), does not require Steam VR, includes Mixed Reality template, supports speech input in template.

            Packaging not working for either version at the moment.

            ** Important - at the moment, to get VR preview working from the editor, make sure Windows Mixed Reality for Steam is uninstalled.

            I'm developing with a Samsung Odyssey

            Comment


              Originally posted by fkrstevski View Post
              After unzipping and running Setup.bat. When I run GenerateProjectFiles.bat I get the following Warning:

              WARNING: Unable to resolve location for WinMD api contract Windows.Gaming.XboxLive.StorageApiContract

              Any ideas?
              This was a bug - if you have the Windows 8(.1) SDK installed the project generator could try to use that to set up Intellisense, rather than the proper Windows 10 version. It shouldn't have been affecting actual compilation. Regardless, it ought to be fixed in the latest push.

              Comment


                Originally posted by jsyarrow View Post

                This was a bug - if you have the Windows 8(.1) SDK installed the project generator could try to use that to set up Intellisense, rather than the proper Windows 10 version. It shouldn't have been affecting actual compilation. Regardless, it ought to be fixed in the latest push.
                Thanks!

                Any ideas why we have to apply this fix:

                https://forums.unrealengine.com/deve...unreal-release

                when getting the following issues:
                -warning MSB3245: Could not resolve this reference. Could not locate the assembly "Windows"
                -error CS0246: The type or namespace name 'Windows' could not be found

                while running GenerateProjectFiles.bat

                Is there any side effects of changing <TargetPlatformVersion>8.0</TargetPlatformVersion> to 8.1?
                im getting this error when run GenerateProjectFiles.bat building the project files: Setting up Unreal Engine 4 project files... C:\Program Files

                Comment


                  I've been having trouble getting the UWP fork to generate project files and compile the engine for the last few months, but in the last few days I have finally got it up and running. Here's solution which has worked from me on both my work and home machines.

                  I'd have no issue until running the GenerateProjectFiles.bat then I would get the following issues:
                  1)Could not locate the assembly "Windows"
                  2)The type or namespace name 'Windows' could not be found
                  3)Cannot locate the windows SDK folder.


                  Here how I have finally got it compiling:

                  1) Download the latest version of Visual Studio Community, you will need to install the following workloads from the installer:
                  Universal Windows Platform Development,
                  Desktop Development with C++,
                  Game Development with C++
                  and Mobile Development with C++ (The Mobile Development with C++ might not be necessary but I'm covering all of the bases).

                  You will also require the following individual components:
                  Visual C++ runtime for UWP,
                  .NET Framework 4.5.2 targeting package,
                  .NET Framework 4.7.1 SDK,
                  .NET Framework targeting package,
                  Windows 8.1 SDK
                  and .NET Core runtime.


                  2) Run the Setup.bat file from the UWP_UNREAL folder, this should install any further missing files such as the XBOX Live extension SDK (annoyingly it won't install any missing .NET framework packages).
                  2.1) Running the GenerateProjectFiles.bat files now was where I encountered issues.

                  [Edit]
                  3) Check the following directory: C:\Program Files (x86)\Windows Kits\10\UnionMetadata, there should be a file here called Windows.winmd. If there isn't open the folder '10.0.16299.0' (there should be folder here with some series of numbers, this will be the version of the windows 10 SDK that you currently have installed), there should be the Windows.winmd file here, copy it and paste it into the C:\Program Files (x86)\Windows Kits\10\UnionMetadata folder.

                  The C:\Program Files (x86)\Windows Kits\10\UnionMetadata directory is where the UnrealBuildTool.csproj file will look to find the Windows.winmd file if it can't find it elsewhere. This should solve the 1) and 2) errors at the top of this reply.
                  [Edit]


                  4) In the UnrealBuildTool.csproj file the line: <TargetPlatformVersion>8.0</TargetPlatformVersion> needs replaced with: <TargetPlatformVersion>8.1</TargetPlatformVersion> (it should be line 239)


                  5) Run the GenerateProjectFiles.bat file from the CMD admin privileges (run as admin) with the command -2017
                  Your command line should look like this: [UWP_UNREAL_FOLDER]>GenerateProjectFiles.bat -2017 (Don't forget the change the directory of the command line to the your UWP_UNREAL folder, if you don't know how to do that check out this page: https://www.digitalcitizen.life/comm...basic-commands)

                  This should allowed me to generate the project files, and open the .sln project file in visual studio (run as ADMIN) and compile the engine.


                  6) If the errors from the GenerateProjectFiles.bat file persist (particularly that the windows SDK folder cannot be found) then the SDK location in the registry maybe incorrect (as it was on my work computer, but not my home machine oddly enough).

                  I cannot stress strongly enough that if you are not familiar with the registry editor that you should not mess with it and that you should ignore this step.

                  Look for the registry folders here: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows, there should be a v10.0 and a v8.1 folder. In each for them check the InstallationFolder Key, their values should be C:\Program Files (x86)\Windows Kits\10 and C:\Program Files (x86)\Windows Kits\8.1 respectively.

                  After fixing any issues here run step five again.


                  I hope this helps.
                  Last edited by Jules86; 02-06-2018, 04:57 PM. Reason: A note to run visual studio as ADMIN.

                  Comment


                    60fps on Xbox One

                    https://www.youtube.com/watch?v=TNR00Kt5QFU

                    Comment


                      Originally posted by som3on3 View Post
                      Character doesn't cast any shadows though..

                      Comment


                        Originally posted by motorsep View Post

                        Character doesn't cast any shadows though..
                        Dynamic shadows from directional light cost 30fps
                        tho, if you choose static lighting and bake everything you are able to achieve 60 fps

                        Comment


                          Originally posted by som3on3 View Post

                          Dynamic shadows from directional light cost 30fps
                          tho, if you choose static lighting and bake everything you are able to achieve 60 fps
                          What about modulated shadows or/and capsule shadows ?


                          Btw, https://www.epicgames.com/fortnite/e...development-v4

                          Says "Later this month we plan to add an optional 60 FPS mode for Battle Royale on consoles (PS4, PS4 Pro, Xbox One, Xbox One X). This 60 FPS mode is tuned for each console to maximize frame rate while minimizing loss of visual quality. " and I am sure Fortnite has characters casting shadows.
                          Last edited by motorsep; 02-10-2018, 02:56 PM.

                          Comment


                            Originally posted by som3on3 View Post
                            Have you switched the deployed project to a Game type? Or is it an App type?
                            By default it launches it as an App type, which has worse performance. If its a Game type, how did you manage to change it to that? Every time I change it to Game type from the Dev Home, the project crashes on launch.

                            Comment


                              Originally posted by motorsep View Post

                              What about modulated shadows or/and capsule shadows?.
                              Haven’t tested more option, was more a test to see how much you need to cut to get 60fps (in my opinion no game should run under 60fps).
                              Will do more testing today and post results.

                              Comment


                                No success, best result is 40 fps with static lighting and capsule shadows.
                                Seems UWP is a big joke (at least for development).
                                or a published game have better performance?

                                Anyone with id@xbox can provide information on how many fps they get with the default SideScroller map (no changes/tweaks) on a Xbox One 1st Generation?

                                Comment

                                Working...
                                X