STEAM GROUP
Crowbar [Source Engine Modding Tool] CrowbarTool
STEAM GROUP
Crowbar [Source Engine Modding Tool] CrowbarTool
1,361
IN-GAME
8,405
ONLINE
Founded
26 October, 2013
Language
English
This topic has been locked
Zeugziumy 29 Apr, 2015 @ 10:21am
[NOTABUG] (TF2) $cdmaterials not showing after decompilation on some cases
Pretty much what the title says. After I decompile a .mdl file, the $cdmaterials doesn't show up, and if I compile it again, it will have missing textures on HLMV or TF2. This doesn't happen with all models. These are the ones (that I tested, may not the only ones) that the $cdmaterials didn't show up:

Freedom Staff (c_tw_eagle.mdl)
Grappling Hook (c_grappling_hook.mdl)
Grappling Hook Projectile (c_grapple_proj.mdl)

I've tried just now decompiling a model that had no problems on the past and it was all ok, the $cdmaterials was showing up just fine. The model I've tried was for the Aviator Assassin (short2014_deadhead.mdl).

I'm able to just add the missing $cdmaterials and the path where the .vmt to fix it, though. That's what I did for the Grappling Hook and its projectile.

Thanks.
Last edited by ZeqMacaw; 7 Aug, 2015 @ 9:14pm
< >
Showing 1-3 of 3 comments
ZeqMacaw 7 Aug, 2015 @ 9:13pm 
I checked "short2014_deadhead.mdl" and ""c_tw_eagle.mdl" in both version 0.24 and 0.29. There is no bug here. It is a misunderstanding of how $CDMaterials and the material names in the SMD files work. Recompiling without any changes to the decompiled files shows the models with textures in HLMV just fine.

Sometimes model mesh SMD files have the full path for materials and do not need the $CDMaterials line in the QC file. The "c_tw_eagle.mdl" is an example.

I know having full path for materials in SMD files is not how most modders would do it, but Crowbar writes what it finds. I am considering changing Crowbar to write out $CDMaterials and material lines in SMD files similarly to the way it did in some previous versions, but some bugs with that other way need fixing.
Zeugziumy 7 Aug, 2015 @ 10:34pm 
Not for me, the "bug" still persists. This is how the .qc file looks like after decompiling:

// Created by Crowbar 0.19.0.0

$modelname "weapons/c_models/c_tw_eagle/c_tw_eagle.mdl"

$bodygroup "body"
{
studio "c_tw_eagle_reference.smd"
}

$lod 15
{
replacemodel "c_tw_eagle_reference.smd" "c_tw_eagle_c_tw_eagle_lod1.smd"
}
$lod 30
{
replacemodel "c_tw_eagle_reference.smd" "c_tw_eagle_c_tw_eagle_lod2.smd"
}


$surfaceprop "plastic"

$contents "solid"





$sequence "ref" "c_tw_eagle_anims\ref.smd" {
fps 30
}

$collisionmodel "c_tw_eagle_physics.smd"
{
$mass 4.2
$inertia 1
$damping 0
$rotdamping 0

}

I'm using a very old version, so I'll try updating it.
Zeugziumy 7 Aug, 2015 @ 10:38pm 
Yea, it fixed on the 0.29 version. Thanks.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: 29 Apr, 2015 @ 10:21am
Posts: 3