I made this for my own use and figure that the other stadium makers may find it useful. It's a node.js app that goes through an MTL file and makes some adjustments to the file and to some files in the textures folder.
It does require you to be a little comfortable on the command line because I haven't packaged it as a stand-alone executable. It requires node.js and yarn to be accessible along your system path.
Code:
git clone https://github.com/eriqjaffe/mtlfixer && cd mtlfixer
yarn
cd /path/to/mtlfile
node ./path/to/script/index.js mtlfile.mtl (optional --night)
What it does:
- Create a backup of the mtl file.
- Parse the mtl file and replace matching text blocks* with the corresponding 3d audience texture block.
- Any texture files that end in "_day.jpg" will be converted to png format (which is required by OOTP), the jpg files will be deleted and the mtl file updated accordingly.
- Optionally create corresponding "_night" files for any "_day" files. This will overwrite any _night files that already exist in the textures folder!
- Write the updated mtl file.
https://github.com/eriqjaffe/mtlfixer
* - regular expressions are used to match the text blocks - I'm using the same crowd textures that silvam released years ago and that's what this is looking for. If it doesn't find the right blocks, it won't replace the crowds.