SDL2 Problems Using MS "Desktop Bridge" APPX Conversion Tool?

Hi,

Trying to build Windows 10 Store APPX file of my SDL2 game using Microsoft Desktop Bridge conversion tool.
Conversion is successful as far as I can see and I can install the APPX version onto Win 10.
Problem is when the game is run it opens for 1 second and then closes?

Looking at the conversion log, everything passes except the following:


FLOW:Validate App Integrity
Service Rule Result
PEChecker PE Files must contain valid signature Failure
Mitigation click here for mitigation details
Found problem in PEFile libtiff-5.dll
Found problem in PEFile libwebp-4.dll
Found problem in PEFile libjpeg-9.dll
Found problem in PEFile SDL2_image.dll
Found problem in PEFile libpng16-16.dll
Found problem in PEFile libvorbisfile-3.dll
Found problem in PEFile libvorbis-0.dll
Found problem in PEFile SDL2_mixer.dll
Found problem in PEFile libFLAC-8.dll
Found problem in PEFile smpeg2.dll
Found problem in PEFile libogg-0.dll
Found problem in PEFile libmodplug-1.dll
Found problem in PEFile SDL2_net.dll
Found problem in PEFile zlib1.dll
Found problem in PEFile libfreetype-6.dll
Found problem in PEFile SDL2_ttf.dll
Found problem in PEFile SDL2.dll
Found problem in PEFile LettersFall5Game.exe


The game folder I am using can be downloaded at below URL link as a compressed ZIP file:
http://16bitsoft.com/wp-content/uploads/LettersFall5Game.zip

Game uses the following:

  • SDL2
  • SDL2_Image
  • SDL2_Mixer
  • SDL2_TTF

It’s either a problem with the DLL’s or the game’s resources are not being found in sub directory /data.
/data - has folders: “audio”, “dictionary”, “fonts”, & “visuals”.

Anyone know how to fix this?
Thanks!

JeZxLee
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com

Hi,

A Microsoft representative told me the game is writing to the “/data” folder?
I don’t understand why this is occurring - folder just has visuals, audio, fonts, and dictionary.
A Windows 10 Store app/game will fail if anything is written to the executable’s folder.
Any help would be appreciated, you can download the game below:
http://16bitsoft.com/downloads/LettersFall5Win10.zip

JeZxLee

Are you using https://wiki.libsdl.org/SDL_GetPrefPath ?

Hi,

I finally got it working!
I needed “SDL_GetBasePath();” in front of all the resource file paths.
Everything seems ok now, should be uploading to Windows 10 Store by end of weekend, thanks!

JeZxLee