Welcome to MSDN Blogs Sign in | Join | Help

Loading content from zip archives

Nick Gravelyn has posted some code for embedding XNA content in zip archives. Not only does this provide compression for your asset data, but it also reduces clutter, replacing many .xnb files with a single .zip.

He uses a custom MSBuild task (in a similar vein to what I described in my previous post) to create the archive as part of the regular build process, and then derives a new runtime class from ContentManager, overriding the OpenStream method to implement the decompression.

Very cool!

Published Wednesday, June 06, 2007 10:33 AM by ShawnHargreaves

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

Wednesday, June 06, 2007 2:06 PM by Nick’s Blog » Internet Fame +1

# Nick’s Blog » Internet Fame +1

Tuesday, June 26, 2007 5:35 PM by nickgravelyn

# re: Loading content from zip archives

Wanted to comment that anyone looking for zipping up their content files should check out the newer version of my system found at this codeplex page: http://www.codeplex.com/xnaziplib

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker