Home Contests & Challenges Archives Team Fortress 2

QC error with GUIStudioMDL 2.2

Hi guys, I'm having a problem where this QC file:

$cd "C:/Users/Alex/Desktop/degroot/Stickey_Launcher/Compiled"

$modelname "weapons/c_models/c_MaccyF_Launcher/c_MaccyF_Launcher.mdl"

$model "c_MaccyF_Launcher" "c_MaccyF_Launcher.dmx.smd"

$bodygroup "body"
{
studio "c_MaccyF_Launcher.smd"
}

$cdmaterials "models/weapons/c_MaccyF_Launcher/"

$attachment "eject_brass" "weapon_bone" 2.22 4.18 9.1 rotate 0 27.29 0
$attachment "muzzle" "weapon_bone" 0 2.15 24.79 rotate 0 0 0

$surfaceprop "metal"

$contents "solid"


// NOTE: The following commented-out $definebone lines might be needed, as is often the case for view models. When needed, simply remove the two slashes '//' from the start of each line.
// $definebone "weapon_bone" "" 0 0 0 0 0 0 0 0 0 0 0 0
// $definebone "weapon_bone_1" "weapon_bone" 1.51299 2.825698 2.896748 1.570796 -1.023108 -1.570796 0 0 0 0 0 0
// $definebone "weapon_bone_2" "weapon_bone" -7.062339 -1.011958 9.538335 0 0 0 0 0 0 0 0 0




$sequence "idle" "idle.smd"
{
fps 30
}

//$collisionmodel "c_sticky_jumper_physics.smd"
{
//$mass 1
//$inertia 1
//$damping 0
//$rotdamping 0

}


Gives this log:
qdir: "c:\users\alex\desktop\degroot\stickey_launcher\compiled\"

gamedir: "F:\Games\SteamLibrary\steamapps\common\team fortress 2\tf\"

g_path: "C:\Users\Alex\Desktop\degroot\Stickey_Launcher\Compiled\c_MaccyF_Launcher.qc"

Building binary model files...

Working on "c_MaccyF_Launcher.qc"

SMD MODEL C:/Users/Alex/Desktop/degroot/Stickey_Launcher/Compiled/c_MaccyF_Launcher.dmx.smd

SMD MODEL C:/Users/Alex/Desktop/degroot/Stickey_Launcher/Compiled/c_MaccyF_Launcher.smd

SMD MODEL C:/Users/Alex/Desktop/degroot/Stickey_Launcher/Compiled/idle.smd

ERROR: c:\users\alex\desktop\degroot\stickey_launcher\compiled\c_MaccyF_Launcher.qc(33): - bad command {

ERROR: Aborted Processing on 'weapons/c_models/c_MaccyF_Launcher/c_MaccyF_Launcher.mdl'

GUISMDL doesn't seem to like the "{ }"s in the QC file, but without it i get unknown command errors.

If anyone is able to help i'll be really grateful.

Replies

  • BANG!
    Options
    Offline / Send Message
    I think the issue is the curly braces after $collision model that aren't commented out, either that of the fps 30 in curly braces.

    You can actually comment out blocks with /* */
    $cd "C:/Users/Alex/Desktop/degroot/Stickey_Launcher/Compiled"

    $modelname "weapons/c_models/c_MaccyF_Launcher/c_MaccyF_Launcher.mdl"

    $model "c_MaccyF_Launcher" "c_MaccyF_Launcher.dmx.smd"

    $bodygroup "body"
    {
    studio "c_MaccyF_Launcher.smd"
    }

    $cdmaterials "models/weapons/c_MaccyF_Launcher/"

    $attachment "eject_brass" "weapon_bone" 2.22 4.18 9.1 rotate 0 27.29 0
    $attachment "muzzle" "weapon_bone" 0 2.15 24.79 rotate 0 0 0

    $surfaceprop "metal"

    $contents "solid"


    // NOTE: The following commented-out $definebone lines might be needed, as is often the case for view models. When needed, simply remove the two slashes '//' from the start of each line.
    // $definebone "weapon_bone" "" 0 0 0 0 0 0 0 0 0 0 0 0
    // $definebone "weapon_bone_1" "weapon_bone" 1.51299 2.825698 2.896748 1.570796 -1.023108 -1.570796 0 0 0 0 0 0
    // $definebone "weapon_bone_2" "weapon_bone" -7.062339 -1.011958 9.538335 0 0 0 0 0 0 0 0 0




    $sequence "idle" "idle.smd" fps 30

    /*
    $collisionmodel "c_sticky_jumper_physics.smd"
    {
    $mass 1
    $inertia 1
    $damping 0
    $rotdamping 0
    }
    */
Sign In or Register to comment.