Jump to content
  • Advertisement
Sign in to follow this  
diego_pmc

Custom file formats

This topic is 2651 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

I'm writing a simple 2D game in C++. Up until now I just stored my game data in folders, but now the time has come to implement a sort of 'container file' where I can store animations, sounds, scripts, etc. How do you recommend I do that, what libraries should I use, etc? :)

Share this post


Link to post
Share on other sites
Advertisement
Guest
Look for Virtual File System. Basically, you pack files together into one big file. You can make your own VFS or you can use a file archiver library like ZIP.

Share this post


Link to post
Share on other sites
Sqlite also make for a pretty sweet custom file format. Depending on your data stuffing it into a file based database might not be the best solution but it's really nice to be able to access data using sql queries.

Share this post


Link to post
Share on other sites
PhysicsFS and Sqlite seem very interesting, but I think I'll give PhysicsFS a go first. From the superficial reading I did on it I imagine it is particularly useful if you want to make you game moddable (and give modders the ability to use the vanilla game files if they want). Just one question, though: is it 100 percent platform-independent? I'm asking because after I finish writing the game for Windows I'd like to port it over to Wii Homebrew.

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!