Sign in to follow this  

Resource packager

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

Hey all, I was thinking of writting a resource packager just for fun. I've already written something using the huffman algorithm but its not working so well for binaries. So anyone got suggestions on what algorithm I should use? I know there is probably a lot of these tools already available but this is mainly a learning experience. If you could name a few it would help also in case I fail ;) My idea was to make a simple UI where you would select a couple of files and then create a header specifying the file structure and compress it with an algorithm. Would that work? It could also export to a .h or .java (I'm really considering making a game in java) the resource IDs so I could code a little loader later as well.

Share this post


Link to post
Share on other sites
Hey
I had thought of sort of the same thing but without compression, so I dont have an algorithm to suggest, but:

Rather than a seperate .h file, I had thought of including a kind of header at the begining of the packed file, that would play the role of an index. It would tell you what files were packed, what size, what offset and maybe allow you to access them with a handle.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
The .h would only be a way of finding the files in the package from the code via a loader. Sort of like what the .rc files are doing in VS.

Share this post


Link to post
Share on other sites

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