REDxEYE / Source2Converter

Toolset for converting Source1 models to Source2
https://discord.gg/XJvhzaXZf3
60 stars 10 forks source link

Doesn't convert #6

Closed Doogls closed 1 year ago

Doogls commented 1 year ago

After selecting the target folder. After selecting a folder with both models and models and materials of the first source - an error

Traceback (most recent call last): File "H:\Source2Converter-0.8\convert_model.py", line 254, in vmdl_file = convert_model(glob_file, output_folder, args.sbox, args.with_flex_rules) File "H:\Source2Converter-0.8\convert_model.py", line 57, in convert_model model_decompiler = ModelDecompiler(s1_model) File "H:\Source2Converter-0.8\SourceIO\library\source1\dmx\source1_to_dmx.py", line 420, in init self.mdl = MdlV49(self.mdl_file) TypeError: MdlV49.init() missing 16 required positional arguments: 'bones', 'skin_groups', 'materials', 'materials_paths', 'flex_names', 'flex_controllers', 'flex_ui_controllers', 'flex_rules', 'body_parts', 'attachments', 'anim_descs', 'sequences', 'animations', 'key_values_raw', 'key_values', and 'include_models'

REDxEYE commented 1 year ago

Download repositories of both projects instead of releases and use convert_model_v2.py instead of old one

Doogls commented 1 year ago

All downloaded from the attached repository. I use the instructions from the ReadMe

REDxEYE commented 1 year ago

You are using 0.8 release instead of master commit

Doogls commented 1 year ago

Error when i using convert_model_v2.py

Traceback (most recent call last): File "H:\Source2Converter-0.8\convert_model_v2.py", line 9, in from SourceIO.library.source1.dmx.source1_to_dmx import DmxModel2, get_slice ImportError: cannot import name 'DmxModel2' from 'SourceIO.library.source1.dmx.source1_to_dmx' (H:\Source2Converter-0.8\SourceIO\library\source1\dmx\source1_to_dmx.py)

REDxEYE commented 1 year ago

https://github.com/REDxEYE/Source2Converter/archive/refs/heads/master.zip https://github.com/REDxEYE/SourceIO/archive/refs/heads/master.zip

REDxEYE commented 1 year ago

Try with this version, they should work together

Doogls commented 1 year ago

Yes, after downloading everything from these links, everything worked, please update the ReadME. Thank you

REDxEYE commented 1 year ago

I'm working on the new release. It should address all the setup issues

Doogls commented 1 year ago

It will be great!)