Jump to content
  • Advertisement
Sign in to follow this  
dman1027

hiding game art, sounds, models...basic idea?

This topic is 4961 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

howdy, so the amateur stuff i've seen has the "resources" for games located in the game directory in folders like "Images", "Sounds", "Models". but with that method everyone sees your materials... could anyone explain or direct me to some reading about condensing said materials in a folder kinda like the .pak or .mpq files you see released with some large scale games i'm kinda familiar with the idea of using visual studio to add the resources to the project build and it will compile them into the application's .EXE file....but ideas into the other method would be appreciated

Share this post


Link to post
Share on other sites
Advertisement
One pretty easy way would be just to use .zip files. There is a lot of code out there that shows how to load data from inside zips. If you want to be really clever about it you could even add some encryption here so a normal zip loader ( ie winzip ) won't load them.

-----------
Andrew

Share this post


Link to post
Share on other sites
make yourself a virtual file system
think what you need for information to store multiple files in one single file(offset to the file, filesize etc)
after some thinkink you will get an idea how it could work.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
And for lil bit extra security don't keep the filenames in the big file, keep hashes of the filename.

Share this post


Link to post
Share on other sites
I take a simpler route and just change the file extensions!
A lot of commercial games put everything into a (sometimes uncompressed) zip file, and chage the extension on that. (Hidden and dangerous's *.dta, id's *.pk3)

Share this post


Link to post
Share on other sites
I like the "hash the names" idea. That would be really frustrating trying to find a specific file when they are all named like "89fjhW93H93nf9211HP", even in an open, uncompressed, unhidden folder. Note that it wouldn't mean anything to a browser that recognizes file types by their headers and not their extensions.

On the other hand, is there a really good reason to hide the resources? Leaving them open means modding potential, which most people will admit extends the lives of many commercial games (like The Sims). It doesn't have to be serious modding like making a whole new game, i just mean swapping out the graphics and sounds and whatnot. Unless you were afraid of getting your art/sound ripped and abused, i would leave it open for people to tinker with.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!