Coder Social home page Coder Social logo

mrglaster / s2gconverter Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 5.0 2.93 MB

Python utility converting models from Source engine to GoldSource engine. This utility can convert models with any number of polygons.

Python 100.00%
source goldsrc goldsource valve cs hl python model convert converter

s2gconverter's Introduction

S2GConverter

Python utility converting models from Source engine to GoldSource engine. This utility can convert models with any number of polygons and animations.

How to use?

  1. Install required python package
pip install Pillow
  1. Prepare folder with model files. Create a new folder and copy there all files using by model. These are:

    1. .mdl file
    2. .vmt files
    3. .vtf files
    4. .vtx file
    5. .vvd file
  2. Execute python script with the cmd

python S2GConverter.py -i Path\To\The\Model.mdl
  1. Find result in the folder you created at the start. It will be: your_model_name_goldsource.mdl

Which models aren't supported?

There are two situations yet, when the model can't be converted. These are:

  1. The model contains sequences larger, than 64Kb.
  2. The model has 129 and more bones.

Results examples

alt text

Credits and Links

  1. Дядя Миша's studiomdl.exe https://hlfx.ru/forum/showthread.php?s=&threadid=5237
  2. VTFLib - https://nemstools.github.io/subpages/Comments/VTFEdit_v1.3.3_Full-page2.html#p238
  3. Sources of models demonstrated here
    1. Serious Sam 2 SWEPS: https://steamcommunity.com/sharedfiles/filedetails/?id=503138986
    2. DOOM Eternal NPCs: https://steamcommunity.com/sharedfiles/filedetails/?id=2295322924
    3. Dark Souls NPCs reworked: https://steamcommunity.com/sharedfiles/filedetails/?id=1254104064

Contacts

if you have questions about usage / you encounter a model that the utility was unable to process / you have another problems, my contacts are:

  1. E-Mail: [email protected]
  2. Steam: https://steamcommunity.com/id/mrglaster
  3. VK: https://vk.com/pristavka2013

s2gconverter's People

Contributors

mrglaster avatar pristavka-egor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

s2gconverter's Issues

Cant start app

can't start app with command
python S2GConverter.py -input v_javelin_swep.mdl

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.