Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Model after GoldSrc .mdl import #246

Closed
EditaNEmilis opened this issue Nov 26, 2023 · 3 comments
Closed

Missing Model after GoldSrc .mdl import #246

EditaNEmilis opened this issue Nov 26, 2023 · 3 comments

Comments

@EditaNEmilis
Copy link

Tried to import a Gargantua model from Half-Life using the GoldSrc model importer. Only got the armature rig but no model.

Console Import Log

[INFO]--[GoldSrc::Operators:execute]: Loading 0/1
[INFO]--[Shaders::goldsrc_shader:create_nodes]: Creating material 'garg_GARG_Pelvis1.bmp'
Traceback (most recent call last):
  File "C:\Users\raman\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\SourceIO\blender_bindings\operators\goldsrc_operators.py", line 71, in execute
    import_model(Path(file.name).stem,
  File "C:\Users\raman\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\SourceIO\blender_bindings\goldsrc\__init__.py", line 20, in import_model
    return import_model_v10(mdl_buffer, mdl_texture_file, scale, parent_collection, disable_collection_sort,
  File "C:\Users\raman\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\SourceIO\blender_bindings\goldsrc\mdl_v10\import_mdl.py", line 156, in import_model
    remap[model_material_index] = load_material(Path(mdl.header.name).stem, model_texture_info,
  File "C:\Users\raman\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\SourceIO\blender_bindings\goldsrc\mdl_v10\import_mdl.py", line 189, in load_material
    bpy_material.create_nodes(material_name, model_name=model_name)
  File "C:\Users\raman\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\SourceIO\blender_bindings\material_loader\shaders\goldsrc_shaders\goldsrc_shader.py", line 39, in create_nodes
    shader.inputs['Specular'].default_value = 0
KeyError: 'bpy_prop_collection[key]: key "Specular" not found'

Image Proof, I guess

@Cianez
Copy link

Cianez commented Nov 27, 2023

Same here. Using Blender 4.0.1.

Goldsrc models only import the armature but not the mesh.
Goldsrc maps only import a couple entities but no geometry at all.

immagine
immagine

@REDxEYE
Copy link
Owner

REDxEYE commented Nov 27, 2023

Blender 4.0 is not supported

@REDxEYE REDxEYE closed this as completed Nov 27, 2023
@Cianez
Copy link

Cianez commented Nov 27, 2023

Blender 4.0 is not supported

Downgraded to 3.4 and it's working now. Thanks.
immagine
Hope you add 4.0 support in the future. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants