Forum Thread
  Posts  
New weapon |Source Engine| (Forums : 3D Modeling & Animating : New weapon |Source Engine|) Locked
Thread Options
Feb 1 2009 Anchor

I don't see my weapon in hl2 mod :(
User Posted Image
This is my path model and materials ( hand, crowbar )

Model

SourceMods\my mod*\models\Weapons\v_crowbar.mdl and W_crowbar.mdl

Materials

a)Hand

SourceMods\my mod*\materials\models\Weapons\V_hand\v_hand_sheet.vtf and vmt

b)Crowbar

SourceMods\ancient rome\materials\models\Weapons\v_crowbar\v_crowbar.vtf and vmt

This is my qc file

$cd "C:\Documents and Settings\User*\Desktop\Hands crowbar\nowy miecz"
$modelname "Weapons/v_crowbar.mdl"
$model "studio" "crowbar_reference.smd"
$cdmaterials "models\Weapons\V_hand\"
$cdmaterials "models\props_wasteland\"
$hboxset "default"
// Model uses material "v_hand_sheet.vmt"
// Model uses material "wood_fence01a_skin2.vmt"
$attachment "0" "ValveBiped.Tip" 0.00 0.00 -0.00 rotate 0.00 0.00 -0.00
$surfaceprop "default"
$illumposition 8.644 25.370 -15.379
$sequence idle01 "idle01" loop ACT_VM_IDLE 1 fps 30.00
$sequence draw "draw" ACT_VM_DRAW 1 fps 30.00
$sequence misscenter1 "misscenter1" ACT_VM_MISSCENTER 1 fps 30.00
$sequence misscenter2 "misscenter2" ACT_VM_MISSCENTER 1 fps 30.00
$sequence hitcenter1 "hitcenter1" ACT_VM_HITCENTER 1 fps 30.00
$sequence hitcenter2 "hitcenter2" ACT_VM_HITCENTER 1 fps 30.00
$sequence hitcenter3 "hitcenter3" ACT_VM_HITCENTER 1 fps 30.00
$sequence hitkill1 "hitkill1" ACT_VM_HITKILL 1 fps 30.00
$sequence holster "holster" ACT_VM_HOLSTER 1 fps 30.00

What is it? :confused:

Feb 1 2009 Anchor

Start the mod with -dev -console and check out the console. BTW the hand and the crowbar material is from other mod folder? Thats a material path problem i think.

Edited by: Ashkandi

Feb 1 2009 Anchor

No material have in my mod folder, :( maybe material path problem :)

UPDATE THREAD
This is my vmt weapons file

"VertexlitGeneric"
{
    "$basetexture" "models\props_wasteland\wood_fence01a_skin2"
    "$bumpmap" "models\props_wasteland\wood_fence01a_skin2_normal"
    "$normalmapalphaenvmapmask" 1
    "$envmap" "env_cubemap"
    "$envmapsaturation" .5
    "$envmapcontrast" 1
} 

Any ideas:?

holloweddarkness
holloweddarkness Working to Learn.
Feb 1 2009 Anchor

seems to be a reference of where the model is to me. does it display in viewmodel mode in modelviewer?

Feb 2 2009 Anchor

The problem probably is where the model is placed. In your 3d program, create a camera that is at center, then rotate the camera so that it faces in the same direction as in hl2. Then place the crowbar in the right position.

Feb 11 2009 Anchor

My model in hlmv
User Posted Image
View model in 3D program, my model is right position
User Posted Image
Why isn't good in hl2?
No qc file problem?

$cd "C:\Documents and Settings\Mama\Desktop\Hands crowbar\nowy miecz"
$modelname "Weapons/v_crowbar.mdl"
$model "studio" "crowbar_reference.smd"
$cdmaterials "models\Weapons\"
$cdmaterials "models\Weapons\"
$hboxset "default"
// Model uses material "v_hand_sheet.vmt"
// Model uses material "wood_fence01a_skin2.vmt"
$attachment "0" "ValveBiped.Tip" 0.00 0.00 -0.00 rotate 0.00 0.00 -0.00
$surfaceprop "default"
$illumposition 8.644 25.370 -15.379
$sequence idle01 "idle01" loop ACT_VM_IDLE 1 fps 30.00 
$sequence draw "draw" ACT_VM_DRAW 1 fps 30.00
$sequence misscenter1 "misscenter1" ACT_VM_MISSCENTER 1 fps 30.00
$sequence misscenter2 "misscenter2" ACT_VM_MISSCENTER 1 fps 30.00
$sequence hitcenter1 "hitcenter1" ACT_VM_HITCENTER 1 fps 30.00
$sequence hitcenter2 "hitcenter2" ACT_VM_HITCENTER 1 fps 30.00
$sequence hitcenter3 "hitcenter3" ACT_VM_HITCENTER 1 fps 30.00
$sequence hitkill1 "hitkill1" ACT_VM_HITKILL 1 fps 30.00
$sequence holster "holster" ACT_VM_HOLSTER 1 fps 30.00

What is it? :(

M@ty
M@ty Environment Artist - TFU
Feb 13 2009 Anchor

Firstly the first line of your qc - remove those spaces! Source doesn't like spaces in file names. Rename your folder "nowy_miecz" and put everything in a folder on your C drive for ease, so C:\model_source_files\crowbar\. Make sure ALL FILE NAMES HAVE NO SPACES EITHER.

Then, open it in modelviewer.
In modelviewer go into:

Options->Center Model - (I THINK thats the option anyway, I dont have Steam to hand to check properly).

If your model loads in model viewer but wont display in that camera mode it is because your camera is off (possibly a result of decompiling then editing). You'll need to just move, export, recompile and repeat until its in view in that camera. Hope that helps.

Edited by: M@ty

Feb 15 2009 Anchor

Add

$origin -2 -10 66

under the $illumposition command. If all is well, it should show up. If it does show up, but in a totally wrong place, just adjust the keys.
I'm surprised no-one else has picked up on that missing command yet, especially M@ty, the "professional".
And I know, that command isnt in the decompiled weapon's .qcs. But I had the exact same problem as you without it.

M@ty
M@ty Environment Artist - TFU
Feb 15 2009 Anchor

Aaagreen wrote:
I'm surprised no-one else has picked up on that missing command yet, especially M@ty, the "professional".


You don't even know what I'm "professional" in. I'm a modelling/lighting/rendering expert, UE3 licensee, developed on mutliple platforms (including the iPhone) and including shipped titles.

If you must know, I used to mod Source games a few years back and Gold Source before that (I was modding when you were 4 years old), but I haven't worked on Source in a while however. Hence, I'm a little rusty on parameters. Don't be all like that; it doesn't look good. This is a place for help. sharing knowledge and learning, not having a dig. Keep it friendly.

Edited by: M@ty

Feb 15 2009 Anchor

Sorry, I just couldnt believe no-one picked out a single command in a communiy full of proffessional modders.

I'm barely classable as a teenager, nevermind proffessional.

Wraiyth
Wraiyth That Guy Who Does Those Things With The Stuff
Feb 15 2009 Anchor

Aaagreen wrote: Sorry, I just couldnt believe no-one picked out a single command in a communiy full of proffessional modders.

I'm barely classable as a teenager, nevermind proffessional.

Not everyone knows Soure QC commands like the back of their hand. Why dont you go and ask an Epic or Blizzard employee about this problem? I'm sure they all class as professionals and wouldn't have ANY idea how to answer it. FYI there are very few Source modders around the place. M@ty is right, keep it friendly, no need to have a crack at people

Mar 8 2009 Anchor

QC

$cd "C:\Documents_and_Settings\USer\Desktop\Hands crowbar\nowy_miecz"
$modelname "Weapons/v_crowbar.mdl"
$model "studio" "crowbar_reference.smd"
$cdmaterials "models\Weapons\"
$cdmaterials "models\Weapons\"
$hboxset "default"
// Model uses material "v_hand_sheet.vmt"
// Model uses material "wood_fence01a_skin2.vmt"
$attachment "0" "ValveBiped.Tip" 0.00 0.00 -0.00 rotate 0.00 0.00 -0.00
$surfaceprop "default"
$illumposition 8.644 25.370 -15.379
$origin -2 -10 66
$sequence idle01 "idle01" loop ACT_VM_IDLE 1 fps 30.00 
$sequence draw "draw" ACT_VM_DRAW 1 fps 30.00
$sequence misscenter1 "misscenter1" ACT_VM_MISSCENTER 1 fps 30.00
$sequence misscenter2 "misscenter2" ACT_VM_MISSCENTER 1 fps 30.00
$sequence hitcenter1 "hitcenter1" ACT_VM_HITCENTER 1 fps 30.00
$sequence hitcenter2 "hitcenter2" ACT_VM_HITCENTER 1 fps 30.00
$sequence hitcenter3 "hitcenter3" ACT_VM_HITCENTER 1 fps 30.00
$sequence hitkill1 "hitkill1" ACT_VM_HITKILL 1 fps 30.00
$sequence holster "holster" ACT_VM_HOLSTER 1 fps 30.00 

Add $orgin -2 -10 66
In mod can't see my weapon (-)
In hlmv haven't this options (Options->Center Model)
Only Center View ;/

M@ty
M@ty Environment Artist - TFU
Mar 8 2009 Anchor

Then thats the one. Set the view to that, then look around, see where your model is in relation to where the cmaera is and adjust the origina values and recompile accordingly! =]

Mar 12 2009 Anchor

Well, in hlmv ( $orgin -2 -10 66 )
User Posted Image

Mar 14 2009 Anchor

can you still see it in the different sequences? - oh and in hlmv (if sdk is set on your mod) - you should see the texture.

  1. "models\Weapons\V_hand\"
  2. "models\props_wasteland\"

So your weapon texture is in wastelands? - Make sure its in sourcemods/yourmod/materials/models/props_wasteland? (IN your modelling program did you actually map that texture toyour model? Because that info goes into the exported smd - you'd at least have to map a texture of the same filename)

OH WAIT - your post says you use crowbar texture?, and neither of those points to the crowbar texture.

Mar 15 2009 Anchor

OK hogan_skoll
Thank you texture is gut
Now, i must change this $orgin x y z, becuse my model isn't on right postion ;/
Well, I change this
rotate 0.00 0.00 -0.00
$origin x y z
and there are no changes :(
I hate this XD
What is it?

Update Thread. Thank M@ty, Wraiyth, Aaagren, lynguistic, holloweddarkness, hogan_skoll and Ashkandi :)
Weapon is right position :)

Mar 17 2009 Anchor

Glad to be of assistance to furthering your Source modding knowledge.

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.