XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

XACT programming problem

Last post 18/09/2009 16:57 by Abufalia. 2 replies.
  • 18/09/2009 15:34

    XACT programming problem

    Hi All,

    I am new here and i hope this is the right place for my post.

    I am a beginner i have recently started reading XNA3.0 Programming for novice to expert, just for having an idea how i can create my own game.

    The problem is that i got stucked when i had to add sounds files using XACT. The problem is that as i run the debug next to this string:  audioEngine = new AudioEngine(@"Content\MySounds.xgs");  appears a window saying:

    File not found exception it has not been managed (I am italian and therefore i have made a possible english translation of the message)

    Impossible to find the file C:\Users\Administrator\Desktop\XNA\Libro\Prova1\WindowsGame1\WindowsGame1\bin\x86\Debug\Content\MySounds.xgs'.

    Now my question is the following: why the program insists to find the file in this location despite i have loaded the file from the exploresolution\content? the file mentioned can be found in the usual content directory.

    I wait for you people :)

    Cheers

    Abufalia


  • 18/09/2009 16:11 In reply to

    Re: XACT programming problem

    Your content folder is copied to the folder with the game .exe when you compile. Is the BuildAction property in the Properties window for the .xap file set to Compile and the Content Importer/Processor set to XACT Project?
    Jim Perry - Microsoft XNA MVP
    If people spent a minute searching the forums and reading the FAQs before posting I'd be out of a job.
      Got some XNA Game Studio/XNA Framework development info to share with the community? Put it on the XNA Wiki.
        Please mark posts as Answers or Good Feedback when appropriate.
  • 18/09/2009 16:57 In reply to

    Re: XACT programming problem

    I solved the problem. I didn't notice that once you create an xap file there are created two directories: Xbox and Win. The fact it was that i moved the xap file in an another directory did't know that it was associated with those directories.

    Thanks anyway

    Bye

    Abufalia
Page 1 of 1 (3 items) Previous Next