Giter Site home page Giter Site logo

source1import's Introduction

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.

Fork of the popular long-standing source2utils tool.

Usage

Note:

  • Make sure to convert textures before materials.
  • Make sure to move the entire s1 models folder to content/ then run the script.
  • 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.
    • It suggests that your s1 files be in game/<modname> and imported files be in content/hlvr_addons/<modname>_imported โ€“ you will get correct texture scale and fixed up entities only that way.

Download app from Releases.
The app can be slow to open up, but has no prerequisites. If you want to make edits to the scripts & have Python installed, run the advanced way by downloading the code.

Advanced Usage:

CLI:

cd utils
python scripts_import.py   -i "C:/.../Team Fortress 2/tf" -e "D:/Games/steamapps/common/sbox/addons/tf_source2"
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>.
  • [filter] Optionally a path at the end can be added as a filter.

Requirements:

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

Results

* bsp not supported yet, converted via hammer 5

source1import's People

Contributors

kristiker avatar caseytube avatar alpynedreams avatar rectus avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.