Help With Debugging Part - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: Models and Parts (https://forums.ldraw.org/forum-18.html) +--- Forum: Parts Authoring (https://forums.ldraw.org/forum-19.html) +--- Thread: Help With Debugging Part (/thread-21490.html) |
Help With Debugging Part - Tanner S. - 2016-04-24 I'm not sure how long ago it was that I used the LDPattern Creator software to draw out the patterns for the Astro Torso from the Mars Mission theme. I managed to finish it, and somehow attach it to the default torso object. Somehow I got it to open in an .mpd file using Leocad, but now I cannot copy it into the file I need it in. When I try, it appears as the default stud-less rectangular prism. I'd like to be able to copy it into the file at least, and maybe even put it into my parts library, bu I am unskilled at these things. Is there anyone who would be willing to look at the part to see what might be wrong with it? RE: Help With Debugging Part - Gerald Lasser - 2016-04-25 Can you attach the files to the post or get me the reference number? I understand that you want to extract the pattern from the torso, right? RE: Help With Debugging Part - Tanner S. - 2016-04-25 (2016-04-25, 6:08)Gerald Lasser Wrote: Can you attach the files to the post or get me the reference number? Files attached. Actually, I made the pattern, and using LPC, I attached my patterns to the front and back of the torso. My problem is not that I want to extract the pattern; the problem is that this torso with the patterns attached to it will not load into LeoCad as a regular piece that I can use, which destroys the whole purpose. Something is wrong with the file which makes it unrecognizable. Here's the real quandary. I did manage to get it into a file once. This .mpd file has been attached along with the torso part. What's funny is that when I try to copy the minifig that uses the torso from one window of LeoCad into another open project, the legs, arms, etc. all copy, but the custom torso part does not. It appears only as a rectangular prisim that I assume appears when a part is copied that doesn't have the correct structure or metadata. Anyway, thanks for your response and help! The two files attached are: Astro.dat | The single torso piece Astro.mpd | The complete astro figure RE: Help With Debugging Part - Gerald Lasser - 2016-04-25 What about storing "AstroTorso.dat" in your parts directory for a try? I think when you copy the fig, you just copy the top part of the file, like this section: Code: 1 15 0 -72 10 1 0 0 0 1 0 0 0 1 ASTRO TORSO.DAT As the details of the "AstroTorso.dat" are not copied, LEOCad will not find it. It is expected to be in the path of your parts-dir, but the program cannot find it. Thats my assumption for now RE: Help With Debugging Part - Roland Melkert - 2016-04-25 (2016-04-25, 20:59)Tanner S. Wrote:(2016-04-25, 6:08)Gerald Lasser Wrote: Can you attach the files to the post or get me the reference number? The mpd looks fine in LDCad 1.5 maybe the space in "ASTRO TORSO.DAT" is trowing leocad off. RE: Help With Debugging Part - Magnus Forsberg - 2016-04-25 I see two things that might cause errors. Missing file header and bad format of the colour codes. I don't know how LeoCAD handles these issues. I've never tried it. Both of your files work fine in LDView and LDCad. Have you tried adding a correct file header to the top of the file? Code: 0 Minifig Torso with Astro Space Suit Pattern Some of the colour codes, creating direct colours, have a "strange" format. The codes used on the front ( 0x26c6e68 ) looks good, but not the ones on the back ( 44410277 ). Read more about Direct colours here: http://www.ldraw.org/article/218.html#colours RE: Help With Debugging Part - Tanner S. - 2016-04-26 Still the same problem. This is what I have done: Taking Magnus Forsberg's advice, I added the header to the file using LDDP. I left the first line alone (0 BFC CERTIFY CCW) and copied the header as prescribed, save for the addition of my name, below it. I saved the file, after examining the color coding problem. I'll have you know, I am quite new to this, so I'm not sure what to do about it at present. Taking Gerald Lasser's advice, I copied the file (with the header added) into the parts library I found in the Public folder of the computer. I opened the part in leocad as before, and it still appeared below the grid and was unmovable. I briefly searched through the library to see if the part had appeared in some folder there, from which I could drag-and-drop. I could not find it by name or description. Again I opened that .mpd, and tried to copy the minifig into another file. Same thing again. Is it possible that LeoCad is simply too picky for this sort of thing? I made the part because I needed it, and would have preferred that it worked with the LDraw system just like any other, without any special wants or circumstances. Evidently, something got backed around when making the file. Again, thanks to everyone who responded. RE: Help With Debugging Part - Orion Pobursky - 2016-04-26 (2016-04-26, 0:33)Tanner S. Wrote: Is it possible that LeoCad is simply too picky for this sort of thing? I made the part because I needed it, and would have preferred that it worked with the LDraw system just like any other, without any special wants or circumstances. Evidently, something got backed around when making the file. LeoCad is a tricky program. It wasn't originally LDraw compatible and has been modified to be such so this may be a bug. Not having much experience with it, I can't really help you out in that regard. Try using a different LDraw editor (like LDCad) and see if it works there. If so, then LeoCad is the problem. RE: Help With Debugging Part - Tanner S. - 2016-04-26 (2016-04-26, 0:42)Orion Pobursky Wrote: LeoCad is a tricky program. It wasn't originally LDraw compatible and has been modified to be such so this may be a bug. Not having much experience with it, I can't really help you out in that regard. Try using a different LDraw editor (like LDCad) and see if it works there. If so, then LeoCad is the problem. Yeah, I figured that might be the case. A shame, because I like the half-rendered look of LeoCad a lot more than MLCad, for whatever reason. I grew up on LDD, so I suppose that would be a reason. Anyway, I might try to complete my project in MLCad tomorrow, and see what happens. Come to think of it, I may have put that .mpd mini figure together in MLCad to begin with. I still would like to root out my problem though... maybe it is the colors as Magnus Forsberg has suggested. I'm just not sure of how to go about fixing it. RE: Help With Debugging Part - Orion Pobursky - 2016-04-26 Might I suggest LDCad instead of MLCad. While MLCad works well, it's not actively developed any more and is becoming obsolete. RE: Help With Debugging Part - Gerald Lasser - 2016-04-26 I played around with mklst.exe but no progress,but then I noticed that LeoCAD took more time to start when a custom Library path is entered. I got it now... It is really tricky, reading the page how LeoCAD handles the Party Library helped a lot :-) What I did now: - Made the Torso a seperate part (during this process I removed the direct colors, but I guess that did not matter) - Put the part into /LDRAW/PARTS - renamed the default library LeoCAD comes with to "library.bin.old" - Start LeoCAD, it will complain that there is no library, ignore that - Go to "View/Preferences" - under "Custom Parts Library" enter the path to the Ldraw root dir. e.g. c:\Ldraw - Click OK and quit LeoCAD - Start it again, it will take quite some time as it is scanning the library - once it is up, you can find the part in the parts browser... hope that works for you as well :-) RE: Help With Debugging Part - Tanner S. - 2016-04-27 (2016-04-26, 6:37)Gerald Lasser Wrote: I played around with mklst.exe but no progress,but then I noticed that LeoCAD took more time to start when a custom Library path is entered. Hmm... that didn't work for me. Not sure why, as I followed your directions step by step. One thing I did notice was when you wrote it should take some time scanning the library, it was not so for me. It loaded just as quickly as ever. Otherwise, I replicated your process... well, save for the end result. I doubt it is helpful, but this is the forum describing the problems I had when I first made the part: http://forums.ldraw.org/thread-16396.html Also, when I loaded up the Astro.mpd, the parts browser did in fact find the part in the library.. or maybe it is just searching within the file. Either way, when copied, the same, original problem persists. RE: Help With Debugging Part - Philippe Hurbain - 2016-04-27 I haven't played with LeoCAD for a while, but if I remember correctly it uses parts.lst if it finds it, speeding up things. The drawback is that this list must be updated (use ldmklist tool) if you add new parts to your library. RE: Help With Debugging Part - Tanner S. - 2016-04-30 (2016-04-27, 7:02)Philippe Hurbain Wrote: I haven't played with LeoCAD for a while, but if I remember correctly it uses parts.lst if it finds it, speeding up things. The drawback is that this list must be updated (use ldmklist tool) if you add new parts to your library. Sure enough! I had to use the MakeListGUI, and after some fiddling with LDDP, I got the part to appear in the list! Thanks so much to everyone who helped out! There are yet two things I wonder: Is there a way to make this torso appear in the Minifig Generator? How do I fix the color problem that Magnus Forsberg mentioned? RE: Help With Debugging Part - Gerald Lasser - 2016-04-30 (2016-04-30, 3:14)Tanner S Wrote: Is there a way to make this torso appear in the Minifig Generator? Have a look at the MLCAD.ini. It explains what to do to adjust the Minifig Generator RE: Help With Debugging Part - Philippe Hurbain - 2016-05-01 Quote:Have a look at the MLCAD.ini. It explains what to do to adjust the Minifig GeneratorThis applies to MLCad, not LeoCAD. I don't know if there is an easy way to configure minifig wizard. But it's easy to use a minifig with generic torso then change it to the new type. RE: Help With Debugging Part - Willy Tschager - 2016-05-01 This is not correct. LeoCAD relys on the MLCad.ini. I agreed with Leonardo that Leo looks into the LDraw root folder for a copy of MLCad.ini before loading its internal copy. w. RE: Help With Debugging Part - Philippe Hurbain - 2016-05-01 I stand corrected |