Results 1 to 12 of 12

Thread: Release of the PACK tool (for packing/unpacking/repacking M2TW PACK files)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Release of the PACK tool (for packing/unpacking/repacking M2TW PACK files)

    Hereby I present the first release of the PACK modding tool, and new addition to the growing collection of modding tools created by the Europa Barbarorum team. This tool is the result of me converting johnwhile's research into the PACK file format into a usable little tool which has the following features (usage info):
    Code:
    pack <command> [opts] -- [<PACK> [file...]]
    pack <command> [opts] [<PACK> [file...]]
    
    Where <PACK> is the PACK file to operate on and pack the pack program
    
    Commands:
       -a, --add              :  add files to PACK file. If <pack> does not exist
                                 it will be created.
       -c, --create           :  create a new PACK file, overwriting <pack> if it
                                 already exists. --no-clobber is not supported.
       -h, --help             :  display this help
       -l, --list             :  list files contained by a given PACK file
       -r, --remove           :  remove files from PACK file
       -x, --extract          :  extract files from an existing PACK file
       -v, --version          :  display version information
    
    Options:
    
       -n, --no-clobber       :  do not overwrite existing files. When extracting 
                                 files from a PACK file this option guards against 
                                 overwriting files in the target directory; when 
                                 adding files to an existing PACK it prevents 
                                 overwriting files already present in the PACK file.
       -i, --case-insensitive :  [file...] is case insensitive, this option only 
                                 applies to matching files located in the PACK
                                 file   
       -g, --glob             :  [file...] may contain wildcards ('*' and '?'),
                                 this option only applies to matching files 
                                 located in the PACK file.
       -d, --details          :  list details about the contents of a PACK file
       -t, --text             :  read file names from given text file(s), when 
                                 creating a PACK file
       -0, --xargs            :  read NULL delimited file names from given file(s),
                                 when creating a PACK file
    The program is available as both a source and a binary distribution from our FTP server. Both distributions are packaged as 7zip archives. Programs such as 7-zip can be used to extract these contents. (You can get 7-zip from here: http://www.7-zip.org/ or commandline equivalent p7zip from here: http://p7zip.sourceforge.net/ )

    The program is made available under the GPL v.2 or later, copy of which is provided in licence.txt of either distribution. Below follows the summary:

    Terms of Use
    This software is free and there is no warranty what so ever. Use at your own risk.
    See licence.txt for a copy of the program licence.

    Copyright (C) 2012 The Europa Barbarorum Team <webmaster at europabarbarorum dot com>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details at
    http://www.fsf.org/licensing/licenses/gpl.txt

    Comments, criticism, improvements and bug reports are welcome. Regards,

    The Europa Barbarorum Team.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  2. #2

    Default Re: Release of the PACK tool (for packing/unpacking/repacking M2TW PACK files)

    New version, which brings a few code simplifications. Features & behaviour remain the same.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  3. #3

    Default Re: Release of the PACK tool (for packing/unpacking/repacking M2TW PACK files)

    New release. Fixed a crash when creating directories on Windows.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  4. #4

    Default Re: Release of the PACK tool (for packing/unpacking/repacking M2TW PACK files)

    New release, this one fixes some inverted logic (if/else) which causes packing certain files to fail. To trigger the bug you would have to have a file for which only the last "chunk" of data is incompressible.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  5. #5

    Default Re: Release of the PACK tool (for packing/unpacking/repacking M2TW PACK files)

    Update:

    Fixes
    • Fix missing include (stdio.h) in util.h
    • Fix bad handling of the output pointer at slurp(), in util.c. Fortunately, in the case of the PACK tool this bug would not "manifest" itself during runtime.
    • Fix opening sentence in the ReadMe, proving nobody ever reads those.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  6. #6

    Default Re: Release of the PACK tool (for packing/unpacking/repacking M2TW PACK files)

    Another update. This one fixes a bug which caused the tool to crash (due to segfault) when unpacking uncompressed data (chunks).
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO