Cannot load XACT Data (InvalidDataException)

I am attempting to load a set of XACT data files, similar to how the XNA Starter Kit does so. I get an InvalidDataException when it attempts to load the xgs file, however. "XACT could not load the data provided. Make sure you are using the correct version of the XACT tool."

I am using XACT 2.0, Windows Version 9.13.644.0, if that means anything. The starter kit XACT files load fine, but mine do not. Any ideas? Here's a link to my XACT project:

http://dusda.com/files/Theta%20Wars.zip

[502 byte] By [dusda] at [2008-2-15]
# 1
Okay, I found the problem. I was using the June 2006 SDK, instead of the August edition. Slightly different version of XACT means that it won't work in XNA! Problem solved.
dusda at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 2

.XGS, .XWB and .XSB are "built" data files and cannot be opened in the XACT GUI application. These files contain runtime information that the XACT engine understands and uses to generate audio during game play.

The XAP file is the one you can open in the XACT GUI application. This is your project file where you can author your wavebanks (collection of waves, compression settings etc.), soundbanks (how the wave data is used/manipulated), global settings (various categories, variables that can be used to connect to the game state etc.). The XGS, XWB, XSB files are then generated from this project file to be shipped with the game.

That said, the tool certainly should not throw an exception when attempting to load thes files (only gracefully fail the load). We will investigate this asap.

Hope this helps!

Ashu Tatake - Game Audio Team - Microsoft Corp.

This posting is provided "as is" with no warranties, and confers no rights

AshuTatake at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 3
Oh, don't worry, it's not the tool that's throwing exceptions. The XNA application I'm developing was doing so. I discovered that it was because I was using the XACT tool included in the June 2006 DirectX SDK. XNA appears to rely on the August 2006 edition. So, I was trying to load an old XACT compiled archive under the newer August release.
dusda at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 4
Hi,

I'm having the same issue, i create a sound bank ok using the XACT

tool, but the built files return InvalidDataExceptions when i try to

open them in XNA

Also, XACT refuses to reload any project that i save.

I have the august sdk.. anyone else having these problems?

spazmatron at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 5
ok i've narrowed it down to only soundfiles that i've created with a particular tool. when i reprocess those files through another tool (essentially opening in a multitrack and rerendering) my problems disappear. a bit of a strange one there.
spazmatron at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 6

I'm having the same problem now with XACT 2.0 Windows Version 9.15.779.0 (this version comes in the October DirectX SDK build). I built my audio data with that version and I get that error in this line:

_audioEngine = new AudioEngine(filename);

where filename is the full path of the .xgs file. Any suggestions?

Thanks in advance for any help.

Juan Manuel Alvarez

Naicigam at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 7
I found the problem.... the October build is not compatible with XNA. I installed the August one and it worked perfectly.
Naicigam at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 8
Yes, I do have the same problem as you. My sounds are MP3 transformed into WAV files by the XILISOFT MP3 WAV Converter.

When I build my project in the XACT tool, the "win" directory contains my 3 files (.xgs, .xsb, .xwb) but my "Xbox" folder is empty.

I copy those three files in my XNA C# Game project. When I get to the point of loading the WaveBank, I have the same Unhandle Exception as you get.

m_AudioEngine = new AudioEngine("Sounds\\Sounds.xgs");
here--> m_WaveBank = new WaveBank(m_AudioEngine, "Sounds\\Sound Bank.xsb");
m_SoundBank = new SoundBank(m_AudioEngine, "Sounds\\Wave Bank.xwb");

I have downloaded C# Studio Express 2005, the DirectX SDK (August 2006) and the latest .NET Framework.

Any help would be appreciated.

IveGotThePawa at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...