olcPack is a command-line utility for adding, and managing files into the virtual filesystem used by the olcPixelGameEngine.
This is meant to be used to create Resource Pack files for use with the olcPixelGameEngine by Javidx9
I develop on Ubuntu, therefore I have instructions for the Debian/Ubuntu side of things. Sorry if it seems like I'm leaving out a whole bunch of things. I am. But I promise it's not that I don't want to do all of the research and install many versions of Linux and do all of the testing myself... Except.... well... I don't want to.
If you develop for other Linux flavors and would like to contribute the instructions here; feel free to make a pull request!
Building olcPack on Linux requires a modern C++ compiler. The following commands should install everything that is necessary to build olcPack any modern Debian/Ubuntu based Linux distribution.
sudo apt-get update
sudo apt-get install build-essential git
git clone https://www.github.org/moros1138/olcPack.git
cd olcPack
make
sudo make install
This video on YouTube will tell you how to ensure you are using a modern version of MinGW, and configure your build environment.
git clone https://www.github.org/moros1138/olcPack.git
cd olcPack
mingw32-make
There's a Solution and Project provided. You should be able to simply open, build, and run it in the traditional Visual Studio way.
$ olcPack
Usage: olcPack [PACK FILE] [PACK KEY] COMMAND [file/s]
An archive for olc::PixelGameEngine Resource Packs
Commands
add Add files to the pack
extract Extract files from the pack
help Show this menu
list List files in the pack
license Show the OneLoneCoder license
remove Remove files from the pack
rename Rename files within the pack
$ olcPack path/to/packfile.pak "some key to use for scrambling" add file1 file2 file3
file1 added.
file2 added.
file3 added.
$ olcPack path/to/packfile.pak "some key to use for scrambling" list
file1
file2
file3
$ olcPack path/to/packfile.pak "some key to use for scrambling" remove file1
file1 has been removed.
$ olcPack path/to/packfile.pak "some key to use for scrambling" rename file1 myfile1
file1 > myfile1
$ olcPack path/to/packfile.pak "some key to use for scrambling" extract file1
file1 has been extracted.
$ olcPack path/to/packfile.pak "some key to use for scrambling" extract
file1 has been extracted.
file2 has been extracted.
file3 has been extracted.
Copyright 2018, 2019, 2020 OneLoneCoder.com
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions or derivations of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions or derivative works in binary form must reproduce the above copyright notice. This list of conditions and the following disclaimer must be reproduced in the documentation and/or other materials provided with the distribution.
-
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.