Author Topic: [Solved] Startup Error  (Read 6163 times)

Offline Coded One

  • Newbie
  • *
  • Posts: 7
[Solved] Startup Error
« on: September 01, 2009, 09:39:59 PM »
Hi! I know there are a lot of these startup error topics, and mine is no exception! So forts of all, I have all the required stuff installed (as far as I know) and I'm still getting an error.

I'm including my unhandlederrors.txt file for reference, please note that there are a lot of logged messages, that was when I forgot to install the SlimDX thing, but just look at the last two error logs, which I will also include in my post:

Code: [Select]
9/1/2009 8:33:24 PM
-----------------------------------Application_ThreadException-----------------------------------System.TypeInitializationException: The type initializer for 'AIWar.Windows.FindLANGames' threw an exception. ---> System.ArgumentException: Font 'Arial' does not support style 'Regular'.
   at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet)
   at AIWar.Windows.FindLANGames.InitializeComponent() in C:\vcprojs\AIWar\Windows\FindLANGames.Designer.cs:line 85
   at AIWar.Windows.FindLANGames..ctor() in C:\vcprojs\AIWar\Windows\FindLANGames.cs:line 17
   at AIWar.Windows.FindLANGames..cctor() in C:\vcprojs\AIWar\Windows\FindLANGames.cs:line 13
   --- End of inner exception stack trace ---
   at AIWar.GameForm.HideAllWindows() in C:\vcprojs\AIWar\GameFormParts\GameLoop.cs:line 153
   at AIWar.GameForm.GameForm_Load(Object sender, EventArgs e) in C:\vcprojs\AIWar\GameFormParts\Startup.cs:line 107
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
9/1/2009 8:33:31 PM
-----------------------------------CurrentDomain_UnhandledException-----------------------------------System.TypeInitializationException: The type initializer for 'AIWar.Windows.ModelessConfirm' threw an exception. ---> System.ArgumentException: Font 'Arial' does not support style 'Regular'.
   at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(String familyName, Single emSize)
   at AIWar.Windows.ModelessConfirm.InitializeComponent()
   at AIWar.Windows.ModelessConfirm..ctor()
   at AIWar.Windows.ModelessConfirm..cctor()
   --- End of inner exception stack trace ---
   at AIWar.Windows.ModelessConfirm.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Finalize()

Hop I can get this all sorted out!
« Last Edit: September 25, 2009, 09:25:02 AM by Fiskbit »

Offline Revenantus

  • Arcen Games Staff
  • Hero Member Mark III
  • *****
  • Posts: 1,063
Re: Startup Error
« Reply #1 on: September 01, 2009, 09:42:35 PM »
Hi Coded One,

Welcome to the forum.

From the contents of your error file, it appears that the Arial font isn't installed on your system.

If you could download and install the font this should resolve your problem - http://web.nickshanks.com/fonts/microsoft-core-web-fonts

Hope this helps.

Regards,
Revenantus

Offline Coded One

  • Newbie
  • *
  • Posts: 7
Re: Startup Error
« Reply #2 on: September 01, 2009, 09:47:56 PM »
Hmm... I just tried that, it didn't work. Do I need to reinstall AI War AFTER installing Arial?

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,624
Re: Startup Error
« Reply #3 on: September 01, 2009, 09:49:03 PM »
Alternatively, just upgrading to 1.201 should fix this.  It comes with the fonts prepackaged, thus avoiding this issue.
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 Revenantus

  • Arcen Games Staff
  • Hero Member Mark III
  • *****
  • Posts: 1,063
Re: Startup Error
« Reply #4 on: September 01, 2009, 09:50:04 PM »
Which version of the game do you currently have installed?

Could you try updating to the version 1.201? Extracting this zip archive into your AI War directory will upgrade your game to the latest version - http://www.arcengames.com/share/AIWar1000To1201.zip

Offline Coded One

  • Newbie
  • *
  • Posts: 7
Re: Startup Error
« Reply #5 on: September 01, 2009, 09:52:37 PM »
Nope, it STILL didn't work even after unzipping into my AI War directory. I'm currently uninstalling and will simply reinstall the newest version.

EDIT: Oh... uh... there's no 1.201 demo installer on the website. Anybody have a link?
« Last Edit: September 01, 2009, 09:54:35 PM by Coded One »

Offline Revenantus

  • Arcen Games Staff
  • Hero Member Mark III
  • *****
  • Posts: 1,063
Re: Startup Error
« Reply #6 on: September 01, 2009, 09:57:09 PM »
That's very perplexing, as that issue has in the past been invariably related to the absence of the Arial font on the user's system. The 1.201 version of the game has the required fonts packaged with it, but the 1.013 version does not.

Can I ask which platform you purchased AI War through?

EDIT: There is currently no version 1.201 installer. The current update method, assuming you cannot launch the game, is to extract the above zip archive into your AI War directory. See below...
« Last Edit: September 01, 2009, 10:05:21 PM by Revenantus »

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,624
Re: Startup Error
« Reply #7 on: September 01, 2009, 10:00:19 PM »
http://www.filefront.com/14446581/AIWarSetup1201.exe


Just has not made it to the front page yet.
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 Coded One

  • Newbie
  • *
  • Posts: 7
Re: Startup Error
« Reply #8 on: September 01, 2009, 10:08:05 PM »
Nope, still doesn't work. Also, I can no longer find an unhandlederrors.txt in my AI War directory.

EDIT: Some extra info, I'm running Vista, 3gbs of Ram, quad core 2.8GHz, an NVidia GeForce 8500.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,624
Re: Startup Error
« Reply #9 on: September 01, 2009, 10:11:59 PM »
When it pops up the message with the error, it should say a directory where the unhandledexceptions file is located. 

