Datsville


Re: Datsville
#10
Roland Melkert Wrote:
>
> I've got it working now without the need for
> header information, but it's still guessing and so
> it can guess wrong, like for example the
> town0-1.ldr has this line:
>
> 1 7 540 0 -800 0 0 0.50 0 0.50 0 -0.50 0 0
> baihous1.ldr
>
> The whole house is scaled down (to datsville scale
> I guess?). This will cause my 'improved' guessing
> code to handle the whole town0-1.ldr as a single
> part. But it can be corrected by fixing the header
> of town0-1.ldr only instead of all the boxed
> parts.
>

For a human, the line:
0 Unofficial Datsville Town Sub-Model
says it all, but I understand it's a bit harder to make software with logic fuzzy enough to understand it.

If a header line contains the string "official" (disregard upper/lowercase), that line probably a part/model/primitive identifier.
- If one header line contains both "official" and "model" (disregard upper/lowercase), it's a model.
- If one header line contains both "official" and "part" - but not "sub-part"! (disregard upper/lowercase), it's a part.
If a file contains type 1 references to .LDR files, it's a model.
If a file contains references to parts, it's most likely a model.
If a file contains several line type 2 - 5 and references to primitives, it's likely a part.

But I also understand that if a program has to evaluate a lot of part files with this fuzzy logic, it takes more processing than it should have had to. I think I'll soon get back with a suggestion of a better alternative to that !LDraw_org meta-statement...

