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

Possile to create a batch file containing content?

Last post 05/04/2009 09:23 by Nick Gravelyn. 1 replies.
  • 05/04/2009 08:40

    Possile to create a batch file containing content?

    When you dont want to expose your content directory and filename structure to the end users on windows, is there any way to write all the content output files to a single big batch-file? I can certenly do this post-contentcompile, and load the "big" file manually into memory. But when unpacking the resources in runtime later, do you have access to the parsers for xnd files and can unpack them just providing a memorylocation instead of a file? (without any dev-libs installed ofc, must work for end-user)

    Thanks in advance
    / Peter
  • 05/04/2009 09:23 In reply to

    Re: Possile to create a batch file containing content?

    First I'd ask why you care about the content directory and structure on disk? Most end users won't bother to look at this if you run an installer (like ClickOnce or any other) and place a shortcut in the Start Menu or on the desktop. Most users will just run the game and never know better. Heck, using ClickOnce it installs into a hidden directory, anyway, making it hard to even find the directory.

    If you decide you really need to do this for some reason, you could probably make some sort of post-build tool that goes through your content directory and simply reads in all the bytes of the files, reassembling them all into a single large file. You'd want to either make a new file that gives the offsets for each file, or build that data into the header of your big file. As far as I know, nobody has made such a tool for XNA GS.
Page 1 of 1 (2 items) Previous Next