You might need to reboot your system if the game is for some reason still looking to a system version of the font in this case.  And, you might want to be sure that the Arial font is actually registered with your system properly:  http://support.microsoft.com/kb/314960

For whatever reason, your Arial font is messed up, the game itself won't work until that is resolved.  It should be loading the local copy, but perhaps your system copy of the font is messed up and it is trying to load that one instead or something (that's unfortunate, if so, but should be easily fixable).  May I ask what OS you are running on?
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 Coded One

  • Newbie
  • *
  • Posts: 7
Re: Startup Error
« Reply #10 on: September 01, 2009, 10:16:38 PM »
My OS is Vista.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,624
Re: Startup Error
« Reply #11 on: September 01, 2009, 10:19:22 PM »
Ok -- 32 or 64?  Either should be just fine.  Is this a non-English version of the OS?  That also works for most people, but your problem seems to be with the Arial font being corrupted or missing, and apparently the fact that we are including it with the game is not helping.

If you can find the updated unhandledexceptions.txt file, that would be helpful.  Most likely it is going into your local profile application data folder, because on Vista if you install into the Program Files folder, then the game doesn't have permissions to create files there -- but again, it tells you the location where it put the file when it shows you the popup, or at least it should!
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 Coded One

  • Newbie
  • *
  • Posts: 7
Re: Startup Error
« Reply #12 on: September 01, 2009, 10:25:21 PM »
32 bit, English OS, and let me post my most recent error log:

Code: [Select]
9/1/2009 9:22:42 PM (1.201)
-----------------------------------CurrentDomain_UnhandledException-----------------------------------System.TypeInitializationException: The type initializer for 'AIWar.Windows.Lobby' threw an exception. ---> System.ArgumentException: Font 'Arial' does not support style 'Regular'.
   at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet)
   at AIWar.Windows.LobbyPlayer.InitializeComponent() in C:\vcprojs\AIWar\Windows\LobbyPlayer.Designer.cs:line 56
   at AIWar.Windows.LobbyPlayer..ctor() in C:\vcprojs\AIWar\Windows\LobbyPlayer.cs:line 15
   at AIWar.Windows.Lobby.InitializeComponent() in C:\vcprojs\AIWar\Windows\Lobby.Designer.cs:line 74
   at AIWar.Windows.Lobby..ctor() in C:\vcprojs\AIWar\Windows\Lobby.cs:line 35
   at AIWar.Windows.Lobby..cctor() in C:\vcprojs\AIWar\Windows\Lobby.cs:line 13
   --- End of inner exception stack trace ---
   at AIWar.Windows.Lobby.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Finalize()
9/1/2009 9:22:42 PM (1.201)
-----------------------------------Application_ThreadException-----------------------------------System.TypeInitializationException: The type initializer for 'AIWar.Windows.FindLANGames' threw an exception. ---> System.ArgumentException: Font 'Arial' does not support style 'Regular'.
   at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet)
   at AIWar.Windows.FindLANGames.InitializeComponent() in C:\vcprojs\AIWar\Windows\FindLANGames.Designer.cs:line 84
   at AIWar.Windows.FindLANGames..ctor() in C:\vcprojs\AIWar\Windows\FindLANGames.cs:line 17
   at AIWar.Windows.FindLANGames..cctor() in C:\vcprojs\AIWar\Windows\FindLANGames.cs:line 13
   --- End of inner exception stack trace ---
   at AIWar.GameForm.HideAllWindows() in C:\vcprojs\AIWar\GameFormParts\GameLoop.cs:line 122
   at AIWar.GameForm.GameForm_Load(Object sender, EventArgs e) in C:\vcprojs\AIWar\GameFormParts\Startup.cs:line 108
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Full txt file is also included.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,624
Re: Startup Error
« Reply #13 on: September 01, 2009, 10:33:00 PM »
Okay, now I understand better what is going on here, I think.  Basically, the game has two different ways it loads the fonts -- one for DirectX, and one for GDI.  The DirectX method is loading correctly I think, but the GDI one is not in your case because it looks only to the system font.  I've opened an issue for that here:  http://arcengames.com/forums/index.php/topic,1134.0.html  So that hopefully future versions of the game can run just fine even if your system copy of Arial is messed up.  But that is not something you need to wait for, and it won't be out tonight or possibly even tomorrow; the simpler solution is to get your system copy of the Arial font fixed.

The inescapable fact here is that your system's copy of the Arial font seems to be either missing or corrupt.  Specifically, the Regular style for your Arial font (there is a different actual file for the Regular, versus Bold, and I think also Italic).

I would suggest uninstalling your existing Arial font through the Fonts section of your Control Panel, and then re-adding the Arial front either from a source on the Internet, or from the Fonts folder under the AI War game itself (since the official Microsoft ones are included there).  That should fix this for you, I would imagine.  Most likely the other install of the fonts did not work because you already had the Arial font, only it was corrupt.  Fingers crossed!

Sorry for the trouble you are having here, I don't know what would have corrupted your Arial font like that.  It's a new one on me!  The few other people with font-related issues were on non-English versions of windows, some of which did not have that font installed at all.
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 Coded One

  • Newbie
  • *
  • Posts: 7
Re: Startup Error
« Reply #14 on: September 01, 2009, 10:39:46 PM »
Wow... I got it working by copy-pasting the fonts in the AI War folder to my fonts folder.

Thank You so much! I've never seen such a diligent technical support for any game. I'm very impressed with the support behind this, and I will definitely follow any other Arcane Games Development! I can't wait to try AI War, unfortunately I have to wake up early for a meeting tomorrow, and it's already late, so I'm unable to play tonight.

Thanks for the amazing support!

 

SMF spam blocked by CleanTalk