STEAM GROUP
Garry's Mod Development Hub GmodModDH
STEAM GROUP
Garry's Mod Development Hub GmodModDH
28
IN-GAME
212
ONLINE
Founded
7 March, 2017
Language
English
This topic has been locked
Krillock 28 Mar, 2017 @ 7:30pm
can't understand why custom textures for playermodel isn't showing up after recompiling mdl file.
im super frustrated that i spen't an entire day trying to edit the mdl to make it work with a renamed texture (so that it doesn't conflict with the original named texture) only for it to have no texture in the end, as if i didn't assign the directory in the .qc file at all!
I have the proper directories in the qc file, i also tried recompiling with crowbar on both the hl2 and gmod (Source SDK Base 2013 Multiplayer) settings but still to no avail. here is the qc file that i edited.

" // Created by Crowbar 0.38.0.0

$ModelName "player/jantrooper/cctrooper.mdl"

$BodyGroup "janitor trooper"
{
studio "cctrooper_reference.smd"
}


$SurfaceProp "flesh"

$Contents "solid"

$MaxEyeDeflection 90

$CDMaterials "models\jantrooper\"

$Attachment "mouth" "ValveBiped.Bip01_Head1" 0.6 -5.5 0 rotate 0 -80 -90
$Attachment "chest" "ValveBiped.Bip01_Spine2" 5 4 0 rotate 0 90 90
$Attachment "forward" "ValveBiped.forward" 0 0 0 rotate 0 0 0
$Attachment "anim_attachment_RH" "ValveBiped.Anim_Attachment_RH" 0 0 0 rotate -90 -90 0
$Attachment "anim_attachment_LH" "ValveBiped.Anim_Attachment_LH" 0 0 0 rotate -90 -90 0
$Attachment "anim_attachment_head" "ValveBiped.Bip01_Head1" 0 0 0 rotate -90 -90 0

$CBox 0 0 0 0 0 0

$BBox -6.655 -26.362 -2.689 7.265 26.348 74.218

$BoneMerge "ValveBiped.Bip01_Pelvis"
$BoneMerge "ValveBiped.Bip01_Spine"
$BoneMerge "ValveBiped.Bip01_Spine1"
$BoneMerge "ValveBiped.Bip01_Spine2"
$BoneMerge "ValveBiped.Bip01_Spine4"
$BoneMerge "ValveBiped.Bip01_R_Clavicle"
$BoneMerge "ValveBiped.Bip01_R_UpperArm"
$BoneMerge "ValveBiped.Bip01_R_Forearm"
$BoneMerge "ValveBiped.Bip01_R_Hand"
$BoneMerge "ValveBiped.Anim_Attachment_RH"

$ProceduralBones "cctrooper.vrd"


$Sequence "ragdoll" {
"cctrooper_anims\ragdoll.smd"
activity "ACT_DIERAGDOLL" 1
fadein 0.2
fadeout 0.2
fps 30
}

$IncludeModel "m_anm.mdl"

$IKChain "rhand" "ValveBiped.Bip01_R_Hand" knee 0.707 0.707 0
$IKChain "lhand" "ValveBiped.Bip01_L_Hand" knee 0.707 0.707 0
$IKChain "rfoot" "ValveBiped.Bip01_R_Foot" knee 0.707 -0.707 0
$IKChain "lfoot" "ValveBiped.Bip01_L_Foot" knee 0.707 -0.707 0

$IKAutoPlayLock "rfoot" 1 0.1
$IKAutoPlayLock "lfoot" 1 0.1

$CollisionJoints "cctrooper_physics.smd"
{
$mass 0
$inertia 10
$damping 0.01
$rotdamping 1.5
$rootbone "valvebiped.bip01_pelvis"


$jointconstrain "ValveBiped.Bip01_L_Thigh" x limit -12 12 0
$jointconstrain "ValveBiped.Bip01_L_Thigh" y limit -73 6 0
$jointconstrain "ValveBiped.Bip01_L_Thigh" z limit -93 30 0

$jointconstrain "ValveBiped.Bip01_L_Calf" x limit 0 0 0
$jointconstrain "ValveBiped.Bip01_L_Calf" y limit 0 0 0
$jointconstrain "ValveBiped.Bip01_L_Calf" z limit -8 126 0

$jointconstrain "ValveBiped.Bip01_R_Thigh" x limit -12 12 0
$jointconstrain "ValveBiped.Bip01_R_Thigh" y limit -8 75 0
$jointconstrain "ValveBiped.Bip01_R_Thigh" z limit -97 32 0

$jointconstrain "ValveBiped.Bip01_R_Calf" x limit 0 0 0
$jointconstrain "ValveBiped.Bip01_R_Calf" y limit 0 0 0
$jointconstrain "ValveBiped.Bip01_R_Calf" z limit -12 126 0

$jointconstrain "ValveBiped.Bip01_R_Foot" x limit 0 0 0
$jointconstrain "ValveBiped.Bip01_R_Foot" y limit -25 6 0
$jointconstrain "ValveBiped.Bip01_R_Foot" z limit -15 35 0

$jointconstrain "ValveBiped.Bip01_Spine2" x limit -48 48 0
$jointconstrain "ValveBiped.Bip01_Spine2" y limit -25 25 0
$jointconstrain "ValveBiped.Bip01_Spine2" z limit -25 50 0

$jointconstrain "ValveBiped.Bip01_L_UpperArm" x limit -30 30 0
$jointconstrain "ValveBiped.Bip01_L_UpperArm" y limit -95 84 0
$jointconstrain "ValveBiped.Bip01_L_UpperArm" z limit -86 26 0

$jointconstrain "ValveBiped.Bip01_L_Forearm" x limit 0 0 0
$jointconstrain "ValveBiped.Bip01_L_Forearm" y limit 0 0 0
$jointconstrain "ValveBiped.Bip01_L_Forearm" z limit -149 4 0

$jointconstrain "ValveBiped.Bip01_R_UpperArm" x limit -39 39 0
$jointconstrain "ValveBiped.Bip01_R_UpperArm" y limit -79 95 0
$jointconstrain "ValveBiped.Bip01_R_UpperArm" z limit -93 23 0

$jointconstrain "ValveBiped.Bip01_R_Forearm" x limit 0 0 0
$jointconstrain "ValveBiped.Bip01_R_Forearm" y limit 0 0 0
$jointconstrain "ValveBiped.Bip01_R_Forearm" z limit -149 4 0

$jointconstrain "ValveBiped.Bip01_R_Hand" x limit -60 60 0
$jointconstrain "ValveBiped.Bip01_R_Hand" y limit 0 0 0
$jointconstrain "ValveBiped.Bip01_R_Hand" z limit -57 70 0

$jointconstrain "ValveBiped.Bip01_Head1" x limit -20 20 0
$jointconstrain "ValveBiped.Bip01_Head1" y limit -25 25 0
$jointconstrain "ValveBiped.Bip01_Head1" z limit -13 30 0

$jointconstrain "ValveBiped.Bip01_L_Hand" x limit -37 37 0
$jointconstrain "ValveBiped.Bip01_L_Hand" y limit 0 0 0
$jointconstrain "ValveBiped.Bip01_L_Hand" z limit -57 59 0

$jointconstrain "ValveBiped.Bip01_L_Foot" x limit 0 0 0
$jointconstrain "ValveBiped.Bip01_L_Foot" y limit -19 19 0
$jointconstrain "ValveBiped.Bip01_L_Foot" z limit -15 35 0
}

$CollisionText
{
animatedfriction
{
"animfrictionmin" "1.000000"
"animfrictionmax" "400.000000"
"animfrictiontimein" "0.500000"
"animfrictiontimeout" "0.300000"
"animfrictiontimehold" "0.000000"
}
editparams
{
"rootname" "valvebiped.bip01_pelvis"
"totalmass" "90.000000"
"jointmerge" "valvebiped.bip01_pelvis,valvebiped.bip01"
"jointmerge" "valvebiped.bip01_pelvis,valvebiped.bip01_spine1"
}
}
< >
Showing 1-12 of 12 comments
Arden 28 Mar, 2017 @ 7:40pm 
are you sure you have the textures in the right folders?
Arden 28 Mar, 2017 @ 7:40pm 
also are you sure they match the texture names shown in blender?
Krillock 28 Mar, 2017 @ 7:50pm 
Originally posted by Kalix:
are you sure you have the textures in the right folders?
yes i've done it at least 3 times by now.


Originally posted by Kalix:
also are you sure they match the texture names shown in blender?
i've never opened anything in blender, do i need to in order to link the new texture with the the model? do the model files only use a specific name for their texture that can only be edited from blender? if so which files do i need to open in blender?
Krillock 28 Mar, 2017 @ 8:12pm 
ive just tried decompiling and recompiling the mdl of a working playermodel as a control test. and it still works so it's not that. im at a loss of ideas about what it could be.
Krillock 28 Mar, 2017 @ 10:05pm 
Originally posted by Kalix:
changed the name of the materials in the model's reference smd file in blender, still no texture.
Sono 28 Mar, 2017 @ 11:24pm 
Have you edited the name of the textures within the VMT, as well as the paths within the VMT?
Arden 29 Mar, 2017 @ 4:21am 
If you showed screenshots, we could help better! :D
Krillock 29 Mar, 2017 @ 3:08pm 
Originally posted by Sono:
Originally posted by Kalix:

i think i figured out that i can't change the smd file's texture and material names, because when i import the smd file with blender there is no uv map nor texture name, there is the material name though. guess ill just have to name the .vmf and .vtf the same as the original. maybe cause the materials and uv map were done in a different modeling software but i can't say for sure why importing into blender doesn't show the texture map.
Krillock 29 Mar, 2017 @ 3:25pm 
Originally posted by Kalix:
If you showed screenshots, we could help better! :D
lol ill send you the files, i give up, you can publish it if you show me what im doing wrong. gimmie ur discord.
nvm discord doesn't accept those files.
Last edited by Krillock; 29 Mar, 2017 @ 6:54pm
Krillock 29 Mar, 2017 @ 7:07pm 
Originally posted by Sono:
Have you edited the name of the textures within the VMT, as well as the paths within the VMT?
i think i forgot to edit the paths within the vmt is why it wasn't working
Krillock 29 Mar, 2017 @ 7:08pm 
:steamfacepalm::rfacepalm::conwayfacepalm:
Arden 29 Mar, 2017 @ 7:49pm 
rip xD
< >
Showing 1-12 of 12 comments
Per page: 1530 50