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

    We’re currently having issues attempting to boot our Win10 title in offline mode.

    Is there any configuration we need to make to allow our title to run offline? Currently when we call SystemUI::ShowAccountPickerAsync() when offline, it throws a bunch of internal exceptions (inside Microsoft.Xbox.Services.dll) and warns of an incorrect parameter.

    Code:
    Exception thrown at 0x00007FFFD4199E08 (KernelBase.dll) in MyGame.exe: 0x40080201: WinRT originate error (parameters: 0x0000000080070057, 0x000000000000001D, 0x00000003DF74C520).
    Exception thrown at 0x00007FFFD4199E08 in MyGame.exe: Microsoft C++ exception: Platform::InvalidArgumentException ^ at memory location 0x00000003DF74CAF0. HRESULT:0x80070057 The parameter is incorrect.
    WinRT information: The parameter is incorrect.
    Our parameters into ShowAccountPickerAsync are the same in both online and offline mode, so I believe it’s failing internally.

    Comment


      [MENTION=5350]Jerry.Richards[/MENTION] - the question about what the recommendations are around accounts for testing in the Creators Program is not one I know the answer to. Sounds like a good one to take directly to the Creators Program folks.

      [MENTION=828801]Sparkash[/MENTION] - as you've discovered our current implementation doesn't really support offline Live sign-in on Win10. If you'd like to change that then you'll need to crack open the EraAdapter project. If you look at ShowAccountPickerAsync in SystemUI.cpp it relies on a successful call to GetUserProfileAsync in order to return a valid user. This is to ensure that it can populate the user's DisplayInfo member with data that is a reasonable match for Xbox One, but it's also where offline breaks down. If your project can do without some of the data in DisplayInfo then you could implement a return path that doesn't rely on the GetUserProfileAsync call succeeding.

      Comment


        [MENTION=494622]jsyarrow[/MENTION] - This link https://docs.microsoft.com/en-us/win...-test-accounts states that I can "create some":

        Click image for larger version

