Page 1 of 1

Fix XNA.Framework.Media Crash without installing WMP

PostPosted: 29 Mar 2014 10:14
by peter_de123
FOR A FIX, see post #3 :)


Hello,

I just bought the game. When I start it, the screen goes black for a second, then I am back to the desktop. From the eventlog error message I read that it crashed while trying to play the Main menu Music?

Trying to start the game creates 5 Eventlog Entries which point to some audio issue. I can provide the Eventlogs as well as the WER Report Files by Mail if someone from RefractoredGames requires them.

Could this be related to the installation path of the game (which is not the default steam directory)?
*EDIT*: Just uninstalled and reinstalled to the default path. Same error, so it's not that.


Anwendung: UnclaimedWorld.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund eines Ausnahmefehlers beendet.
Ausnahmeinformationen: System.InvalidOperationException
Stapel:
bei Microsoft.Xna.Framework.Media.MediaQueue.Play(Microsoft.Xna.Framework.Media.Song)
bei UWGame.Client.Audio.AudioManager.PlaySong(Microsoft.Xna.Framework.Media.Song, Boolean)
bei GameStateManagement.MainMenuScreen.LoadContent()
bei UWGame.Control.Controller.LoadContent()
bei Microsoft.Xna.Framework.DrawableGameComponent.Initialize()
bei Microsoft.Xna.Framework.Game.Initialize()
bei GameStateManagement.UnclaimedWorld.Initialize()
bei Microsoft.Xna.Framework.Game.RunGame(Boolean)
bei GameStateManagement.Program.Main()

Re: Cannot start the game

PostPosted: 29 Mar 2014 10:27
by peter_de123
LOL. It seems the problem is that Windows Media Player is not installed on my computer.

I am definitely not going to install it. I dont't really see why I should be required to do so, please Devs, this cant be so much of an issue. Stardrive, for example, also uses XNA and is running fine (including sound).

Re: Cannot start the game

PostPosted: 29 Mar 2014 11:26
by peter_de123
Alright, I found a fix for this without having to install WMP. See below for a short guide. Still, this is annoying...


If you have a 64-Bit System, do the following:

1. Locate wmp.dll in C:\Windows. The files should be in a folder named something like "C:\Windows\winsxs\wow64_microsoft-windows-mediaplayer-core....."
2. Copy wmp.dll and wmploc.dll to C:\Windows\SysWOW64
3. Go to Start>Run and type regsvr32 c:\windows\syswow64\wmp.dll
4. A "Succeeded" message should appear.
5. Start the game.



For 32-Bit Systems, try this:

1. Locate wmp.dll in C:\Windows. The right files should be in a folder named something like "C:\Windows\winsxs\x86_microsoft-windows-mediaplayer-core......"
2. Copy wmp.dll and wmploc.dll to C:\Windows\system32
3. Go to Start>Run and type regsvr32 c:\windows\system32\wmp.dll
4. A "Succeeded" message should appear.
5. Start the game.


If the game still doesn't start, you might have picked the wrong wmp.dll , at least for 64-Bit there are multiple versions. Search your windows folder for wmp.dll again and see if there are other versions than the one I suggested. To uninstall the previously installed dll, go to Start>Run again and type "regsvr32 -u c:\windows\syswow64\wmp.dll" .

Re: Fix XNA.Framework.Media Crash without installing WMP

PostPosted: 04 Apr 2014 11:27
by BulMaster
Thanks for the tip, will give it a go when I get home.

Re: Fix XNA.Framework.Media Crash without installing WMP

PostPosted: 04 Apr 2014 17:43
by BulMaster
---------------------------
Fatal error 0.0.0.4
---------------------------
Whoops - fatal error. Press Ctrl-C to copy the contents of this dialog and paste the text into the forums:

An unexpected error has occurred.

at Microsoft.Xna.Framework.Media.VideoPlayer.Play(Video video)

at UWGame.Control.BackgroundScreen.Update(GameTime gameTime, Boolean otherScreenHasFocus, Boolean coveredByOtherScreen)

at UWGame.Control.Controller.Update(GameTime gameTime)
---------------------------
OK
---------------------------

No luck there :\

Re: Fix XNA.Framework.Media Crash without installing WMP

PostPosted: 07 Apr 2014 15:41
by kubluu
BulMaster wrote:---------------------------
Fatal error 0.0.0.4
---------------------------
Whoops - fatal error. Press Ctrl-C to copy the contents of this dialog and paste the text into the forums:

An unexpected error has occurred.

at Microsoft.Xna.Framework.Media.VideoPlayer.Play(Video video)

at UWGame.Control.BackgroundScreen.Update(GameTime gameTime, Boolean otherScreenHasFocus, Boolean coveredByOtherScreen)

at UWGame.Control.Controller.Update(GameTime gameTime)
---------------------------
OK
---------------------------

No luck there :\


The Steam forum has some other suggestions for fixes. If those don't work, then please send an email to support@unclaimedworld-game.com