STEAM GROUP
Crowbar [Source Engine Modding Tool] CrowbarTool
STEAM GROUP
Crowbar [Source Engine Modding Tool] CrowbarTool
881
IN-GAME
6,777
ONLINE
Founded
October 26, 2013
Language
English
Matrix Sep 9, 2020 @ 9:59am
Need help please with Gmod model to CSS model
Hello!

I've been trying to import a Gmod model into CSS hammer editor for the past two days. I decompiled the .mdl using crowbar. Imported the .QC file into blender using the Source tool. The only thing i did in blender was add a material to the model data (single image), I used a 512*512 px Image of marble from texture.com. Exported it for source engine as a .smd. After that i edited the QC for the new model and then used Crowbar setup for CSS to compile using the edited .QC. I used VTFEdit using the same marble image to create a VMT and VTF (v7.2). Placed the newly compiled model into cstrike/models/DragonStatue and the VMT + VTF into cstrike/materials/models/DragonStatue - edited the VMT to have the same path. When testing in hlmv (model viewer for css) the model appears but has the pink and black texture with the error: ***ERROR*** Model attemted to load one or more VMTs it can't find. Shader: Can't load VMT.

I have spent two days going through many tutorials, youtube videos, other discussions (on this group), decompiled - re compiled several times, edited in blender several times, tried different textures, different VMT and QC code variations and i just cant get it to work... some help would really be appreciated. This is the link to the gmod model im trying to get into css: https://garrysmods.org/download/7170/dragon-statue


This is the .QC after decompiling::

// Created by Crowbar 0.68

$modelname "DragonStatue.mdl"

$bodygroup "studio"
{
studio "ds.smd"
}


$surfaceprop "watermelon"

$contents "solid"

$illumposition 36.553 50.886 93.567

$cdmaterials "\"

$cbox 0 0 0 0 0 0

$bbox -176.156 -59.26 0 74.383 132.367 187.266

$definebone "root" "" 0 0 0 0 0 0 0 0 0 0 0 0


$sequence "idle" {
"dragonstatue_anims\idle.smd"
fadein 0.2
fadeout 0.2
fps 1
loop
}

$collisionmodel "dragonstatue_physics.smd"
{
$mass 40734.82
$inertia 1
$damping 0
$rotdamping 0
$rootbone " "
$concave
$maxconvexpieces 1

}

$keyvalues
{
prop_data
{
"base" "Stone.Large"
}
}

This is what i edited the .qc to after texturing and exporting as a .smd in blender::

// Created by Crowbar 0.68

$modelname "DragonStu.mdl"

$bodygroup "studio"
{
studio "DragonStu.smd"
}


$surfaceprop "watermelon"

$contents "solid"

$illumposition 36.553 50.886 93.567

$cdmaterials "models/DragonStatue/marble"

$cbox 0 0 0 0 0 0

$bbox -176.156 -59.26 0 74.383 132.367 187.266

$definebone "root" "" 0 0 0 0 0 0 0 0 0 0 0 0


$sequence "idle" {
"DragonStu.smd"
fadein 0.2
fadeout 0.2
fps 1
loop
}

$collisionmodel "DragonStu.smd"
{
$mass 40734.82
$inertia 1
$damping 0
$rotdamping 0
$rootbone " "
$concave
$maxconvexpieces 1

}

This is the VMT for the marble texture im using::

"VertexLitGeneric"
{
$basetexture "models/DragonStatue/marble"

}
< >
Showing 1-3 of 3 comments
ZeqMacaw Sep 9, 2020 @ 4:21pm 
Relevant: "Placed [...] the VMT + VTF into cstrike/materials/models/DragonStatue"
Relevant: QC has this line:
$cdmaterials "models/DragonStatue/marble"

To fix, change the QC line to:
$cdmaterials "models/DragonStatue"

Explanation: QC file $cdmaterials should be the folder where the VMT files are. In the VMT file, the $basetexture should be the path and file name of the VTF file (which is correct, if the VTF file name is "marble.vtf").
Last edited by ZeqMacaw; Jun 17, 2024 @ 7:05pm
Matrix Sep 10, 2020 @ 5:29am 
It had to be something so simple... Thank you, its working now.
Moxie Jun 17, 2024 @ 3:27pm 
@ZeqMacaw THANK YOU OMG YOU SAVED ME FROM SOME MUCH SUFFER
< >
Showing 1-3 of 3 comments
Per page: 1530 50