Unhandled Exception?

May 29, 2011 at 4:24 PM

I tried it out on 3 computers now and every time I try to run a bat file to generate a map I get this message in the command prompt:


Unhandled exception:

System.NotSupportedException: Could not find a graphics device that supports the
 XNA Framework HiDef profile.
   at Microsoft.Xna.Framework.Graphics.ProfileCapabilities.ThrowNotSupportedExce
ption(String message)
   at Microsoft.Xna.Framework.Graphics.GraphicsDevice..ctor(GraphicsAdapter adap
ter, GraphicsProfile graphicsProfile, PresentationParameters presentationParamet
   at TerrariaMapTool.MapGenerator.LoadTextures()
   at TerrariaMapTool.MapGenerator.Generate()
   at TerrariaMapTool.Program.Main(String[] args)

Any way to fix this?

May 29, 2011 at 8:18 PM

I have not seen this issue before. I will have to investigate further.

May 29, 2011 at 8:19 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Jun 2, 2011 at 7:17 PM

I get this error when I try to run the map generator through an RDP session, or if my automated generation script kicks off when my computer is locked.

Jun 2, 2011 at 11:14 PM

The program uses a render device to extract the textures from the terraria data. It cannot do this if it cannot create a graphics device which means it won't work if the desktop is locked or through remote desktop.

I'll have to see if there's another way to extract the textures.