Skip to content

Python library for converting from MH Rise textures to DDS and back.

License

Notifications You must be signed in to change notification settings

AsteriskAmpersand/MHR_Tex_Chopper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monster Hunter Rise Tex Chopper

A Python library and application for converting from MH Rise textures and other RE-Engine formats to DDS and back.

Credit

Silvris

Wylele

K0lb3

  • For the astc_decomp library which I modified to have ASTC decompression (the code is bundled with the modified version of his library to remove the PIL dependency).

Ando

  • For his mapping of the MHRise texture format codes.

Usage

The exe versions are drag and drop. Download the exe appropiate to your intended game.

Setting Up

Requirements

  • Python 3.7
  • PyInstaller
  • PyEnv (Python Environment setup)
  • astc_decomp (a modified wheel without PIL dependency is provided on the repo)
  • construct

Compilation

Setup a virtual environment on the project folder and install the dependencies. Construct can be installed through pip install construct, however astc_decomp (if you want to compile a light weight version that doesn't require the entirety of PIL) needs to be installed from the modified wheel provided in the repo through pip install astc_decomp-1.0.3-cp37-cp37m-win_amd64.whl. If this wheel is not compatible, unzip the astc-decomp-clean.zip file and recompile it into a wheel suitable to your operating system and install said wheel.

The mainFactory.py file generates PyInstaller spec files, main.py files and the List_Compiler.bat. This file in turn generates the distributable executables for every game supported game version. The mainFactory builds this files based on main.py and main.spec. main.spec requires changing the path to the project to the correct location.

Tests

The file texTest.py needs to be edited to the correct path of the MHRise chunk and run at least once to generate a list of test cases for verifying the correct functioning of the MHRise side of the converter code.

Issue Reporting

The core purpose of this library is MHRise texture handling, other RE Engine games are provided as a "side bonus" from format similarities. In that spirit, issues with other formats will be given very low priority relative to MH Rise modding tool development and there should be no expectation of fixes for those variations of the formats. MH Rise issues should provide eitther a link to a problematic file or the game asset path and an explanation of what the issue is. Please check the following list of common issues before raising an issue:

  • Textures must have power of 2 dimensions on each dimension.
  • Textures with depth such as colour cubes are not supported.

License

GPL 3.0

  翻译: