WHY this error???


[BOSS]Junior
05-13-2004, 09:09 AM
grabbing .\/p_stg44_ref.smd
grabbing .\/p_stg44_idle.smd
grabbing .\/p_stg44_shoot.smd
BMP ak74.bmp [512 255] (100%) 131328 bytes
************ ERROR ************
unknown attachment link 'skin'

why???
I think I did all the stuff right

Trp. Jed
05-13-2004, 10:39 AM
Post the QC file.

- Jed

[BOSS]Junior
05-13-2004, 10:46 AM
/*
================================================== ============================

QC script generated by Half-Life MDL Decompiler v1.01.
2002, Kratisto. Based on code from Valve's HL SDK.

p_stg44.qc
Original model name: u:\dod\models\weapon\p_models\mdl\p_stg44.mdl

================================================== ============================
*/

$modelname "p_stg44.mdl"
$cd ".\"
$cdtexture ".\"
$scale 1.0


$bbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
$cbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000

$eyeposition 0.000000 0.000000 0.000000

// reference meshes
$body studio "p_stg44_ref"


// 2 attachments
$attachment 0 "skin" 0.000000 -25.000000 4.000000
$attachment 1 "skin" 0.000000 -8.000000 6.000000

// 0 bone controllers

// 1 hit boxes
$hbox 0 "skin" -0.610000 -25.110001 -7.060000 0.880000 11.600000 7.000000

// 2 animation sequences
$sequence "p_stg44_idle" "p_stg44_idle" fps 1
$sequence "p_stg44_shoot" "p_stg44_shoot" fps 100 { event 5001 0 "31" } { event 6001 0 "1" }

// End of QC file.

Effexx
05-14-2004, 01:21 AM
Originally posted by [BOSS]Junior

BMP ak74.bmp [512 255] (100%) 131328 bytes



Ok.. It's been awhile since I did any compiling, but aren't those 2 numbers in brackets the image's dimensions ? Shouldn't that second number be a power of 2 (like 256) ? Or is that the images color depth?


...

{tBs}IamDoydy
05-14-2004, 03:02 AM
Originally posted by [BOSS]Junior


// 2 attachments
$attachment 0 "skin" 0.000000 -25.000000 4.000000
$attachment 1 "skin" 0.000000 -8.000000 6.000000

// End of QC file.

i am guessing here is your problem, although i can't think why. jed can probably figure it out :p maybe try deleting it, i dont know really.

Trp. Jed
05-14-2004, 10:02 AM
Well basically looking at the error and your QC the problem is you dont have a bone called "skin" in your models skeleton.

Attachments are basically a point relative to a bone, so from your QC:

$attachment 0 "skin" 0.000000 -25.000000 4.000000

Its wanting to make an attachment point off the bone "skin" at position X 0, Y -25, Z 4.

The message, "unknown attachment link 'skin'" means it cant find a bone with that name to make the attatchment to.

Looking at the QC it seems your making a p_model so you'll need the attachments so check your skeleton or another p_model for reference for the correct bone name.

I'm almost willing to bet a dollar you imported the SMD into Milkshape and didn't turn "Rename bones" off and its replaced all the correct bone names with Bone01, Bone02, etc.

- Jed

[BOSS]Junior
05-14-2004, 10:40 AM
I'm almost willing to bet a dollar you imported the SMD into Milkshape and didn't turn "Rename bones" off and its replaced all the correct bone names with Bone01, Bone02, etc.

Just won a dollar and thx Jed will try later just new for me with rifles and stuff like that but thx

[BOSS]Junior
05-15-2004, 08:45 AM
Ok Jed i try ask said there was a bone call skin but can you post how the QC have to look plz iam lost at this...

Trp. Jed
05-15-2004, 09:05 AM
Well theres nothing wrong with your QC, its exactly the same as the default one.

If its still complaining about there not being a bone called skin, check the nodes list in ALL of the SMD files - thats ref, shoot and idle. They all need to have the same names and layout or it wont work.

Basically it should look something like:

nodes
0 "Bip01" -1
1 "Bip01 Pelvis" 0
2 "Bip01 Spine" 1
3 "Bip01 Spine1" 2
4 "Bip01 Spine2" 3
5 "Bip01 Spine3" 4
6 "Bip01 Neck" 5
7 "Bip01 R Clavicle" 6
8 "Bip01 R UpperArm" 7
9 "Bip01 R Forearm" 8
10 "Bip01 R Hand" 9
11 "skin" 10
end


- Jed

[BOSS]Junior
05-25-2004, 03:44 PM
Can get 1 to host this I can't get it to work.
Can some 1 try to get this to work plzzzzzz

[BOSS]Junior
05-25-2004, 03:48 PM
This is them i will like to get don as p

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.