• Model with skins not working.
    4 replies, posted
So, I made a model of door, and I want to use multiple skins, like Skin1,2,3 in hammer editor. But somehow they don't appear. [code] $modelname als/DOOR.mdl $scale 1.0 $body "Body" DOOR.smd $sequence idle "DOOR" fps 30 ACT_IDLE 1 $surfaceprop "metal" $cdmaterials "als/" $collisionmodel "DOOR_COL.smd" { $concave $mass 30 } $texturegroup "DOOR" { { "DOOR_BLACK" } { "DOOR_BLUE" } { "DOOR_GREEN" } { "DOOR_RED" } } [/code] My model name is DOOR.smd and collision model is DOOR_COL.smd It compiles fine everything works but it has only default skin the one I applied in 3ds max. So help me please, I don't want to make like 4 different models for each skin. By the way here is my materials folder: [IMG]http://i411.photobucket.com/albums/pp196/arleitiss/untitled-41.jpg[/IMG]
Could be that your materials folder is on your desktop.
no it works fine it just doesn't switch to other texture
[code] $modelname als/DOOR.mdl $scale 1.0 $body "Body" DOOR.smd $sequence idle "DOOR" fps 30 ACT_IDLE 1 $surfaceprop "metal" $cdmaterials "als/" $collisionmodel "DOOR_COL.smd" { $concave $mass 30 } [B]$texturegroup skinfamilies[/B] { { "DOOR_BLACK" } { "DOOR_BLUE" } { "DOOR_GREEN" } { "DOOR_RED" } } [/code] Use that instead.
oh, does that "skinfamilies" isn't like optional? I thought it is ;D [editline]01:31PM[/editline] Man I have to say it doesn't work. Still no result it just stays as default here is compile log [code] GUIStudioMDL 2.2/Source - © 2007 Neil 'Jed' Jedrzejewski - http://www.wunderboy.org/ *ERROR* EP1 tools path is not valid - use "Config" then "Set EP1 Tools Path..." from the menu to set it. Loaded QC file - "C:\Documents and Settings\Administrator\Desktop\als_door.qc" Created command line: "D:\Program Files\Steam\steamapps\arleitiss\sourcesdk\bin\orangebox\bin\studiomdl.exe" -game "d:\program files\steam\steamapps\arleitiss\half-life 2 episode two\ep2" -h -nop4 -nox360 "C:\Documents and Settings\Administrator\Desktop\als_door.qc" qdir: "c:\documents and settings\administrator\desktop\" gamedir: "d:\program files\steam\steamapps\arleitiss\half-life 2 episode two\ep2\" g_path: "C:\Documents and Settings\Administrator\Desktop\als_door.qc" Building binary model files... Working on "als_door.qc" SMD MODEL DOOR.smd SMD MODEL DOOR_COL.smd $hbox 0 "Box01" -24.00 -1.66 0.00 24.00 1.66 108.00 $hbox 0 "Box02" -19.85 -0.53 0.00 19.85 0.53 40.20 $hbox 0 "Box03" -19.20 -1.81 0.00 19.20 1.81 19.44 $hbox 0 "Loft01" -6.98 -2.64 -0.73 3.96 4.67 0.73 $hbox 0 "Loft02" -3.96 -4.67 -0.73 6.98 2.64 0.73 Model has 3 convex sub-parts Collision model completed. --------------------- writing d:\program files\steam\steamapps\arleitiss\half-life 2 episode two\ep2\models/als/DOOR.mdl: bones 2536 bytes (7) animations 228 bytes (1 anims) (1 frames) [0:00] sequences 244 bytes (1 seq) ik/pose 164 bytes eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) textures 508 bytes keyvalues 0 bytes bone transforms 1016 bytes Collision model volume 21569.80 in^3 collision 0 bytes total 5320 --------------------- writing d:\program files\steam\steamapps\arleitiss\half-life 2 episode two\ep2\models/als/DOOR.vvd: vertices 62112 bytes (1294 vertices) tangents 20704 bytes (1294 vertices) total 82880 bytes --------------------- Generating optimized mesh "d:\program files\steam\steamapps\arleitiss\half-life 2 episode two\ep2\models/als/DOOR.sw.vtx": body parts: 8 bytes models: 20 bytes model LODs: 12 bytes meshes: 36 bytes strip groups: 100 bytes strips: 108 bytes verts: 11646 bytes indices: 10032 bytes bone changes: 8 bytes everything: 21994 bytes --------------------- Generating optimized mesh "d:\program files\steam\steamapps\arleitiss\half-life 2 episode two\ep2\models/als/DOOR.dx80.vtx": body parts: 8 bytes models: 20 bytes model LODs: 12 bytes meshes: 36 bytes strip groups: 100 bytes strips: 108 bytes verts: 11646 bytes indices: 10032 bytes bone changes: 88 bytes everything: 22074 bytes --------------------- Generating optimized mesh "d:\program files\steam\steamapps\arleitiss\half-life 2 episode two\ep2\models/als/DOOR.dx90.vtx": body parts: 8 bytes models: 20 bytes model LODs: 12 bytes meshes: 36 bytes strip groups: 100 bytes strips: 108 bytes verts: 11646 bytes indices: 10032 bytes bone changes: 88 bytes everything: 22074 bytes Completed "als_door.qc" [/code] [editline]01:34PM[/editline] Aww my fucking god. Found problem The reason was I just needed to put DOOR_RED as first skin because it's default. Ahh me dumb head. Have fun, rate me dumb
Sorry, you need to Log In to post a reply to this thread.