spencerarrasmith / io_kspblender Goto Github PK
View Code? Open in Web Editor NEWKSP .craft Importer Addon for Blender
License: GNU General Public License v2.0
KSP .craft Importer Addon for Blender
License: GNU General Public License v2.0
Hey, before I start talking about all the errors I would like to congratulate what seems to be a very useful code for someone like me, who has a 3d printer and would love to 3d print kerbal crafts.
Now for the errors. The issue happens when I try to import a craft directly from ksp ships folder. The following error messages appears on blender:
Traceback (most recent call last):
File "C:\Users\eric\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_object_mu-master\import_craft.py", line 278, in execute
return import_craft_op(self, context, **keywords)
File "C:\Users\eric\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_object_mu-master\import_craft.py", line 250, in import_craft_op
create_db()
File "C:\Users\eric\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_object_mu-master\import_craft.py", line 216, in create_db
recurse_tree(gamedata, build_db)
File "C:\Users\eric\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_object_mu-master\import_craft.py", line 171, in recurse_tree
files = os.listdir(path)
FileNotFoundError: [WinError 3] The system cannot find the path specified: '/home/bill/ksp/KSP_linux-ckan/GameData'
location: :-1
So can you help me? I have absolutely no idea how this kind of coding works...
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
File "/usr/share/blender/2.75/scripts/modules/bpy/ops.py", line 189, in __call__
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Traceback (most recent call last):
File "/home/tyler/.config/blender/2.75/scripts/addons/io_kspblender-master/__init__.py", line 72, in execute
shippart = selected.pop(0)
IndexError: pop from empty list
location: /usr/share/blender/2.75/scripts/modules/bpy/ops.py:189
I get this when using any of the following K menu items:
Blender 2.75a on Arch Linux. KSP 1.0.4. Stock Kerbal X craft.
I got the following error when i tried to import this craft file:
https://gist.github.com/Jotschi/5ecab72be4440a4d03c6
----------------------------------------------------
Importing MK1Fuselage as MK1Fuselage_4294410536
('node', 'Output', 'ShaderNodeOutput', (630, 730))
('node', 'mainMaterial', 'ShaderNodeMaterial', (70, 680))
('node', 'geometry', 'ShaderNodeGeometry', (-590, 260))
('node', 'mainTex', 'ShaderNodeTexture', (-380, 480))
('link', 'geometry', 'UV', 'mainTex', 'Vector')
('link', 'mainTex', 'Color', 'mainMaterial', 'Color')
('settex', 'mainTex', 'texture', 'mainTex')
('link', 'mainMaterial', 'Color', 'Output', 'Color')
collider.002
collider.002 Hidden
collider.collider.002
Info: Removed 62 vertices
collider.collider.002 Hidden
fuselage_mk1
fuselage_mk1 Hidden
mesh
Traceback (most recent call last):
File "/home/jotschi/.config/blender/2.74/scripts/addons/io_kspblender-master/__init__.py", line 59, in execute
return import_craft.import_craft(self,context,**keywords)
File "/home/jotschi/.config/blender/2.74/scripts/addons/io_kspblender-master/import_craft.py", line 63, in import_craft
craft = import_parts(filepath,partdir,rightscale,right_location)
File "/home/jotschi/.config/blender/2.74/scripts/addons/io_kspblender-master/import_craft.py", line 223, in import_parts
material_fixer(obj,part)
File "/home/jotschi/.config/blender/2.74/scripts/addons/io_kspblender-master/import_craft.py", line 716, in material_fixer
possible_img = [image for image in bpy.data.images if imA.texture.name in image.name]
File "/home/jotschi/.config/blender/2.74/scripts/addons/io_kspblender-master/import_craft.py", line 716, in <listcomp>
possible_img = [image for image in bpy.data.images if imA.texture.name in image.name]
AttributeError: 'NoneType' object has no attribute 'name'
location: <unknown location>:-1
location: <unknown location>:-1
I've been trying to get the KSP import/export craft files to Blender add-on to work, but it just won't work. I downloaded all necessary files (https://github.com/taniwha/io_object_mu) and put them in the designated locations. I'm am using Blender 2.79 and KSP 1.7.1.2539 (OSXPlayer). I'm not sure what is going on but when I go to "user preferences" to enable the add-on to support the .mu files, it shows a warning symbol and says "not even alpha". When I hit the check-box, a pop-up of code appears. Near the bottom of the code, it says "SyntaxError : invalid syntax", and with my little knowledge of coding, I'm not sure how you would fix this. It might be because I'm on Mac, or I installed the importer/exporter wrong, but if anyone could help me get this right, that would be greatly appreciated.
Using Blender 2.83, pressing k does not bring up the menu, meaning there doesn't seem to be a way to access any of those options in the menu. Tried going into init.py and changing the keybind from K to a different unused key, which doesn't change the issue.
Hi!
I've just set up this tool, and i'm having trouble importing Crafts which have struts.
Before I begin, specs:
OS - Mac OS X Yosemite
Blender Version - 2.75a
KSPBlender version - latest, using git clone.
I have a full log from the Terminal output, but here's the gist:
Traceback (most recent call last):
File "/Users/danila/Downloads/Blender/Blender.app/Contents/Resources/2.75/scripts/addons/io_kspblender-master/__init__.py", line 60, in execute
return import_craft.import_craft(self,context,**keywords)
File "/Users/danila/Downloads/Blender/Blender.app/Contents/Resources/2.75/scripts/addons/io_kspblender-master/import_craft.py", line 63, in import_craft
craft = import_parts(filepath,partdir,rightscale,right_location)
File "/Users/danila/Downloads/Blender/Blender.app/Contents/Resources/2.75/scripts/addons/io_kspblender-master/import_craft.py", line 200, in import_parts
add_strut(part,objlist)
File "/Users/danila/Downloads/Blender/Blender.app/Contents/Resources/2.75/scripts/addons/io_kspblender-master/import_craft.py", line 366, in add_strut
newstrut.data.vertices[7].co.y = strutlen
IndexError: bpy_prop_collection[index]: index 7 out of range, size 7
Any idea what it could be?
The url is now https://github.com/taniwha/io_object_mu (ie, change taniwha-qf to taniwha).
Hi so yeah, i can't import .craft files but can still import .mu parts i have the making history expansion blender is saying that in the pythoon script the filepath does not exist even tho i clearly does and i set it in the file. I am not wanting to be rude to you but please fix this
Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender\2.76\scripts\addons\io_kspblender-master__init__.py", line 59, in execute
return import_craft.import_craft(self,context,**keywords)
File "C:\Program Files\Blender Foundation\Blender\2.76\scripts\addons\io_kspblender-master\import_craft.py", line 63, in import_craft
craft = import_parts(filepath,partdir,rightscale,right_location)
File "C:\Program Files\Blender Foundation\Blender\2.76\scripts\addons\io_kspblender-master\import_craft.py", line 107, in import_parts
if os.path.isfile(partdir[part.partName][0]): # make sure the part file exists so nothing crashes
KeyError: 'mk1pod'
location: :-1
Last commit was really long ago, and if it doesn't work anymore that would be a shame.
I've followed the README directions, but get the following stack trace trying to import a craft:
Traceback (most recent call last):
File "/Applications/blender.app/Contents/Resources/2.75/scripts/addons/io_kspblender-master/__init__.py", line 59, in execute
return import_craft.import_craft(self,context,**keywords)
File "/Applications/blender.app/Contents/Resources/2.75/scripts/addons/io_kspblender-master/import_craft.py", line 61, in execute
[partdir,right_location] = part_dict.make_dict(ksp) # <3 Cptman
File "/Applications/blender.app/Contents/Resources/2.75/scripts/addons/io_kspblender-master/part_dict.py", line 43, in execute
p.rl = make_dict_aux(cfgs.path)
File "/Applications/blender.app/Contents/Resources/2.75/scripts/addons/io_kspblender-master/part_dict.py", line 95, in execute
for line in f: #Looks for the name,scale,... in a .cfg
For "/Applications/blender.app/Contents/MacOS/../Resources/2.75/python/lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)
location: <unknown location>:-1
Any guidance?
It would be nice if the parametric fairings could be loaded.
When trying to import a craft file i get this error. I'm not sure what to do. Any help appreciated!
Traceback (most recent call last):
File "C:\Users\telek\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_kspblender-master_init_.py", line 59, in execute
return import_craft.import_craft(self,context,**keywords)
File "C:\Users\telek\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_kspblender-master\import_craft.py", line 61, in import_craft
[partdir,right_location] = part_dict.make_dict(ksp) # <3 Cptman
File "C:\Users\telek\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_kspblender-master\part_dict.py", line 43, in make_dict
p,rl = make_dict_aux(cfgs,path)
File "C:\Users\telek\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_kspblender-master\part_dict.py", line 95, in make_dict_aux
for line in f: #Looks for the name,scale,... in a .cfg
File "C:\Users\telek\OneDrive\Desktop\blender-2.79.0-git.001414fb2f73-windows64\2.79\python\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 5: invalid start byte
location: :-1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.