Name:	TestAccounts.jpg
Views:	1
Size:	97.6 KB
ID:	1132484

        The problem is I don't see how to "create some" without possibly purchasing more :|

        Comment


          Originally posted by Jerry.Richards View Post
          The problem is I don't see how to "create some" without possibly purchasing more :|
          There shouldn't be any need to purchase. A regular free MSA will have everything you need to test Creators Program features.

          Comment


            Originally posted by jsyarrow View Post
            There shouldn't be any need to purchase. A regular free MSA will have everything you need to test Creators Program features.
            If I understand correctly, I should create new accounts, and assign the accounts under Dev Center. Is that correct?
            What about gamertags? Will a default value be provided?

            UPDATE:
            When I try to add "Another User" on Windows 10, and log that user in, Windows reports that "the user profile failed the sign-in".

            Is there an easy fix for this?
            Last edited by Jerry.Richards; 08-15-2017, 05:26 PM.

            Comment


              Originally posted by Jerry.Richards View Post
              If I understand correctly, I should create new accounts, and assign the accounts under Dev Center. Is that correct?
              What about gamertags? Will a default value be provided?

              UPDATE:
              When I try to add "Another User" on Windows 10, and log that user in, Windows reports that "the user profile failed the sign-in".

              Is there an easy fix for this?
              I find that the best way to switch between dev accounts is to use the Xbox App on Windows. Open that up and sign out *inside* the app (but don't sign out of Windows). Next time you start an Xbox Live enabled app such as your game it will pop up the Xbox sign-in UI, and you can use one of your newly created test accounts. If the account doesn't already have a Gamertag it should get a generated one as part of this process.

              Comment


                Originally posted by jsyarrow View Post
                I find that the best way to switch between dev accounts is to use the Xbox App on Windows. Open that up and sign out *inside* the app (but don't sign out of Windows). Next time you start an Xbox Live enabled app such as your game it will pop up the Xbox sign-in UI, and you can use one of your newly created test accounts. If the account doesn't already have a Gamertag it should get a generated one as part of this process.
                This sounds great, and I almost have it working. What is Windows Hello (I'm looking now):

                Click image for larger version

Name:	WindowsHello.jpg
Views:	1
Size:	16.2 KB
ID:	1132490


                I got it. . .it's the PIN I use for my account.
                Last edited by Jerry.Richards; 08-15-2017, 06:38 PM.

                Comment


                  [MENTION=494622]jsyarrow[/MENTION] - Thank you for those instructions. It is a much easier work flow. Do the accounts have to be added to my desktop or can I omit that step?

                  Can I just set the account up and access it from the Sign-In screen?

                  EDIT:
                  Rather nice that I can complete the setup of a new account from the Sign-In screen. Correction. It is working now

                  Click image for larger version

Name:	TestAccount.jpg
Views:	1
Size:	53.2 KB
ID:	1132500


                  And I can see my Leaderboard with multiple players

                  Click image for larger version

Name:	HighScores.Short.jpg
Views:	1
Size:	93.3 KB
ID:	1132501
                  Attached Files
                  Last edited by Jerry.Richards; 08-15-2017, 11:07 PM.

                  Comment


                    Thanks [MENTION=494622]jsyarrow[/MENTION], we made some modifications to EraAdapter to deal with the offline situation.

                    Comment


                      Where are an installed game logs kept at?

                      It appears that the UWP application is installed in WindowsApps; Win64 logs and crash reports are stored in AppData\Local; but I can't find the UWP game logging files.

                      EDIT
                      For anyone else that may be interested: Device Portal File Explorer provides fairly easy access to the files for the installed application:
                      https://blogs.windows.com/buildingap...your-app-data/
                      Last edited by Jerry.Richards; 08-19-2017, 11:56 AM.

                      Comment


                        Hey

                        Question not directly related to UWP, but since here most people MS look I have question.

                        Did you guys tried to run unreal server on Windows Server Nano (preferable option) or Windows Server Core ?
                        I've been trying to set it up (and then later create container based on windows nano and unreal server). But to no avail. I just couldn't get it to run or to check what dependencies I might be missing.
                        https://github.com/iniside/ActionRPGGame - Action RPG Starter kit. Work in Progress. You can use it in whatever way you wish.

                        Comment


                          Hi, anyone encountered and resolved this error? Even i when copy all the required .xsd files from Windows SDK, it still fails on 'unrecognized argument'. Using Visual Studio 2017 Community (15.2).

                          UATHelper: Packaging (UWP (x64-64bit)): UnrealBuildTool: ERROR: System.IO.FileNotFoundException: Could not find file 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Xml\Schemas\UapManifestSchema.xsd'.
                          Proud member of iNFINITE Production - VR and hi-tech development studio (sometimes) available for hire.

                          Comment


                            I'm trying to build latest uwp branch and there is an error:

                            EXEC : error : System.ArgumentException: An item with the same key has already been added.
                            9> at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
                            9> at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
                            9> at UnrealBuildTool.UEBuildTarget.Build(BuildConfiguration BuildConfiguration, CPPHeaders Headers, List`1 OutputItems, List`1 UObjectModules, ActionGraph ActionGraph) in C:\Data\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 2403
                            9> at UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile) in C:\Data\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\UnrealBuildTool\System\UnrealBuildTool.cs:line 1396
                            9>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.

                            Comment


                              Hi there,
                              I try to compile the mixedreality branch but I'm stuck on the first step because the Setup.bat script tries to download a file with a name with more than 260 characters.
                              Despite this error, I tried to run GenerateProjectFiles.bat but errors here too. The namespace Metadata doesn't exists.

                              This is a screenshot of all errors
















                              Is anyone was able to compile this branch? Or maybe can someone send me a link to a working build?

                              Thanks!

                              Comment


                                Looks like microsoft is giving devs more resources for Xbox development

                                https://blogs.windows.com/buildingap...JHGHpHowfVt.97

                                Comment

                                Working...
                                X