/Tore
(I've changed my mind about "If a file is located in the Parts folder...", since there are lots of shortcuts, like mc with rider, that have to be treated as models, not parts.)
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Datsville - by Roland Melkert - 2011-08-14, 19:52
Re: Datsville - by Tore Eriksson - 2011-08-14, 23:33
Re: Datsville - by Roland Melkert - 2011-08-15, 17:32
Re: Datsville - by Tore Eriksson - 2011-08-15, 23:11
Re: Datsville - by Roland Melkert - 2011-08-16, 0:06
Re: Datsville - by Tore Eriksson - 2011-08-16, 1:43
Re: Datsville - by Roland Melkert - 2011-08-16, 17:41
Re: Datsville - by Tore Eriksson - 2011-08-17, 19:06
Re: Datsville - by Chris Dee - 2011-08-18, 10:20
Re: Datsville - by Tore Eriksson - 2011-08-18, 21:26
Re: Datsville - by Roland Melkert - 2011-08-19, 19:02
Modulex (Was: Datsville) - by Tore Eriksson - 2011-08-19, 19:26
Re: Datsville - by Tore Eriksson - 2011-08-19, 19:03
Re: Datsville - by Roland Melkert - 2011-08-19, 19:33
Re: Datsville - by Tore Eriksson - 2011-08-19, 21:50
Re: Datsville - by Roland Melkert - 2011-08-20, 16:01
Re: Datsville - by Travis Cobbs - 2011-08-20, 17:39
Re: Datsville - by Roland Melkert - 2011-08-20, 20:21
Re: Datsville - by Tore Eriksson - 2011-08-20, 20:32
Re: Datsville - by Michael Horvath - 2013-10-16, 12:40
Re: Datsville - by Roland Melkert - 2013-10-16, 21:29
Re: Datsville - by Michael Horvath - 2013-10-17, 16:16
Re: Datsville - by Roland Melkert - 2013-10-17, 16:26
Re: Datsville - by Orion Pobursky - 2013-10-17, 18:44
Re: Datsville - by Roland Melkert - 2013-10-17, 18:52
Re: Datsville - by Travis Cobbs - 2013-10-17, 20:52
Re: Datsville - by Roland Melkert - 2013-10-17, 20:59
Re: Datsville - by Travis Cobbs - 2013-10-17, 23:45
Re: Datsville - by Roland Melkert - 2013-10-18, 0:21
Re: Datsville - by Michael Horvath - 2013-10-17, 19:15
Re: Datsville - by Orion Pobursky - 2013-10-17, 20:04
Re: Datsville - by Michael Horvath - 2013-10-17, 19:02
Re: Datsville - by Roland Melkert - 2013-10-17, 20:03
Re: Datsville - by Michael Horvath - 2013-10-17, 20:43
Re: Datsville - by Roland Melkert - 2013-10-17, 21:01
Re: Datsville - by Roland Melkert - 2013-10-17, 22:39
Re: Datsville - by Michael Horvath - 2013-10-17, 23:07
Re: Datsville - by Roland Melkert - 2013-10-17, 23:42
Re: Datsville - by Michael Horvath - 2013-10-18, 0:17
Re: Datsville - by Roland Melkert - 2013-10-18, 0:34
Re: Datsville - by Michael Horvath - 2013-10-18, 1:57
Re: Datsville - by Michael Horvath - 2013-10-19, 19:39
Re: Datsville - by Roland Melkert - 2013-10-19, 21:28
Re: Datsville - by Michael Horvath - 2013-10-19, 22:51
Re: Datsville - by Michael Horvath - 2013-11-10, 22:09
Re: Datsville - by Michael Horvath - 2013-10-19, 20:01
Re: Datsville rev224 - by Michael Horvath - 2013-10-26, 3:27
Re: Datsville rev224 - by Michael Heidemann - 2013-10-27, 15:12
Re: Datsville rev224 - by Michael Horvath - 2013-10-27, 22:24
Re: Datsville rev224 - by Michael Heidemann - 2013-10-28, 16:45
Re: Datsville rev224 - by Michael Horvath - 2013-10-28, 22:09
Re: Datsville rev224 - by Michael Heidemann - 2013-11-09, 23:44
Re: Datsville rev224 - by Michael Horvath - 2013-11-10, 1:05
Re: Datsville rev224 - by Michael Heidemann - 2013-11-10, 6:30
Re: Datsville rev224 - by Michael Heidemann - 2013-11-10, 16:49
Re: Datsville rev224 - by Michael Horvath - 2013-11-10, 20:43
Re: Datsville rev224 - by Michael Heidemann - 2013-11-10, 21:16
Re: Datsville rev224 - by Michael Horvath - 2013-11-10, 22:00
Re: Datsville rev256 - by Michael Horvath - 2013-11-10, 22:14
Re: Datsville rev256 - by Michael Heidemann - 2013-11-11, 17:10
Re: Datsville rev256 - by Michael Horvath - 2013-11-12, 2:53
Re: Datsville rev256 - by Michael Heidemann - 2013-11-11, 17:54
Re: Datsville rev256 - by Michael Horvath - 2013-11-12, 20:17
Re: Datsville rev256 - by Michael Heidemann - 2013-11-12, 22:23
Re: Datsville rev256 - by Roland Melkert - 2013-11-11, 18:03
Re: Datsville rev256 - by Michael Horvath - 2013-11-12, 3:05
Re: Datsville rev256 - by Philippe Hurbain - 2013-11-12, 9:33
Re: Datsville rev256 - by Michael Horvath - 2013-11-12, 17:36
Re: Datsville rev256 - by Max Martin Richter - 2013-11-12, 17:55
Re: Datsville rev256 - by Michael Heidemann - 2013-11-12, 17:55
Re: Datsville rev256 - by Michael Horvath - 2013-11-12, 20:22
Re: Datsville rev256 - by Michael Horvath - 2013-11-12, 19:50
Re: Datsville rev256 - by Roland Melkert - 2013-11-12, 20:10
Re: Datsville rev256 - by Michael Horvath - 2013-11-12, 20:20
Re: Datsville rev267 - by Michael Horvath - 2013-11-16, 21:35
Re: Datsville rev267 - by Max Martin Richter - 2013-11-16, 22:04
Re: Datsville rev267 - by Michael Horvath - 2013-11-17, 1:46
Re: Datsville rev298 - by Michael Horvath - 2013-12-06, 5:21
Re: Datsville rev308 - by Michael Horvath - 2013-12-09, 13:46

Forum Jump:


Users browsing this thread: 12 Guest(s)