STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
254
IN-GAME
1,728
ONLINE
Founded
8 November, 2013
All Discussions > Bug Reports > Topic Details
glub♥Linux 20 Jul, 2015 @ 9:32pm
[FIXED] Importing Crowbar genetared QC file doesn't import animation SMD files
Problem: importing a QC file should automatically import the animation .smd along the reference .smd.

When I decompile a model with Cannonfodder's MDLdecompiler[www.chaosincarnate.net], the QC file generated is structured like this:
$sequence idle01 "idle01" loop ACT_VM_IDLE 1 fps 30.00 node 0 $sequence idle01empty "idle01empty" loop ACT_VM_IDLE_EMPTY 1 fps 30.00 node 0 $sequence fire "fire" ACT_VM_PRIMARYATTACK 1 fps 30.00 node 2 ...

However, when I decompile a model with Crowbar, the QC file generated is structured like this:
$Sequence "idle01" { "idle01.smd" activity "ACT_VM_IDLE" 1 fadein 0.2 fadeout 0.2 node "0" fps 30 loop } $Sequence "idle01empty" { "idle01empty.smd" activity "ACT_VM_IDLE_EMPTY" 1 fadein 0.2 fadeout 0.2 node "0" fps 30 loop } $Sequence "fire" { "v_jinrai_mpn_s_anim_fire.smd" activity "ACT_VM_PRIMARYATTACK" 1 fadein 0.2 fadeout 0.2 node "2" snap fps 30 } ...

However, if I change the QC file to be like the following instead, Blender Tools do actually import the animations correctly:
$Sequence "idle01" {"idle01.smd" activity "ACT_VM_IDLE" 1 fadein 0.2 fadeout 0.2 node "0" fps 30 loop } $Sequence "idle01empty" {"idle01empty.smd" activity "ACT_VM_IDLE_EMPTY" 1 fadein 0.2 fadeout 0.2 node "0" fps 30 loop } ...

Basically simply removing the "end of line" character and placing the referenced ".smd" on the same line as $Sequence.
Also note that there has to be NO SPACE between the { bracket and the ".smd" !! Otherwise it doesn't import it either.

I assume this could be considered a bug, since I have to work around it to make it import properly.

Any thoughts on this? A chance to have this looked at maybe? :)
Thanks for the great great great great tools!
Last edited by Artfunkel; 5 Oct, 2015 @ 9:51am
< >
Showing 1-2 of 2 comments
ZeqMacaw 19 Sep, 2015 @ 6:46am 
This is a bug with Blender Source Tools because it is valid syntax for the studiomdl.exe compiler. I made Crowbar list all options inside the braces for $sequence to make it look better. It seems though that many people are used to the old way of listing $sequence options, so I'll probably include the old way into Crowbar's "Format for stricter importers" option. :S
Artfunkel 21 Sep, 2015 @ 3:08pm 
This will be fixed in the next release.
< >
Showing 1-2 of 2 comments
Per page: 1530 50

All Discussions > Bug Reports > Topic Details