taniwha Posted March 21, 2020 Author Share Posted March 21, 2020 Funnel icon in the outliner (top right viewport by default) Quote Link to comment Share on other sites More sharing options...
Starseeker Posted March 21, 2020 Share Posted March 21, 2020 @taniwha Alrighty, I've gotten the stuff to display and I can select individual parts; however, I can't select things like colliders, which I'm wanting to remove; I'm basically trying to get the models all arranged as they are in the craft, without any of the colliders, unused bits like shrouds, etc. Quote Link to comment Share on other sites More sharing options...
taniwha Posted March 22, 2020 Author Share Posted March 22, 2020 Hmm, colliders should be selectable. I need to poke around again, blender keeps changing. Quote Link to comment Share on other sites More sharing options...
taniwha Posted March 23, 2020 Author Share Posted March 23, 2020 I haven't looked into the collider issue yet, but I have got the importers working on the most recent versions of blender (git as of an hour or so ago), but other than shaders, I expect the fixes to be good for most versions of blender. Quote Link to comment Share on other sites More sharing options...
Lucas3214 Posted March 23, 2020 Share Posted March 23, 2020 I downloaded the latest branch on Github but I can import crafts.... IndexError : string index out of range Quote Link to comment Share on other sites More sharing options...
taniwha Posted March 24, 2020 Author Share Posted March 24, 2020 (edited) @Lucas3214: please post the stack trace. With what you've given, all I know is that there was an error, no clue as to where. However, one common mistake: The KSP GameData path (in the addon config panel in user prefs) has not been set. Edited March 24, 2020 by taniwha Quote Link to comment Share on other sites More sharing options...
Lucas3214 Posted March 24, 2020 Share Posted March 24, 2020 (edited) I think I fixed it, prob because I have Chinese Characters in the file path... @taniwha Edited March 24, 2020 by Lucas3214 Quote Link to comment Share on other sites More sharing options...
taniwha Posted March 24, 2020 Author Share Posted March 24, 2020 Ah, that might make a mess of things, but it would be nice to know where the error was. Quote Link to comment Share on other sites More sharing options...
Ungetoastet Posted March 26, 2020 Share Posted March 26, 2020 Pls help, it creates an traceback error when I try to import a .craft and it doesn't actually import it. I want to 3d print a rocket I made. Quote Link to comment Share on other sites More sharing options...
taniwha Posted March 27, 2020 Author Share Posted March 27, 2020 I can't help you if I don't see the trackback, other than to suggest that maybe you haven't configured the KSP GameData directory in the addon's config panel (in user->prefs->addons). Quote Link to comment Share on other sites More sharing options...
XLjedi Posted March 28, 2020 Share Posted March 28, 2020 (edited) On 3/27/2020 at 3:08 AM, taniwha said: I can't help you if I don't see the trackback, other than to suggest that maybe you haven't configured the KSP GameData directory in the addon's config panel (in user->prefs->addons). I'm having the same problem trying to select the .craft file for import , here's the traceback error: Spoiler Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 106, in execute return import_craft_op(self, context, **keywords) File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 80, in import_craft_op obj = import_craft(filepath) File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 44, in import_craft gamedata = GameData(Preferences().GameData) File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 146, in __init__ self.create_db() File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 129, in create_db recurse_tree(self.root, self.build_db) File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 29, in recurse_tree files = os.listdir(path) FileNotFoundError: [WinError 3] The system cannot find the path specified: '' location: <unknown location>:-1 Also, if there is some extra step required, such as: "maybe you haven't configured the KSP GameData directory in the addon's config panel (in user->prefs->addons)" Could you please add that as "step 9" on the end of your installation instructions in the OP? Also, I did take a look at the addon's config panel and was still not sure which directory slot we are supposed to characterize as the KSP GameData directory? For me, when I navigate to user->prefs->addons, there is no option to specify a KSP GameData directory? I only have checkbox options to enable/disable your import/export addon. Could you be more specific here? Edited March 28, 2020 by XLjedi Quote Link to comment Share on other sites More sharing options...
taniwha Posted March 29, 2020 Author Share Posted March 29, 2020 10 hours ago, XLjedi said: Also, I did take a look at the addon's config panel and was still not sure which directory slot we are supposed to characterize as the KSP GameData directory? For me, when I navigate to user->prefs->addons, there is no option to specify a KSP GameData directory? I only have checkbox options to enable/disable your import/export addon. I too went for years without knowing that those bars could be opened into panels. Click on the little triangle on the left end of the bar. As for the instructions, sorry, I thought I had said something. I will fix that. Quote Link to comment Share on other sites More sharing options...
taniwha Posted April 4, 2020 Author Share Posted April 4, 2020 I have export working reliably again on blender 2.80+. It was corrupting the mesh data quite severely for me. Quote Link to comment Share on other sites More sharing options...
XLjedi Posted April 4, 2020 Share Posted April 4, 2020 On 3/28/2020 at 8:09 PM, taniwha said: I too went for years without knowing that those bars could be opened into panels. Click on the little triangle on the left end of the bar. As for the instructions, sorry, I thought I had said something. I will fix that. Thanks I got it to work, but you're still really missing a step 9-10 in the OP so folks will know how to get the thing functional. Quote Link to comment Share on other sites More sharing options...
taniwha Posted April 4, 2020 Author Share Posted April 4, 2020 well, just what would steps 9-10 be? I'm open to suggestions. Quote Link to comment Share on other sites More sharing options...
XLjedi Posted April 4, 2020 Share Posted April 4, 2020 (edited) On 3/28/2020 at 9:45 AM, XLjedi said: I'm having the same problem trying to select the .craft file for import , here's the traceback error: Reveal hidden contents Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 106, in execute return import_craft_op(self, context, **keywords) File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 80, in import_craft_op obj = import_craft(filepath) File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 44, in import_craft gamedata = GameData(Preferences().GameData) File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 146, in __init__ self.create_db() File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 129, in create_db recurse_tree(self.root, self.build_db) File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 29, in recurse_tree files = os.listdir(path) FileNotFoundError: [WinError 3] The system cannot find the path specified: '' location: <unknown location>:-1 Also, if there is some extra step required, such as: "maybe you haven't configured the KSP GameData directory in the addon's config panel (in user->prefs->addons)" Could you please add that as "step 9" on the end of your installation instructions in the OP? Also, I did take a look at the addon's config panel and was still not sure which directory slot we are supposed to characterize as the KSP GameData directory? For me, when I navigate to user->prefs->addons, there is no option to specify a KSP GameData directory? I only have checkbox options to enable/disable your import/export addon. Could you be more specific here? Going back to my previous post where I already suggested it... you eluded to it with this comment: "maybe you haven't configured the KSP GameData directory in the addon's config panel (in user->prefs->addons)" My gut response to that is, "Well, you didn't tell me in the directions that I needed to do that or how to do it?" Step 9 would be where specifically to look in blender (user->prefs->addons etc.) to find your installed app. Step 10 would be your instructions (click on yellow triangle?) to make the input section appear where you can enter the default directory... and then to enter the KSP gamedata default directory This is not in any way obvious. Whether that's 1, 2 or 5 steps is up to you... it's just missing from the OP directions. Edit: oops, my bad... did you go back and add it as sub-bullets there in step 6? I don't actually recall seeing that before. But that seems to be fine. I just didn't notice it was added. If I missed it originally, I concede I must be blind. Edited April 4, 2020 by XLjedi Quote Link to comment Share on other sites More sharing options...
taniwha Posted April 4, 2020 Author Share Posted April 4, 2020 Those instructions are there now and have been for a week or so (just in step 6). Quote Link to comment Share on other sites More sharing options...
XLjedi Posted April 4, 2020 Share Posted April 4, 2020 Just now, taniwha said: Those instructions are there now and have been for a week or so (just in step 6). Ah... I just didn't notice them at a glance today. Was expecting something added to the last step. All is good! I did get it to import a craft file. Now I just need to devise some reasons for why that might be useful to me? Appreciate the app, thank you! Quote Link to comment Share on other sites More sharing options...
taniwha Posted April 7, 2020 Author Share Posted April 7, 2020 I've started a wiki that is open for editing by any with a github account. Right now, it has docs for installation and craft import. More will come later. Quote Link to comment Share on other sites More sharing options...
josselin2196 Posted April 14, 2020 Share Posted April 14, 2020 Hello, i install the addon according to instruction in blender 2.82. When i try to load a craft i get this error: Spoiler Traceback (most recent call last): File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 106, in execute return import_craft_op(self, context, **keywords) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 80, in import_craft_op obj = import_craft(filepath) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 44, in import_craft gamedata = GameData(Preferences().GameData) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 146, in __init__ self.create_db() File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 129, in create_db recurse_tree(self.root, self.build_db) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 36, in recurse_tree recurse_tree(p, func) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 36, in recurse_tree recurse_tree(p, func) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 38, in recurse_tree func(p) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 102, in build_db self.process_cfg(path) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 89, in process_cfg cfg = ConfigNode.loadfile(path) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\cfgnode\cfgnode.py", line 90, in loadfile return cls.load(text) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\cfgnode\cfgnode.py", line 75, in load script = Script("", text, "{}=", False) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\cfgnode\script.py", line 32, in __init__ elif text[0] == u"\ufeff": IndexError: string index out of range location: <unknown location>:-1 bpy.ops.import_object.ksp_craft(filepath="C:\\Program Files (x86)\\Steam\\steamapps\\common\\Kerbal Space Program\\Ships\\VAB\\Ariane 5 - Hermes.craft") I'm complete new to blender. I can't identify the problem Quote Link to comment Share on other sites More sharing options...
taniwha Posted April 15, 2020 Author Share Posted April 15, 2020 @josselin2196: That looks like the file itself is truncated to 0 bytes (ie, is empty). I suggest double checking the contents of the craft file. However, I do need to work on better error reporting. Quote Link to comment Share on other sites More sharing options...
josselin2196 Posted April 15, 2020 Share Posted April 15, 2020 18 hours ago, taniwha said: @josselin2196: That looks like the file itself is truncated to 0 bytes (ie, is empty). I suggest double checking the contents of the craft file. However, I do need to work on better error reporting. I try using a vanilla craft, i have the same output: Spoiler Traceback (most recent call last): File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 106, in execute return import_craft_op(self, context, **keywords) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 80, in import_craft_op obj = import_craft(filepath) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 44, in import_craft gamedata = GameData(Preferences().GameData) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 146, in __init__ self.create_db() File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 129, in create_db recurse_tree(self.root, self.build_db) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 36, in recurse_tree recurse_tree(p, func) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 36, in recurse_tree recurse_tree(p, func) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 38, in recurse_tree func(p) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 102, in build_db self.process_cfg(path) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\gamedata.py", line 89, in process_cfg cfg = ConfigNode.loadfile(path) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\cfgnode\cfgnode.py", line 90, in loadfile return cls.load(text) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\cfgnode\cfgnode.py", line 75, in load script = Script("", text, "{}=", False) File "C:\Users\Josselin.LeBec-PC\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\io_object_mu-master\cfgnode\script.py", line 32, in __init__ elif text[0] == u"\ufeff": IndexError: string index out of range location: <unknown location>:-1 bpy.ops.import_object.ksp_craft(filepath="C:\\Program Files (x86)\\Steam\\steamapps\\common\\Kerbal Space Program\\Ships\\VAB\\AeroEquus.craft") Quote Link to comment Share on other sites More sharing options...
taniwha Posted April 16, 2020 Author Share Posted April 16, 2020 @josselin2196: I'm sorry, I missed this before: the error is occurring while reading configs in GameData, not while loading a craft file. This means there's an empty cfg file somewhere in one of your mods. Quote Link to comment Share on other sites More sharing options...
taniwha Posted April 16, 2020 Author Share Posted April 16, 2020 @josselin2196: I've pushed a "fix" for the problem (the config node parser now just quietly bails if the file is empty). Quote Link to comment Share on other sites More sharing options...
Micro753 Posted April 17, 2020 Share Posted April 17, 2020 (edited) Blender gave me some errors when I tried to import a .craft file. I'm using Blender 2.82 and the version of this that you updated 20 hours ago. The .mu import works, just not the .craft. I did set the GameData directory, so I'm not sure if I missed a step or did something wrong. I tried with one of the stock .craft files as well, and same thing happened. Only other thing I can think of is that KSP is on D:\ instead of C:\ Spoiler Traceback (most recent call last): File "C:\Program Files (x86)\Steam\steamapps\common\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 106, in execute return import_craft_op(self, context, **keywords) File "C:\Program Files (x86)\Steam\steamapps\common\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 80, in import_craft_op obj = import_craft(filepath) File "C:\Program Files (x86)\Steam\steamapps\common\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 60, in import_craft part = gamedata.parts[pname].get_model() File "C:\Program Files (x86)\Steam\steamapps\common\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\part.py", line 70, in get_model Vector((1, 1, 1)) * scale) File "C:\Program Files (x86)\Steam\steamapps\common\Blender\2.82\scripts\addons\io_object_mu-master\import_craft\part.py", line 76, in instantiate obj.instance_collection = self.model ReferenceError: StructRNA of type Collection has been removed location: <unknown location>:-1 bpy.ops.import_object.ksp_craft(filepath="C:\\Users\\Micro753\\Documents\\Dove.craft") Edited April 17, 2020 by Micro753 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.