Thanks to visit codestin.com
Credit goes to github.com

Skip to content
 
 

Repository files navigation

source1import

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

Based off of source2utils.

Usage

Note:

  • Make sure to move the entire s1 models folder to content/ before importing.
  • Make sure to move the entire s1 sound folder to content/ and rename it to sounds.
  • Make sure to have gameinfo.txt present in Import Game.
  • Make sure to read this guide for importing map files.

Download: Releases

Extra:

  • Use this guide if you wish to upscale your decompiled textures.

Advanced Usage:

CLI:

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. <modname> (e.g. -e portal2_imported) instead of an absolute path will only work if the input folder -i is placed inside a source2 /game/ environment which also contains <modname>.
  • -b <branch> Switch to a different branch. Default is hlvr.
  • [filter] Optionally a path at the end can be added as a filter.

Requirements:

  • Python >= 3.10
  • pip install -r requirements.txt

Results

* bsp not supported yet, converted via hammer 5

About

Import Source game content into Source 2

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages