About This File
This script changes the texture type of a belt buckle m2 to "hardcoded", so you can attach it as a spell in WotLK.
Requires 010 editor.
How it works:
-Put the models you want to modify inside the folder called "Models".
-Run "MassBuckleTextureHardcoder.bat" and wait
It copies the name of your current model and creates a texture path with the same name. If your model is called "Buckle_pinkunicorn" it will create a path called "Item\ObjectComponents\Waist\buckle_pinkunicorn.blp".
This script only works if your model has "BUCKLE_" at the start of its name.
If the model has multiple texture variations, just change its name and a different texture path will be created for that specific file. Example:
Buckle_Leather_RaidMonk_N_01.m2 has 3 textures:
If you wish to have all 3 variations, copy the model and change the name of its copies to "Buckle_Leather_RaidMonk_N_01Blue.m2" and "Buckle_Leather_RaidMonk_N_01Red.m2" so the path matches.
To make this script work there must be an entry for 010 editor in environment variables (this allows windows to launch 010 editor through the cmd window, otherwise it won't work):
-Right click on My computer -> properties -> advanced system settings -> environment variables -> Path
-Add your 010 editor directory to the list separated from the rest of the entries by a ";" (Example: ;C:\Program Files (x86)\010 Editor)
(Detailed guide on this video)