nop

I'm probably just not looking hard enough, but...

How do I get raw data through the content pipe and onto the 360 in a format I can just do a File.Open on All of the data processing I need is already being done offline so I don't need the content pipeline to do anything other than copying the file across - yet, because it's not a registered content pipeline format, it just sits there and gets ignored when I add it to my project...

Help


Re: XNA Framework Moving raw data through the content pipeline...

Shawn Hargreaves - MSFT

You don't need to use the content pipeline at all for this: just put your converted data into the project output directory, then open a System.IO stream to read this into your game.





Re: XNA Framework Moving raw data through the content pipeline...

Jon Watte

"Put your converted data" is a little bit abstract, because you actually want the data to live in the source directories (because of source control, the ability to nuke the output and re-build, etc).

I can think of two ways of doing this:
1) Use a custom build rule that just does "copy" on the asset. Hmm -- I know how to do this in VS Pro; I haven't verified that that's there in VCE.
2) Write a very simple object importer that puts data in the content DOM, and just streams it through as a byte array.

Which would you suggest






Re: XNA Framework Moving raw data through the content pipeline...

Shawn Hargreaves - MSFT

If you have binary files that are already in the exact right format, you can just add these to your C# Express project and set "copy to output" to true in the properties for those files.

If you have some other tool that is building the game-ready outputs from a different source tool you would probably want to hook that up as part of the VS build, though, rather than adding its output files to VS. In that case you'd most likely want to write a custom MSBuild task, which can be added into your .csproj file.





Re: XNA Framework Moving raw data through the content pipeline...

nop

Thanks for the reply. I somehow got mixed up thinking the content pipeline was the only way to get data up to the xbox.

One more quick question: I added a test file and it went up OK but when I deleted it from the output directory on my PC and hit deploy I didn't see it say anything about removing the file from my xbox. Is the file still sitting there Is there a way to delete it through my PC or do I have to delete the whole title through the XNA launcher and redeploy