Tweaking the model file - chocmake/MGSV-Custom-Texture-Path-Hex-Replacer GitHub Wiki

tweaking-the-model-file


Time for one of the simplest parts of the modding process. Now we have all the re-texturing complete we can tweak the model file using the automated batch script this Github repository was created for. This is to tell the model file to look for our new custom texture path instead of the original texture path it had been looking for previously.


Using the batch script

  1. Open the batch script and drag and drop the .fmdl file from within the Modded directory onto the window, then press Enter.
    • The script can actually be launched a few different ways, see this wiki page for alternative methods.
  2. Drag and drop the .ftex from within the Original directory onto the window, then press Enter.
  3. Drag and drop the .ftex from your custom path within the Modded directory onto the window, then press Enter.

script in practice-v0 3

Upon pressing Enter on the third step the hex editor program will quickly flash open to find and replace the hex strings as listed in the batch script window, from the original texture path to the new, custom one we made.

Assuming the steps were followed and the paths were valid it should state the FMDL file was successfully modified. After that we're finished with the FMDL model file, since it was only needed to change the texture path it looks for.


Next

Packing the mod archive

Almost ready to test in-game! If you encountered any problems see the Troubleshooting section of the wiki, otherwise the only thing left before testing it in the game is packaging it all up in a file usable in the popular SnakeBite mod manager. Onto the next section!.