STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
220
IN-GAME
1,556
ONLINE
Founded
8 November, 2013
All Discussions > Help > Topic Details
Foxidro 21 Nov, 2017 @ 9:26am
Importing .qc AttributeError
im trying to import a .qc and this error[puu.sh] comes up, can someone help?

Traceback (most recent call last): File "C:\*\*\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_valvesource\import_smd.py", line 70, in execute self.num_files_imported = self.readQC(filepath, False, self.properties.doAnim, self.properties.makeCamera, self.properties.rotMode, outer_qc=True) File "C:\*\*\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_valvesource\import_smd.py", line 1158, in readQC shape = qc.ref_mesh.data.shape_keys.key_blocks.get(line[i+1]) AttributeError: 'NoneType' object has no attribute 'data' location: <unknown location>:-1

Blender 2.79
Blender Source Tools 2.9.1
Last edited by Foxidro; 21 Nov, 2017 @ 9:29am
< >
Showing 1-8 of 8 comments
Zappy 21 Nov, 2017 @ 9:29am 
I'm going to guess that we'll have to see the contents of the QC file, along with a list of the other files in the same folder as the QC, to help you with this problem.
Last edited by Zappy; 21 Nov, 2017 @ 10:37am
Foxidro 21 Nov, 2017 @ 10:41am 
This[pastebin.com] is the QC and this[puu.sh] is the content of the folder, the .qc file is in the QC folder, i think is something to do with the flex files cuz i saw in the import_smd.py, but my knowledge in python is extremely limited.
Zappy 21 Nov, 2017 @ 10:50am 
Try adding either "$CD ../", "$PopD", or "$CD "C:\ponies_source"" to the top of the QC file. Make sure to remove the surrounding quotes (so only the "C:\ponies_source" part will have quotes around it, if that's what you'll try to use). Note that this will help the model compile, but I'm not sure if it'll do anything for the Blender Source Tools.
Last edited by Zappy; 21 Nov, 2017 @ 10:51am
Foxidro 21 Nov, 2017 @ 11:02am 
i tried that and nothing, same error. if i compile it to SFM is that a way i can get it compiled from there?
Zappy 21 Nov, 2017 @ 11:04am 
Originally posted by Foxidro:
i tried that and nothing, same error. -
Then import the SMD meshes and VTA files manually as opposed to the QC file.

Originally posted by Foxidro:
- if i compile it to SFM is that a way i can get it compiled from there?
...Well, yes? If you compile it, you'll have it compiled, right?
Foxidro 21 Nov, 2017 @ 11:08am 
ah sorry i didnt wrote right xd, like, can i import a compiled SFM file to blender? it would save me a lot of time
Zappy 21 Nov, 2017 @ 11:10am 
Originally posted by Foxidro:
- can i import a compiled SFM file to blender? -
Not unless you de-compile it, but it's obviously always much better to import the actual source SMD/DMX files into Blender than de-compiling a model and using the SMD files from that.
Foxidro 21 Nov, 2017 @ 11:17am 
okay, thanks for the help my dude your awesome, gonna do the slow way then xd
< >
Showing 1-8 of 8 comments
Per page: 1530 50

All Discussions > Help > Topic Details
Date Posted: 21 Nov, 2017 @ 9:26am
Posts: 8