Posts: 3,047
Threads: 162
Joined: Jul 2011
Re: 4019.dat
2011-08-06, 16:51
Actually there are some more, if you do a quick grep it will find:
273.dat
30094.dat
3842a.dat
3842b.dat
4019.dat
40378.dat
47405.dat
48724.dat
52036.dat
55423.dat
6574.dat
2739as01.dat
2739bs01.dat
3068as01.dat
I've changed the parser to look at any occurrence of "INVERTNEXT" instead of checking the first token after "BFC" only. It will issue a warning when it's not the first (and only one) now.
My app logs errors and warnings when a recoverable problem is found, like so:
Warning | LDraw file load | C:\Program Files (x86)\ldraw\parts\3702.dat | line 16 | Reference "STUD3A.DAT" case mismatch, should be "stud3a.dat".
Warning | LDraw file load | C:\Program Files (x86)\ldraw\parts\3702.dat | line 18 | Reference "STUD3A.DAT" case mismatch, should be "stud3a.dat".
Warning | LDraw file load | C:\Program Files (x86)\ldraw\parts\3702.dat | line 64 | Reference "2-4cyli.DAT" case mismatch, should be "2-4cyli.dat".
Warning | LDraw file load | C:\Program Files (x86)\ldraw\parts\752.dat | line 29 | Matrix has been corrected due to an invalid determinant.
Warning | LDraw file load | C:\Program Files (x86)\ldraw\parts\752.dat | line 30 | Matrix has been corrected due to an invalid determinant.
Warning | LDraw file load | C:\Program Files (x86)\ldraw\parts\3650a.dat | line 42 | Quad is twisted but could be corrected.
Warning | LDraw file load | C:\Program Files (x86)\ldraw\parts\3650a.dat | line 43 | Quad is twisted but could be corrected.
Warning | render prep | C:\Program Files (x86)\ldraw\parts\3404.dat | Subfile BFC processing canceled due to dependency on subfile without BFC information, caused by "C:\Program Files (x86)\ldraw\p\48\4-4edge.dat". Dual lighting will be used for entire tree.
Warning | render prep | C:\Program Files (x86)\ldraw\parts\3403.dat | Subfile BFC processing canceled due to dependency on subfile without BFC information, caused by "C:\Program Files (x86)\ldraw\p\48\4-4edge.dat". Dual lighting will be used for entire tree.
Error | LDraw file load | C:\Program Files (x86)\ldraw\parts\6252.dat | line 698 | Duplicate point in line definition, line will not be used.
Error | LDraw file load | C:\Program Files (x86)\ldraw\parts\6252.dat | line 699 | Duplicate point in line definition, line will not be used.
Error | LDraw file load | C:\Program Files (x86)\ldraw\parts\6252.dat | line 701 | Multiple duplicate points in quad definition, quad will not be used.
Error | LDraw file load | C:\Program Files (x86)\ldraw\parts\6252.dat | line 702 | Multiple duplicate points in quad definition, quad will not be used.
Warning | LDraw file load | C:\Program Files (x86)\ldraw\parts\2546.dat | line 80 | Quad is not flat, it will be split into two triangles.
Warning | LDraw file load | C:\Program Files (x86)\ldraw\parts\2546.dat | line 81 | Quad is not flat, it will be split into two triangles.
I'm afraid ridding the official library of all warnings might be a huge job, but most are recoverable problems though.