Read code without crashing? - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: General (https://forums.ldraw.org/forum-12.html) +--- Forum: Help (https://forums.ldraw.org/forum-13.html) +--- Thread: Read code without crashing? (/thread-24295.html) |
Read code without crashing? - Vicky Garcia - 2020-11-29 I've been trying to figure this out for 2 days. I was using LPub3D to build instructions. Right after I created a callout, I went to do something, and my 4 year old son was on my computer. I didn't think he actually did anything, until I tried to work the next step. It kept giving me 3 errors below back to back. My guess is that my son may have typed or deleted stuff into the editor and messed up the code. However, I cannot actually look at the code, because after I close the 3 errors, LPub crashes. ------------------------ Parse failed main.ldr:390 0 !LPUB CALLOUT11EGIN Invalid LDraw type 1 line. Expected 15 elements, got "15 12 45 -1 0 0 0 1 0 0 0 -1 mirror.ldr". (file:main.ldr, line:392) CALLOUT END without a CALLOUT BEGIN (file:main.ldr,line:395) ------------- I assume that the CALLOUT11EGIN should have been CALLOUT BEGIN. But the question is: How can I edit the code without LPub crashing it? Is there a way for LPub to not render while editing? I used LDCad to create the model file but couldn't see a way to go to the source code within LDCad. Even just pointing me to the right direction would help immensely. RE: Read code without crashing? - Philippe Hurbain - 2020-11-29 Hello Vicky, welcome here! A LDraw file is pure text. So you can use a plain text editor (such as Windows notepad) to repair your file. Alternatively you could use a specialized LDraw text editor such as LDraw Design Pad (http://lddp.sourceforge.net/) which offers syntax highlighting. RE: Read code without crashing? - Vicky Garcia - 2020-11-29 (2020-11-29, 7:41)Philippe Hurbain Wrote: Hello Vicky, welcome here! Thank you SO much. Finally was able to fix it via Design Pad. Knew it was something so simple! |