ComunidadAylas / PackSquash

πŸ“¦ Minecraft: Java Edition resource and data pack optimizer which aims to achieve the best possible compression, performance and protection, improving pack distribution, storage and in-game load times.
https://packsquash.aylas.org
GNU Affero General Public License v3.0
589 stars 24 forks source link
bandwidth-saver compression hacktoberfest lossy-compression lossy-data-compression lossy-image-compression minecraft minecraft-datapack minecraft-map-making minecraft-resourcepack minecraft-server packsquash rust-application zopfli-compression
PackSquash logo

PackSquash

Create more. Worry less about distribution and storage intricacies. CI workflow status Latest version Total downloads Discord server online count

A Minecraft: Java Edition resource and data pack optimizer which aims to achieve the best possible compression, performance, and protection, improving pack distribution, storage, and in-game load times. Anecdotal evidence shows that, with the default options, version v0.2.1 was capable of reducing the size of the Witchcraft & Wizardary resource pack ZIP file by Floo Network (version 1.6.2) from 118 MiB to 57 MiB, a 51.69% size reduction, and it got better over time.

πŸ”Ž Overview

PackSquash walks through the pack files that it recognizes in a directory, applies per-file configurable lossy and lossless compression techniques, and builds a ZIP file that can be directly used by the game. Currently, PackSquash can apply the following specific techniques:

In addition to these techniques, the files that are not already compressed by design (namely, Ogg and PNG files) are losslessly compressed using the Zopfli algorithm, which is a state-of-the-art DEFLATE encoder made by Google. It is tuned for very high space savings at the cost of performance whilst being compatible with every DEFLATE decoder. For even higher savings, it is possible to compress already compressed files and increase the number of compression iterations, although this slows down the process significantly. Conversely, if lower savings are acceptable in exchange for faster execution, it is possible to reduce the number of compression iterations or skip it altogether.

PackSquash is also capable of doing the following things, although they are disabled by default because they require informed decisions to be made by the user:

πŸ”— Download and usage

PackSquash is a command-line application distributed for a bunch of operating systems and environments. Check out the getting started guide for details on how to begin your journey with PackSquash.

Alternatively, you might be interested in third-party frontends for PackSquash, such as:

βœ‰οΈ Contact and support

As the license says, this software is provided without any warranty, with the hope that you find it useful. But that doesn't mean I don't welcome constructive feedback, suggestions, congratulations, or assisting you on your use of PackSquash (if I can and want to). If you wish to drop me a line for whatever reason related to PackSquash, you can contact me on Discord: alextmjugador.

You can also join the Discord server of our community, Comunidad Aylas, which has dedicated spaces to welcome English-language PackSquash chat and support, among other topics. Don't forget to introduce yourself!

🎁 Sponsoring

You can use all of PackSquash for free for whatever you want and will always be able to. One of the things I enjoy the most about making free software is the feeling that I'm doing something good and useful for others. With that said, PackSquash is arguably innovative, and some things were only possible to implement thanks to original knowledge of Minecraft internals acquired via static analysis of its deobfuscated code, which is an activity that is commonly referred to as reverse engineering. This is time-consuming, and engineers in companies get paid for doing these kinds of things. If you want to say "thank you" in a way that words can't describe or motivate me to stay committed to the project and advance in the roadmap, sending me some money would be a great way to do so! You can choose any of the platforms shown below:

Buy me a coffee at ko-fi.com

Donate via PayPal.me

In principle, I will use any funds I receive for personal spending. However, I may decide to introduce sponsor tiers and perks (retroactively, benefiting those who sponsored the project before they got introduced too), add more payment methods, share the funds with other high-profile contributors, or use them for donations and campaigns. I will be transparent about any major decisions I make about this, communicating them in public announcements.

✨ Contributors

Thanks goes to these wonderful people (emoji key):

 Alejandro GonzΓ‘lez
Alejandro GonzΓ‘lez

πŸ’» πŸ–‹ πŸ“– πŸ’‘ 🚧 πŸ“† πŸ§‘β€πŸ« πŸ’¬ πŸ”¬ 🌍 πŸ‘€ ⚠️ πŸ“£ πŸ“¦
Aiamded
Aiamded

πŸ€” πŸ› πŸ”£ πŸ““ πŸ’΅
Ben Wickham (Eraze)
Ben Wickham (Eraze)

πŸ’΅ πŸ€”
CallumBugajski
CallumBugajski

πŸ›
Felixx61
Felixx61

πŸ““ πŸ”£ πŸ€”
Jay Hopkins
Jay Hopkins

πŸ““ πŸ”£
Joshua
Joshua

πŸ› πŸ’΅
LX862
LX862

πŸ€”
Luis
Luis

πŸ›
MKMakroM
MKMakroM

πŸ’΅
Michael
Michael

πŸ”£ πŸ€” πŸ““ πŸ” πŸ”§
Miguel
Miguel

🎨 πŸ€”
Miku
Miku

🌍 πŸ“–
MinecraftAdmin
MinecraftAdmin

πŸ€”
Paul Fulham
Paul Fulham

πŸ€” πŸ’» πŸ”¬
Robin
Robin

πŸ€” πŸ“–
Silmarost
Silmarost

πŸ”£ πŸ€” πŸ““ πŸ’΅ 🌍
SuperJohan16
SuperJohan16

🌍 πŸ’΅
alumina6767
alumina6767

πŸ“ 🌍 πŸ€”
pacificminer
pacificminer

πŸ’΅
realkarmakun
realkarmakun

πŸ“¦ πŸ€” πŸ““ πŸ“–
rswishart
rswishart

πŸ’΅
victorlf4
victorlf4

πŸ€”

This project follows the all-contributors specification. Contributions of any kind welcome! If you are interested, you can check out the contributing guidelines to get started.

βœ… Acknowledgments

Special thanks to JetBrains s.r.o. for providing core PackSquash developers with a free open source development license for CLion and other development tools.

JetBrains logo