STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
463
游戏中
2,470
在线
成立于
2013 年 11 月 8 日
所有讨论 > Help > 主题详情
Foxidro 2017 年 11 月 21 日 上午 9:26
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
最后由 Foxidro 编辑于; 2017 年 11 月 21 日 上午 9:29
< >
正在显示第 1 - 8 条,共 8 条留言
Zappy 2017 年 11 月 21 日 上午 9:29 
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.
最后由 Zappy 编辑于; 2017 年 11 月 21 日 上午 10:37
Foxidro 2017 年 11 月 21 日 上午 10:41 
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 2017 年 11 月 21 日 上午 10:50 
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.
最后由 Zappy 编辑于; 2017 年 11 月 21 日 上午 10:51
Foxidro 2017 年 11 月 21 日 上午 11:02 
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 2017 年 11 月 21 日 上午 11:04 
引用自 Foxidro
i tried that and nothing, same error. -
Then import the SMD meshes and VTA files manually as opposed to the QC file.

引用自 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 2017 年 11 月 21 日 上午 11:08 
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 2017 年 11 月 21 日 上午 11:10 
引用自 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 2017 年 11 月 21 日 上午 11:17 
okay, thanks for the help my dude your awesome, gonna do the slow way then xd
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情
发帖日期: 2017 年 11 月 21 日 上午 9:26
回复数: 8