LDraw.org Discussion Forums
topic post - 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: topic post (/thread-13042.html)



topic post - his shoes? WHACK - 2014-05-17

more than five characters


Re: End of file header indicator? - Michael Heidemann - 2014-05-17

As far as I know the header end tag is not yet decided.
But detecting headers end should not be very complicate.
If you find a line starting with another number other than 0 header has finished. You may have to skip a line back for detecting BFC, but that's it.


Re: End of file header indicator? - his shoes? WHACK - 2014-05-17

HIS SHOES?


Re: End of file header indicator? - his shoes? WHACK - 2014-05-17

WHACK


Re: End of file header indicator? - Michael Heidemann - 2014-05-18

Why you are looking for those line with "0 -" and "0 +".
I would say they are pure text lines with no value for visualising parts!

You should check for first character to be not "0" as indicator for header end.
But you also should care about the "0 BFC" line.

Do you also know that "0 BFC" should be treated the same as "0 BFC" ?

LDraw is very smooth for part authors with an editor but hard for coders that like to solve problems by apps Smile


Re: End of file header indicator? - Michael Horvath - 2014-05-19

Maybe use 000 for end of header?


Re: End of file header indicator? - Steffen - 2014-05-19

I would like to still object strongly against having a new "end of header" tag.
There is a separate thread discussing this issue.

Triangle717, could you post the file with the invalid UTF8 sequence here for us to double-check?


Re: End of file header indicator? - his shoes? WHACK - 2014-05-20

HIS CLOTHES?