Author Topic: Problem when starting up the game  (Read 1866 times)

Offline Henhog

  • Newbie
  • *
  • Posts: 4
Problem when starting up the game
« on: July 13, 2010, 06:17:52 pm »
Hi, I saw your game on steam and i'm really interested, it looks awesome. Sadly when I start the game, it tell me that it could not initialize directx and it gives me this message:

----------------------------------CurrentDomain_UnhandledException-----------------------------------System.NullReferenceException: Object reference not set to an instance of an object.
   at SlimDX.Direct3D9.Font.Build(Device device, Int32 height, Int32 width, FontWeight weight, Int32 mipLevels, Boolean italic, CharacterSet characterSet, Precision outputPrecision, FontQuality quality, PitchAndFamily pitchAndFamily, String faceName)
   at SlimDX.Direct3D9.Font..ctor(Device device, Int32 height, Int32 width, FontWeight weight, Int32 mipLevels, Boolean italic, CharacterSet characterSet, Precision outputPrecision, FontQuality quality, PitchAndFamily pitchAndFamily, String faceName)
   at AIWar.Direct3DRenderer.InitFont(Boolean IsForLobby, Font F) in C:\vcprojs\AIWar\Framework\Direct3DRenderer.cs:line 316
   at AIWar.Direct3DRenderer.InitFonts(Boolean IsForFamilyOnly) in C:\vcprojs\AIWar\Framework\Direct3DRenderer.cs:line 271
   at AIWar.GameForm..ctor() in C:\vcprojs\AIWar\GameForm.cs:line 510
   at AIWar.Program.Main() in C:\vcprojs\AIWar\Program.cs:line 20

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Problem when starting up the game
« Reply #1 on: July 13, 2010, 09:48:59 pm »
Hmm,

That's a pretty unusual error, I've not seen that exact one before.  From the look of it, perhaps it is having trouble with a corrupt font file, but I'm not really sure on that.  There are several fonts that we include with the game, and it seems to be failing to load them.  They are in the Fonts folder under AI War, you can see if they seem to open correctly or if they look corrupt in the windows font viewer when you open them.

If the fonts seem okay, then I'm suspecting this is either a SlimDX or a DirectX9 issue.  It most looks like some sort of internal SlimDX error to me, honestly -- that line "SlimDX.Direct3D9.Font.Build" is part of the internal SlimDX library.  The SlimDX library doesn't have any known bugs there, to my knowledge, so that could mean it is actually a wrapper around an error in DirectX9.  Simply reinstalling the latest DirectX9.0c redistributable from Microsoft would usually fix any such error if that's what it is.

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 Henhog

  • Newbie
  • *
  • Posts: 4
Re: Problem when starting up the game
« Reply #2 on: July 14, 2010, 05:01:51 am »
I downloaded and installed directx and slimdx from the prerequisites thread but i still get the same error. Any thoughts on why that might be?

Also, the font seemed to work fine. Although I did see something under my graphics adapter info. It says the DAC type is 8bit, is that too low?
« Last Edit: July 14, 2010, 05:23:55 am by Henhog »

Offline eRe4s3r

  • Core Member Mark II
  • *****
  • Posts: 2,825
Re: Problem when starting up the game
« Reply #3 on: July 14, 2010, 05:23:29 am »
Whats your Operating System / Hardware / Language setting?

That error looks like a Windows Problem to be honest...
Particularly What OS you have is vital to know.
Proud member of the Initiative for Bigger Weapons EV. - Bringer of Additive Blended Doom - Vote for Lore, get free cookie

Offline Henhog

  • Newbie
  • *
  • Posts: 4
Re: Problem when starting up the game
« Reply #4 on: July 14, 2010, 05:24:47 am »
By OS you mean windows 7, right?
1.6 GHz processor
1.5 GB of RAM
124 mb graphics card
« Last Edit: July 14, 2010, 05:29:02 am by Henhog »

Offline eRe4s3r

  • Core Member Mark II
  • *****
  • Posts: 2,825
Re: Problem when starting up the game
« Reply #5 on: July 14, 2010, 05:33:25 am »
indeed... But that won't help further i fear.. that error message is pretty odd - so odd that i don't think it can be the right error message. /meaning the application doesn't report the real error, only a symptom.

Maybe x4000 has some other ideas, but apart from reinstalling DirectX 9 and using the installer from from this link

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=2da43d38-db71-4c1b-bc6a-9b6652cd92a3

I don't know.

It surely looks like a weird error though...
« Last Edit: July 14, 2010, 05:39:02 am by eRe4s3r »
Proud member of the Initiative for Bigger Weapons EV. - Bringer of Additive Blended Doom - Vote for Lore, get free cookie

Offline Henhog

  • Newbie
  • *
  • Posts: 4
Re: Problem when starting up the game
« Reply #6 on: July 14, 2010, 09:57:46 am »
reinstalled directx, but still get the same error =/