MPDCenter question - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: LDraw File Processing and Conversion (https://forums.ldraw.org/forum-22.html) +--- Thread: MPDCenter question (/thread-17012.html) |
MPDCenter question - Michael Horvath - 2015-08-09 Michael Heidemann Wrote:You can use MPDCenter to combine what you need into one single LDR file! Which command do I use to do this? [edit] I checked your website and did not find directions there either. [edit] I figured out how to do it. I have a suggestion though: When extracting the "Selected in LDR inlined", could you copy the filename of the model into the save/load dialog that pops up? I keep forgetting and thus have to close the dialog, copy the filename, then open the dialog again and paste. Thanks. Also a question: Does MPDCenter work from the command line? I have over a hundred models to inline and writing a batch script would make things much easier. Re: MPDCenter bug - Michael Horvath - 2015-08-11 The attached file has an "MLCAD hide" line in it. When inlining the model and then loading the inlined version in MLCAD, MLCAD spawns an error saying it is missing a part. Not sure which application is the one behaving improperly. Re: MPDCenter bug - Michael Horvath - 2015-09-10 I just got an error while trying to inline Datsville: Error in cls_Ldraw_collection add It continues to run afterwards, but I'm worried. [edit] After a while the error appears again, etc. Re: MPDCenter bug - Michael Heidemann - 2015-09-19 I am really sorry to answer so late, but I did not see your post before. I'll investigate. Re: MPDCenter bug - Michael Heidemann - 2015-09-19 I think both applications do the correct. Please remind the following: In MLCAD you decided to not show the model "vehicle_045_DB425SharedWheelset.ldr". This results in a comment line with MLCAD HIDE metacommand. MPDCenter only works according the line types. So there is a comment line with a file name and this comment line will be exported in exactly the same format - comment. A comment can not be inlined! As a result you will have a file with a comment line that has a filename in the comment and MLCAD assume that this might be shown later but is not available. I think MPDCenter should not support all the possible metacommands from other applications. I hope this answers your question :-) Re: MPDCenter question - Michael Heidemann - 2015-09-19 Code: I have a suggestion though: When extracting the "Selected in LDR inlined", could you copy the filename of the model into the save/load dialog that pops up? I keep forgetting and thus have to close the dialog, copy the filename, then open the dialog again and paste. Thanks. This is already just coded and will be available in the next build. Code: Does MPDCenter work from the command line? I have over a hundred models to inline and writing a batch script would make things much easier. It will not at present and I am also not sure that I should do it in the future. But this is not a "never" ;-) Re: MPDCenter bug - Michael Heidemann - 2015-09-19 I just investigated and found that datsville is maybe too large for MPDCenter. I get an error for "System.OutOfMemoryException". I fear, that this project is just too huge. Sorry. Because I did not had such error in earlier applications, I do not have an idea how to minimize the usage significant. Maybe it works if you work with the layers instead the whole city. :-) Edit: Currently I am running datsville in MPDCenter without changing anything at the code. I just disabled the preview picture. Hopefully this will run smooth until the end. Re: MPDCenter bug - Roland Melkert - 2015-09-19 Michael Heidemann Wrote:I get an error for "System.OutOfMemoryException". I fear, that this project is just too huge. Sorry.Can't you make a 64 bit version? Alternatively you might want to check dynamic arrays of records, those might cause heap fragmentation when they use large records. You can limit that effect by setting a larger starting size (reserve) or even better by using pointer arrays instead. Just my 2cts Re: MPDCenter bug - Michael Heidemann - 2015-09-19 Thank you very much for your 2ct 64bit version is not possible, because I do not have a library for showing the models that can use 64bit. I think I have detected just such an array as the cause of this and running at present a test. So I might be on the right way. Thank you. cu Mike Edit: It is now 20:18 in germany and datsville is still running without error messages. I think it is now half done. It is finished now without any error. The trick is to disable the preview image. Then it runs on my system without any error also with datville. Re: MPDCenter bug - Michael Horvath - 2015-09-20 Okay, thank you! Re: MPDCenter question - Michael Heidemann - 2015-09-21 I was just on the code of MPDCenter to see what can be done to help you. Then I saw that I need more information what should be done. 1) Are all files you like to convert mpd content files? 2) Then I assume the first model in the file should be inlined into a ldr-file? 3) Should any more be done with the files (check for license or similar)? I am looking forward to your additional information. Re: MPDCenter question - Michael Horvath - 2015-09-21 1) I have been using both LDR and MPD files at different times. 2) I think so, yes. 3) No. Re: MPDCenter question - Michael Heidemann - 2015-09-24 Ok, then I know hopefully what to do I'll keep you informed. cu Mike Re: MPDCenter question - Michael Heidemann - 2015-09-26 Hi Michael, please send me an email to my account, so I am able to send the last build (looks good so far) directly to you for testing. You will find my emailaddress on the hopepage of my applications. I am looking forward to your email :-) cu Mike |