Read code without crashing?


Read code without crashing?
#1
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. 
Reply
RE: Read code without crashing?
#2
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.
Reply
RE: Read code without crashing?
#3
(2020-11-29, 7:41)Philippe Hurbain Wrote: 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.

Thank you SO much. Finally was able to fix it via Design Pad. Knew it was something so simple!
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)