Downloads: M2TW UNPACKER ("alternate"/"homebrew" unpaker)

M2TW UNPACKER ("alternate"/"homebrew" unpaker)

Rate this File
Uploaded by Hexdragon - February 26, 2021
Author Author Hexdragon
File Size File Size 9.9 KB
Downloads Downloads 79
+ Download
** M2TW UNPACKER ** (Early prototype, version 0.135)
=============================================



1.-Description:
============
This tool unpacks the content of Medieval 2 TW Pack files located in the Pack folder.



2.-Downloadable Zip Content:
====================
- m2tw_unpacker.py >>> This is the thing you will execute. It opens and reads the pack file, calls the decompressor module (for unpack job) and writes the unpaked assets.
- decompressor_01.py >>> This is the thing that gets the unpack work done, behind the scenes
- decompressor_02.py >>> Also, the thing that gets unpack work done, behind the scenes ( it is nice to have two of them !!).
- m2tw_unpacker_config.xml >>> This is your "user interface"
- Readme.txt >>> Read the Readme !!!

03-24-2021 Update
-decompressor_01.py :
Replaced nested loops with single one, in order to improve code readability (and bugfix unrelated to M2TW Unpacker)
No functional change related to M2TW Unpacker.
-decompressor_02.py :
Removed non required bits of code.
No functional change related to M2TW Unpacker.



3.- Requirements:
============

-Python 2.7
This tool has been coded and tested with Python 2.7.18.
I believe it may work with ealier versions like python 2.6.8 but cannot confirm at the moment.

-Notepad++
Or anything else that allows you to edit xml files.



4.- Basic Use:
==========

4.1- Put the zip content and the pack file you want to unpack in the same folder.
4.2 - Open m2tw_unpacker_config.xml and edit the parameter "pack file name" (put your pack file's name there).
4.3 - Execute m2tw_unpacker.py by either:
a) Double click, or
b) Right click + "Edit with IDLE" + "Run" (Idle's menu option) + "Run Module"

4.4 - Upon execution, the tool will display current values of parameters located in configuration file ( m2tw_unpacker_config.xml )
Review those values and then press "Enter" key.
4.5 - Furthermore, the tool will confirm your pack file was found and read. Press "Enter" key once more in order to start unpack job.

--------

Forum thread:
https://www.twcenter.net/forums/show...2#post15999382


Images

  • M2TW UNPACKER  ("alternate"/"homebrew" unpaker)

Comments

Lord Hirluin the Fair
March 11, 2021 at 05:12 AM
Nice work!