C# Game Help...

Discussion in 'Programming General' started by 0wn_dem_rune_rocks, Aug 9, 2008.

C# Game Help...
  1. Unread #1 - Aug 9, 2008 at 8:36 PM
  2. 0wn_dem_rune_rocks
    Joined:
    Aug 21, 2007
    Posts:
    542
    Referrals:
    0
    Sythe Gold:
    15
    Discord Unique ID:
    227971290592444416
    Discord Username:
    0wn_dem_rune_rocks

    0wn_dem_rune_rocks Forum Addict

    C# Game Help...

    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.
     
  3. Unread #2 - Aug 9, 2008 at 9:07 PM
  4. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    C# Game Help...

    TGA is an image format.

    Did you add enemy.tga to the XNA content pipeline?
     
  5. Unread #3 - Aug 9, 2008 at 9:18 PM
  6. 0wn_dem_rune_rocks
    Joined:
    Aug 21, 2007
    Posts:
    542
    Referrals:
    0
    Sythe Gold:
    15
    Discord Unique ID:
    227971290592444416
    Discord Username:
    0wn_dem_rune_rocks

    0wn_dem_rune_rocks Forum Addict

    C# Game Help...

    I did. Then on the tutorial it said highlight and exclude from project, which I did.
     
  7. Unread #4 - Aug 9, 2008 at 9:22 PM
  8. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    C# Game Help...

    Why would you exclude the file you just added?
     
  9. Unread #5 - Aug 9, 2008 at 9:23 PM
  10. 0wn_dem_rune_rocks
    Joined:
    Aug 21, 2007
    Posts:
    542
    Referrals:
    0
    Sythe Gold:
    15
    Discord Unique ID:
    227971290592444416
    Discord Username:
    0wn_dem_rune_rocks

    0wn_dem_rune_rocks Forum Addict

    C# Game Help...

    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.
     
  11. Unread #6 - Aug 26, 2009 at 2:14 AM
  12. refaelilara
    Joined:
    Aug 26, 2009
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    0

    refaelilara Newcomer

    C# Game Help...

    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.
     
  13. Unread #7 - Sep 18, 2010 at 7:13 AM
  14. hanks77
    Joined:
    Sep 8, 2010
    Posts:
    8
    Referrals:
    0
    Sythe Gold:
    0

    hanks77 Newcomer

    C# Game Help...

    that helps me a lot !!
     
< Easy question, I'm just starting | Screenshot taker + uploader? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site