• Log in or sign up for an account here: https://www.sythe.org/login

C# Game Help...

0wn_dem_rune_rocks

Forum Addict
Joined
Aug 21, 2007
Sythe Gold
15
Messages
542
Location
Canada
Discord Unique ID
227971290592444416
Discord Username
0wn_dem_rune_rocks
Hello, I'm using a tutorial from:



http://creators.xna.com/en-us/education/gettingstarted/bg3d/chapter4



When I'm supposed to build I get an error, stating:



Error 1



Building content threw InvalidOperationException: D3DERR_INVALIDCALL
at Microsoft.Xna.Framework.Content.Pipeline.CommonHelperFunctions.InitD3D()
at Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.InitD3D()
at Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.Import(String filename, ContentImporterContext context)
at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1.Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import(String filename, ContentImporterContext context)
at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.ImportAssetDirectly(BuildItem item, String importerName)
at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.ImportAsset(BuildItem item)
at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAssetWorker(BuildItem item)
at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAsset(BuildItem item)
at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.RunTheBuild()
at Microsoft.Xna.Framework.Content.Pipeline.Tasks.BuildContent.RemoteProxy.RunTheBuild(BuildCoordinatorSettings settings, TimestampCache timestampCache, ITaskItem[ sourceAssets, String[& outputContent, String[& rebuiltContent, String[& intermediates, Dictionary`2& dependencyTimestamps, KeyValuePair`2[& warnings)
Inner exception: COMException: Exception from HRESULT: 0x8876086C C:\Documents and Settings\Leta\Desktop\Sythe MMORPG\Test Game\BD_3D\BD_3D\Content\Models\enemy.tga BD_3D


You might see, but the problem is the file: enemy.tga. Unfortunately, I have NO clue what's going on.



Any help would be GREATLY appreciated. Thanks.

The source code is from the first video collect, chapter 1. Download it to get the enemy.tga file plus other files.
 
Member of the Month Winner
Sythe's 10th Anniversary
TGA is an image format.

Did you add enemy.tga to the XNA content pipeline?
 
I did. Then on the tutorial it said highlight and exclude from project, which I did.
 
Member of the Month Winner
Sythe's 10th Anniversary
I have no clue, it said to do it in the tutorial, go to chapter 3, video 1. I did EXACTLY what they told me to do.

Edit: Chapter 3, not 2. My bad.
 
Hi 0wn_dem_rune_rocks...

I also get this error when I am doing my project.

You have to provide information on the hardware/driver configuration of the machine performing the build,and also check that The script is also running in your machine It some time would not access Graphical UI,You also try for enabling Window station.

I suspect that if the machine performing the build does not meet the minimum hardware-driver requirements for running XNA games.

And also builds would not work either, but I have not experimentally verified this.

May this will help you in your project.
 
Hi 0wn_dem_rune_rocks...

I also get this error when I am doing my project.

You have to provide information on the hardware/driver configuration of the machine performing the build,and also check that The script is also running in your machine It some time would not access Graphical UI,You also try for enabling Window station.

I suspect that if the machine performing the build does not meet the minimum hardware-driver requirements for running XNA games.

And also builds would not work either, but I have not experimentally verified this.

May this will help you in your project.

that helps me a lot !!
 
duelarena.gg
Back
Top