A python scripts for importing Source 1 assets such as materials, models, and particle effects into Source 2

Set of scripts for importing Source 1 assets such as materials, models, and particle effects into Source 2. Inspired by Valve’s own source1import.exe (written in C++ and Perl), this one is in Python.

Requires:

Python 3.9
python -m pip install -r requirements.txt

Installing:

Download as ZIP and Extract
Open folder, press Ctrl + L, enter cmd and run the following commands

python -m pip install -r requirements.txt
cd utils

All set. Use python materials_import.py --help or read below examples to get started.

Usage

Scripts are launched via command line, and as such need command line arguments:

-i

This should be an absolute path pointing into a source1 game directory containing gameinfo.txt
-e

Path to source2 mod. Dir may or may not contain gameinfo.gi defining Source1Import { }. Modname (e.g. -e portal2_imported) instead of absolute

 

 

 

To finish reading, please visit source site