Author Topic: Unhandled Error  (Read 2880 times)

Offline Kaalith

  • Newbie
  • *
  • Posts: 4
Unhandled Error
« on: March 31, 2010, 02:23:27 pm »
Hi, when i want to start the game i get a error message, here you got the error.txt

31.03.2010 20:12:22 (3.0.6.0Trial)
-----------------------------------Application_ThreadException-----------------------------------System.TypeInitializationException: Der Typeninitialisierer für "AIWar.Windows.GraphsDisplay" hat eine Ausnahme verursacht. ---> System.ArgumentException: Die Schriftart Arial unterstützt den Schnitt Regular nicht.
   bei System.Drawing.Font.CreateNativeFont()
   bei System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   bei System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   bei System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit)
   bei ZedGraph.FontSpec.Remake(Single scaleFactor, Single size, Single& scaledSize, Font& font)
   bei ZedGraph.FontSpec.Init(String family, Single size, Color color, Boolean isBold, Boolean isItalic, Boolean isUnderline, Color fillColor, Brush fillBrush, FillType fillType)
   bei ZedGraph.Legend..ctor()
   bei ZedGraph.PaneBase..ctor(String title, RectangleF paneRect)
   bei ZedGraph.MasterPane..ctor(String title, RectangleF paneRect)
   bei ZedGraph.ZedGraphControl..ctor()
   bei AIWar.Windows.GraphsDisplay..ctor() in C:\vcprojs\AIWar\Windows\GraphsDisplay.cs:Zeile 23.
   bei AIWar.Windows.GraphsDisplay..cctor() in C:\vcprojs\AIWar\Windows\GraphsDisplay.cs:Zeile 15.
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei AIWar.GameForm.HideAllWindows() in C:\vcprojs\AIWar\GameFormParts\GameLoop.cs:Zeile 152.
   bei AIWar.GameForm.GameForm_Load(Object sender, EventArgs e) in C:\vcprojs\AIWar\GameFormParts\Startup.cs:Zeile 110.
   bei System.Windows.Forms.Form.OnLoad(EventArgs e)
   bei System.Windows.Forms.Form.OnCreateControl()
   bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   bei System.Windows.Forms.Control.CreateControl()
   bei System.Windows.Forms.Control.WmShowWindow(Message& m)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   bei System.Windows.Forms.ContainerControl.WndProc(Message& m)
   bei System.Windows.Forms.Form.WmShowWindow(Message& m)
   bei System.Windows.Forms.Form.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
31.03.2010 20:12:25 (3.0.6.0Trial)
-----------------------------------CurrentDomain_UnhandledException-----------------------------------System.TypeInitializationException: Der Typeninitialisierer für "AIWar.Windows.GraphsDisplay" hat eine Ausnahme verursacht. ---> System.ArgumentException: Die Schriftart Arial unterstützt den Schnitt Regular nicht.
   bei System.Drawing.Font.CreateNativeFont()
   bei System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   bei System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   bei System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit)
   bei ZedGraph.FontSpec.Remake(Single scaleFactor, Single size, Single& scaledSize, Font& font)
   bei ZedGraph.FontSpec.Init(String family, Single size, Color color, Boolean isBold, Boolean isItalic, Boolean isUnderline, Color fillColor, Brush fillBrush, FillType fillType)
   bei ZedGraph.Legend..ctor()
   bei ZedGraph.PaneBase..ctor(String title, RectangleF paneRect)
   bei ZedGraph.MasterPane..ctor(String title, RectangleF paneRect)
   bei ZedGraph.ZedGraphControl..ctor()
   bei AIWar.Windows.GraphsDisplay..ctor()
   bei AIWar.Windows.GraphsDisplay..cctor()
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei AIWar.Windows.GraphsDisplay.Dispose(Boolean disposing)
   bei System.ComponentModel.Component.Finalize()

i found the same error on the homepage and installed arial fond and arial black fond but the error remains. what can i do ?

Offline Fiskbit

  • Arcen Games Contractor
  • Master Member Mark III
  • *****
  • Posts: 1,752
Re: Unhandled Error
« Reply #1 on: April 01, 2010, 06:04:12 am »
Sorry you're having trouble with the game! It seems that you have the same problem as in this thread, where the game expects you to have the Arial font and you don't, so it crashes. You'll need to download and install Arial from a site such as http://web.nickshanks.com/fonts/microsoft-core-web-fonts.

I hope that helps; if you continue to have trouble, please let us know!
Have ideas or bug reports for one of our games?  Click here to get started with Mantis for Suggestions and Bug Reports.  Thanks for helping to make our games better!

Offline Kaalith

  • Newbie
  • *
  • Posts: 4
Re: Unhandled Error
« Reply #2 on: April 01, 2010, 06:22:06 am »
The Error remains with the same error message =(

Offline Fiskbit

  • Arcen Games Contractor
  • Master Member Mark III
  • *****
  • Posts: 1,752
Re: Unhandled Error
« Reply #3 on: April 01, 2010, 07:52:15 am »
That's bizarre. The error appears to be identical to the other (complaining about the Regular style for Arial, and having an identical stack trace), so I'm not particularly sure what else you could try to fix that. Chris and Keith (x4000 and keith.lamothe) will be by later today; they're more knowledgeable about this than I and should be able to offer more help.

Sorry again; I hope we can get this working properly for you soon!
Have ideas or bug reports for one of our games?  Click here to get started with Mantis for Suggestions and Bug Reports.  Thanks for helping to make our games better!

Offline Kaalith

  • Newbie
  • *
  • Posts: 4
Re: Unhandled Error
« Reply #4 on: April 01, 2010, 10:58:43 am »
Maybe i start the Arialfond in the wrong place? where should i place the setup exe before i install it?

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Unhandled Error
« Reply #5 on: April 02, 2010, 09:28:14 am »
The simplest thing is to look in your control panel, under where it has a Fonts entry.  If there is an Arial font there, it needs to be deleted because it is corrupt (the installer may have skipped replacing it, thinking it was already okay).  Then once the old copy of Arial is out, the new one can be put in by running that installer.  If for some reason the installer does not work, you can download the Arial font from a variety of locations on the Internet (all over, really), and then simply drag and drop the Arial font into that folder.

Hope that helps!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Kaalith

  • Newbie
  • *
  • Posts: 4
Re: Unhandled Error
« Reply #6 on: April 02, 2010, 12:23:28 pm »
Wow somehow i made it thanx for help =)

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Unhandled Error
« Reply #7 on: April 02, 2010, 12:33:05 pm »
My pleasure!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!