Giter VIP home page Giter VIP logo

io_kspblender's People

Contributors

spencerarrasmith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

io_kspblender's Issues

Cannot import craft files.

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

"Not even alpha" warning in Blender

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.
Screen Shot 2019-06-04 at 11 20 00 AM
Screen Shot 2019-06-04 at 11 19 18 AM

KeyError: 'mk1pod'

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

Importing fails

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

Does this still work?

Last commit was really long ago, and if it doesn't work anymore that would be a shame.

K Menu does not appear in Blender 2.83

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.

IndexOutOfBounds error when importing Struts.

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?

Mu importer error

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...

UnicodeDecodeError importing .craft file

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?

IndexError when using pretty much any menu function

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:

  • Select Ship
  • Select Stage
  • Make One Mesh
  • Make 3D Printable

Blender 2.75a on Arch Linux. KSP 1.0.4. Stock Kerbal X craft.

Importing .craft is not working

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.