Source 1 Material Porting
Is this method appropriate or does Material Editor support multiple files?
- Gather all of our materials in a folder with the default material structure - materials/*
- Convert .VTFs to .TGAs
- By using realpack/source2utils, convert our .VMTs to .VMATs
- Move the converted files to the content folder of your target add-on - steamapps/common/Half-Life Alyx/content/*/materials
Gather all of our materials in a folder with the default material structure:
By using a handy-dandy VTFEdit feature called “Convert folder”, we are going to batch convert all the .VTFs to .TGAs.
Open VTFEdit, choose Tools/Convert folder. Select the Input and Output folders, and copy the rest settings as shown.
Install Python 3 and download the realpack/source2utils repository as .zip.
Extract the .zip archive, open and go to source2utils/utils. By pressing File/Open Windows Power Shell on Windows Explorer, open Windows Powershell.
Once open, Install Pillow by entering this command: pip install Pillow
Once installed, start vmt_to_vmat.py by entering: python.exe .\vmt_to_vmat.py
You are now going to be asked to specify what folder would you like to convert. To get the valid format of the materials folder, select the materials folder by clicking once on it, and press the Copy Path button located in the Home tab on Windows Explorer.
You have just saved the path of the folder. Paste it into the Windows Power Shell window, but don’t forget to remove the quotation marks
D:\Users*\Desktop\css\materials, not "D:\Users*\Desktop\css\materials".
Would you like to overwrite any existing .vmat files? (y/n): - Y Would you like to overwrite any existing .tga files? (y/n): - Y What is your target shader? Valid Options: vr_complex (vr_standard support coming soon) - vr_complex ``` And you are done!
You are now going to notice a new folder: *_imported. It is going to contain all of the newly ported materials ready for Source 2! But we are still not done, we need to add them to the game!
To do so, copy the materials folder to your created add-ons folder or the game content folder located at steamapps/common/Half-Life Alyx/content/materials If done correctly, all of them should show up in the Source Workshop Tools Assets list!
cs_assault materials ported from Counter-Strike: Source.