Set of scripts for importing Source 1 assets such as materials, models, and particle effects into Source 2. Inspired by Valve's own import utility also named source1import.
The main difference is this one is open source so you can customize it (i.e. use different shader sets).
Based off of source2utils.
Warning
This tool has a number of disadvantages over the built-in CS2 Import Scripts. Including:
- No PBR material conversion. So your textures will look dark and flat.
- No map converter.
- Cannot filter assets by map.
Note
However there may be some features you might find useful such as:
- Support for texture ANIMATION
- Support for SKYBOX materials
- Support for material proxies (quite basic, but this one for example works)
Download from here: Releases
- Make sure to move the entire s1
models
folder tocontent/
before importing. - Make sure to move the entire s1
sound
folder tocontent/
and rename it tosounds
. No import necessary. - Make sure to have
gameinfo.txt
present in Import Game. - Make sure to read this guide for importing map files.
- Materials won't be PBR ready. so you need to use some other post-conversion tool.
cd utils
python scripts_import.py -i "C:/.../Team Fortress 2/tf" -e "D:/Games/steamapps/common/sbox/addons/tf_source2" -b sbox
python particles_import.py -i "C:/.../Portal 2/portal2" -e "C:/.../Half-Life Alyx/game/hlvr_addons/portal2"
python scenes_import.py -i "C:/.../Half-Life Alyx/game/lostcoast" -e hlvr_addons/lostcoast
python models_import.py -i "C:/.../Half-Life Alyx/game/l4d2" -e l4d2_source2
python materials_import.py -i "C:/.../Half-Life Alyx/game/ep2" -e hlvr "materials/skybox"
- -i <dir> This should be an absolute path pointing into a source1 game directory containing gameinfo.txt
- -e <dir/modname> Path to source2 mod/addon folder. <modname> (short notation also allowed e.g.
-e portal2_imported
, provided the game folders sit next to eachother) - -b <branch> Switch to a different branch. Default is
hlvr
. Other branches includesteamvr
adj
sbox
cs2
dota2
, ordered by magnitude of support. - [filter] Optionally a path at the end can be added as a filter.
- Python >= 3.10
pip install -r requirements.txt