This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hi everyone!

I've been trying to export one of my games to UWP using Godot 2.2 but with no success.
I followed the docs strictly, and everything went fine and I was able to export the final .appx from Godot.

But afterwards, it doesn't seem to be recognized as a valid file (yes, I have sideloading enabled)
error when opening .appx file

So I went the other route and tried to run it directly via the VS project. set up everything according to the instructions, but when I run the project, I only see a green X window.X windows

I took a peak at a "terminal" that appeared to have been launched by the Godot executable and saw thisgodot output

VS just complains that something is broken but doesnt give useful info :/enter image description here

I hope I didnt mess anything up since the docs are still based on WinRT and not UWP. My only doubt was on editing the EntryPoint in the xml file, I'm not sure if I inserted the right name...

Any tips on how to proceed?

in Engine by (290 points)

2 Answers

+1 vote

It's a long time since I've touched my demo project. To make things worse, I can't open my VS2015. Anyways, this is my EntryPoint config:

  <Applications>
    <Application Id="App" Executable="godot.winrt.32.exe" EntryPoint="GodotWinRT.App">
      <uap:VisualElements DisplayName="Godot2" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Godot2" BackgroundColor="transparent">
        <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" />
        <uap:SplashScreen Image="Assets\SplashScreen.png" />
      </uap:VisualElements>
    </Application>
  </Applications>
by (132 points)
+1 vote

After some tests, I think I know the cause why your exported project was not recognized as a valid package: the deflate method of the export template zip file.

Debugging the export process, I noticed there was an error when opening the zip file (don't know if it's a Minizip problem or if it's on Godot side), so the AppxManifest.xmlwas empty in the final package. The export template was made with 7zip, which uses Deflate64 method as default. Changing it to Deflate solved the problem for me.

The VS error message is still a mystery to me.

by (800 points)

Still wont work for me.
Here's my 7zip screen when I'm creating the template archive
enter image description here

and here are the contents of the appx exported by Godot: appx Contents

It's strange, the AppManifest its not even there! I noticed this in the Godot consoleenter image description here

Strange. What are the contents of your template? Does it have the AppxManifest.xml file?

It seems to me that the game files and the package files are mixed. Those errors hint that you have XML files inside your game project, and they shouldn't be there.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.