Mythic Forum

Current thread: Mythic forums > Technical > Adventure Viewer Bug.
AuthorMessage

8/4/2010 11:30:15 AM
This is the error I received when trying to view Greyskull's live adventure: Server Error in '/' Application. Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.FormatException: Input string was not in a correct format. Source Error: Line 441: ' determine width of friendly, enemy icon tables Line 442: ' N is the total columns available Line 443: N = Int((Session("ScreenWidth") - 640) / 159) Line 444: FCols = 1 Line 445: While NumFriendly > FCols * (Int((Session("screenheight") - 200) / 130)) And (FCols + 2) <= N Source File: C:\inetpub\wwwroot\adventure.aspx.vb Line: 443 Stack Trace: [FormatException: Input string was not in a correct format.] Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +201 Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +68 [InvalidCastException: Conversion from string "" to type 'Double' is not valid.] Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +212 Microsoft.VisualBasic.CompilerServices.Operators.SubtractObject(Object Left, Object Right) +365 adventure.tPeople_Refresh(Person[]& P, RoomObject[] RO) in C:\inetpub\wwwroot\adventure.aspx.vb:443 adventure.form1_load(Object sender, EventArgs e) in C:\inetpub\wwwroot\adventure.aspx.vb:239 System.Web.UI.Control.OnPreRender(EventArgs e) +8683846 System.Web.UI.HtmlControls.HtmlForm.OnPreRender(EventArgs e) +12 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
Legion
8/5/2010 1:57:17 PM
Thank you for the error details.

It looks like you're having trouble with the javascript that checks your screen resolution. The most likely reason for this is that you are using a browser like firefox that doesn't fully support modern java conventions. Almost any modern browser (except firefox) is java compliant so if this is the case, I'd suggest trying another such as Internet Explorer which is the browser I develop and test with.

If you are already using internet explorer, I'm not sure what the problem is. I did add some error catching code to that function so hopefully you'll no longer get that error. However, without accurate screen measurements your battle displays will always look rather funny. Let me know if you have more trouble with this.

8/13/2010 7:43:34 PM
I've recently been switching over to IE while playing Mythic Warfare. The other day I didn't bother with switching to IE and just started messing around in Firefox. I saw that someone was adventuring so I went to view them, and I received a similar if not the same error. I went to view his adventure again and the option to view him wasn't there. So maybe it had something to do with him ending his adventure. Just thought I would post this just in case it doesn't have to do with my screen resolution. But like you said I should just stick to IE, and that's probably what I'll keep doing.

Post new message (use of HTML is permitted)
Username New player? Join mythic warfare.
Password
Body
Submit