Sign in to follow this  

Ant Archive Tools

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

Hello! I was making a game engine some time ago, and because I didn't have much time I scrapped it, and started to rewrite it, however I wanted to share with you a library that I wrote for the engine. The engine was called "Ant engine", hence the name. This library allows you to collect all your game files in a single encoded archive. Here are some pros and cons:
Pros:
  • No need to load the whole archive to view info about archive/files.
  • Can store info. that can be used by the user.
  • Big file size limit (if size_t type has a max value of 18446744073709551615, then the file max size is [font='Roboto-Regular']18446744100 GB[/font][font='Roboto-Regular']).[/font]
[font='Roboto-Regular'][font='Roboto-Regular'][font='Roboto-Regular']?Cons:[/font][/font][/font]
  • [font='Roboto-Regular'][font='Roboto-Regular'][font='Roboto-Regular']No compression (it may count as a pro, because it improves performance)[/font][/font][/font]
[font='Roboto-Regular'][font='Roboto-Regular'][font='Roboto-Regular']?The usage is simple:[/font][/font][/font]
  • [font='Roboto-Regular'][font='Roboto-Regular'][font='Roboto-Regular']Create an archive object, specifying the path and the open mode(just like in a fstream)[/font][/font][/font]
  • [font='Roboto-Regular'][font='Roboto-Regular'][font='Roboto-Regular']Add files, specifying the paths.[/font][/font][/font]
  • [font='Roboto-Regular'][font='Roboto-Regular'][font='Roboto-Regular']Use the write function to write the data to the archive.[/font][/font][/font]
[font='Roboto-Regular'][font='Roboto-Regular'][font='Roboto-Regular']?To extract just open the archive in "IN" mode and use the extract function.[/font][/font][/font]
Support wallet:

WMZ: Z203276490655


[font='Roboto-Regular'][font='Roboto-Regular'][font='Roboto-Regular']If you will like this library I may update it![/font][/font][/font]


The library wasn't tested much! If you notice a bug, then post it here, and I'll do my best to fix it!

This library uses Boost, so you need to download it!

How to build:
  • Extract the archive.
  • Enter the directory where you extracted it.
  • Open the terminal there.
  • Run "cmake ." (With the dot!).
  • Run "make".
  • The library will be in the "build" direcory!
This won't work with windows, because the visual studio compiler is quite outdated, so on windows, you'll need to use MinGW with Cygwin!

Share this post


Link to post
Share on other sites

This topic is 828 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this