Arcen Games

General Category => AI War Classic => AI War Classic - Technical Support => : Coded One September 01, 2009, 09:39:59 PM

: [Solved] Startup Error
: Coded One 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:

:
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!
: Re: Startup Error
: Revenantus 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
: Re: Startup Error
: Coded One 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?
: Re: Startup Error
: x4000 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.
: Re: Startup Error
: Revenantus 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
: Re: Startup Error
: Coded One 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?
: Re: Startup Error
: Revenantus 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...
: Re: Startup Error
: x4000 September 01, 2009, 10:00:19 PM
http://www.filefront.com/14446581/AIWarSetup1201.exe
 (http://www.filefront.com/14446581/AIWarSetup1201.exe)

Just has not made it to the front page yet.
: Re: Startup Error
: Coded One 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.
: Re: Startup Error
: x4000 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 (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?
: Re: Startup Error
: Coded One September 01, 2009, 10:16:38 PM
My OS is Vista.
: Re: Startup Error
: x4000 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!
: Re: Startup Error
: Coded One September 01, 2009, 10:25:21 PM
32 bit, English OS, and let me post my most recent error log:

:
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.
: Re: Startup Error
: x4000 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 (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.
: Re: Startup Error
: Coded One 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!
: Re: Startup Error
: x4000 September 01, 2009, 10:43:17 PM
No problem!  I'm really glad to hear that worked out for you -- that's a relief.  Good luck with your meeting tomorrow, and I hope you enjoy the game!