Star Trek Fan Games
http://bote2.square7.ch/forum/

I have an error
http://bote2.square7.ch/forum/viewtopic.php?f=12&t=2175
Page 1 of 1

Author:  Amasov [ 30 Dec 2007, 03:29 ]
Post subject:  I have an error

Hello,

I seem to be having a problem with Supremacy. When I load the game and it reaches the options menu screen the game crashes, I've installed the .NET Framework 3.5 Redistributable and the latest version of Supremacy but I'm stumped. I have the error report here, any help would be appreciated:

ContentType string is not valid. Expected format is type/subtype.


Server stack trace:
at MS.Internal.ContentType.ParseTypeAndSubType(String typeAndSubType)
at MS.Internal.ContentType..ctor(String contentType)
at MS.Internal.MimeTypeMapper.GetMimeTypeFromUrlMon(Uri uriSource)
at MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(Uri uriSource)
at MS.Internal.AppModel.ContentFilePart.GetContentTypeCore()
at System.IO.Packaging.PackagePart.get_ContentType()
at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
at System.IO.Packaging.PackWebResponse.GetResponseStream()
at MS.Internal.WpfWebRequestHelper.CreateRequestAndGetResponseStream(Uri uri)
at System.Windows.Controls.SoundPlayerAction.LoadStreamAsync(Uri uri)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at System.Windows.Controls.SoundPlayerAction.LoadStreamCaller.EndInvoke(IAsyncResult result)
at System.Windows.Controls.SoundPlayerAction.OnLoadStreamCompleted(Object asyncResultArg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

ContentType string is not valid. Expected format is type/subtype.


Server stack trace:
at MS.Internal.ContentType.ParseTypeAndSubType(String typeAndSubType)
at MS.Internal.ContentType..ctor(String contentType)
at MS.Internal.MimeTypeMapper.GetMimeTypeFromUrlMon(Uri uriSource)
at MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(Uri uriSource)
at MS.Internal.AppModel.ContentFilePart.GetContentTypeCore()
at System.IO.Packaging.PackagePart.get_ContentType()
at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
at System.IO.Packaging.PackWebResponse.GetResponseStream()
at MS.Internal.WpfWebRequestHelper.CreateRequestAndGetResponseStream(Uri uri)
at System.Windows.Controls.SoundPlayerAction.LoadStreamAsync(Uri uri)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at System.Windows.Controls.SoundPlayerAction.LoadStreamCaller.EndInvoke(IAsyncResult result)
at System.Windows.Controls.SoundPlayerAction.OnLoadStreamCompleted(Object asyncResultArg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

ContentType string is not valid. Expected format is type/subtype.


Server stack trace:
at MS.Internal.ContentType.ParseTypeAndSubType(String typeAndSubType)
at MS.Internal.ContentType..ctor(String contentType)
at MS.Internal.MimeTypeMapper.GetMimeTypeFromUrlMon(Uri uriSource)
at MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(Uri uriSource)
at MS.Internal.AppModel.ContentFilePart.GetContentTypeCore()
at System.IO.Packaging.PackagePart.get_ContentType()
at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
at System.IO.Packaging.PackWebResponse.GetResponseStream()
at MS.Internal.WpfWebRequestHelper.CreateRequestAndGetResponseStream(Uri uri)
at System.Windows.Controls.SoundPlayerAction.LoadStreamAsync(Uri uri)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at System.Windows.Controls.SoundPlayerAction.LoadStreamCaller.EndInvoke(IAsyncResult result)
at System.Windows.Controls.SoundPlayerAction.OnLoadStreamCompleted(Object asyncResultArg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

ContentType string is not valid. Expected format is type/subtype.


Server stack trace:
at MS.Internal.ContentType.ParseTypeAndSubType(String typeAndSubType)
at MS.Internal.ContentType..ctor(String contentType)
at MS.Internal.MimeTypeMapper.GetMimeTypeFromUrlMon(Uri uriSource)
at MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(Uri uriSource)
at MS.Internal.AppModel.ContentFilePart.GetContentTypeCore()
at System.IO.Packaging.PackagePart.get_ContentType()
at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
at System.IO.Packaging.PackWebResponse.GetResponseStream()
at MS.Internal.WpfWebRequestHelper.CreateRequestAndGetResponseStream(Uri uri)
at System.Windows.Controls.SoundPlayerAction.LoadStreamAsync(Uri uri)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at System.Windows.Controls.SoundPlayerAction.LoadStreamCaller.EndInvoke(IAsyncResult result)
at System.Windows.Controls.SoundPlayerAction.OnLoadStreamCompleted(Object asyncResultArg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

----------------------------------------

Author:  mstrobel [ 30 Dec 2007, 05:56 ]
Post subject:  Re: I have an error

It looks like it's having trouble loading one of the sound effects. I'm not sure what would cause that off the top of my head. Can you check and see what version of Windows Media Player you have installed?

Author:  Amasov [ 30 Dec 2007, 10:43 ]
Post subject:  Re: I have an error

I have Windows Media Player 11.

Author:  Malvoisin [ 30 Dec 2007, 10:59 ]
Post subject:  Re: I have an error

Isn't .NET using its own string types? I mean it sounds a bit like it's trying to play the sound file via Media Player 6.4 dlls and those ones expect lpcstr or similar standard string types as reference types. Maybe it doesn't find the right dlls, WinSxS maybe missing. If I knew which dlls are needed to play a file, I would try to copy them into the supremacy folder and see what happens.

Author:  Amasov [ 30 Dec 2007, 12:09 ]
Post subject:  Re: I have an error

I checked and the WinSxS folder and its contents are still present so it doesn't seem to be that.

Author:  mstrobel [ 30 Dec 2007, 17:56 ]
Post subject:  Re: I have an error

I don't think it's a string issue, since WPF uses its own "pack:///" URI format that WMP can't handle anyway. In should be opening a stream and then passing the stream off to the sound player. Come to think of it, I don't think the lightweight WPF SoundPlayer actually uses WMP afterall, so I'm once again stumped...

Author:  traenol [ 31 Dec 2007, 21:53 ]
Post subject:  Re: I have an error

it could just be a partially corrupted download... just had that problem with another app I downloaded ... loaded up just fine, then it started to play the sound and crashed. uninstalled, redownloaded, fixed.

however, that app was only 3mb(LOL) and not nearly as big as supremacy ... so redownloading can be a chore, plus it uses a lot of bandwidth.

Author:  mstrobel [ 31 Dec 2007, 22:30 ]
Post subject:  Re: I have an error

Well, hopefully by the time the game gets to Alpha stage, I'll have implemented an automatic updating service. That way the game will automatically download any new files it needs and ignore the ones that haven't changed. It would almost certainly perform a verification of all files downloaded to make sure nothing is corrupted or otherwise tampered with :).

Author:  Matress_of_evil [ 31 Dec 2007, 23:01 ]
Post subject:  Re: I have an error

Err...define "tampering", Mike; what would happen if you've modded the game? :?

Author:  mstrobel [ 01 Jan 2008, 00:50 ]
Post subject:  Re: I have an error

Matress_of_evil wrote:
Err...define "tampering", Mike; what would happen if you've modded the game? :?

Only the core game binaries would be digitally signed and tamper-proof to prevent cheating. The rest doesn't really matter.

I mean come on, do you really think I hadn't thought of that? :-P

Author:  cdrwolfe [ 01 Jan 2008, 01:10 ]
Post subject:  Re: I have an error

mstrobel wrote:
Matress_of_evil wrote:
Err...define "tampering", Mike; what would happen if you've modded the game? :?

Only the core game binaries would be digitally signed and tamper-proof to prevent cheating. The rest doesn't really matter.

I mean come on, do you really think I hadn't thought of that? :-P


Tsk Tsk MOE :P

Oh and happy new year

Regards Wolfe

Author:  Matress_of_evil [ 01 Jan 2008, 01:24 ]
Post subject:  Re: I have an error

Just testing! :shifty:

What would you do without me, Mike? :P

Happy New Year Wolfe! Happy New Year everyone!

Author:  SeaBee-T [ 01 Jan 2008, 03:16 ]
Post subject:  Re: I have an error

Happy New Year to you guys too! New year, improved Supremacy! :)

Author:  mstrobel [ 01 Jan 2008, 07:06 ]
Post subject:  Re: I have an error

SeaBee-T wrote:
Happy New Year to you guys too! New year, improved Supremacy! :)

Damn right. Happy New Year, all.

Author:  Amasov [ 01 Jan 2008, 21:17 ]
Post subject:  Re: I have an error

traenol wrote:
it could just be a partially corrupted download... just had that problem with another app I downloaded ... loaded up just fine, then it started to play the sound and crashed. uninstalled, redownloaded, fixed.

however, that app was only 3mb(LOL) and not nearly as big as supremacy ... so redownloading can be a chore, plus it uses a lot of bandwidth.


I did try that but to no avail unfortunately.

Author:  mstrobel [ 02 Jan 2008, 04:22 ]
Post subject:  Re: I have an error

Well, that's disappointing. Unfortunately, I may not get the chance to look at it for a while, as this is going to be an incredibly busy month. I just bought my first place, and I have a lot of furniture shopping to do before I close on Jan 31. Plus all the loan paperwork... eesh :shock:.

Author:  Kenneth_of_Borg [ 02 Jan 2008, 14:01 ]
Post subject:  Re: I have an error

Congratulations on the new place. I will be on the road half the time myself this month. February should be more productive.

Author:  mstrobel [ 02 Jan 2008, 14:05 ]
Post subject:  Re: I have an error

Thanks, Kenneth :). Travel safely.

Author:  Amasov [ 02 Jan 2008, 18:47 ]
Post subject:  Re: I have an error

Hey no worries, I'll be sure to check out future versions and see if the problem occurs again, never know it might work itself out down the line :)

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/