To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.org.ldrawOpen lugnet.cad.dev.org.ldraw in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Organizations / LDraw / 113
112  |  114
Subject: 
Re: IMPORTANT - [ldraw.org] Official Model Repository
Newsgroups: 
lugnet.cad.dev.org.ldraw
Date: 
Sun, 13 Jun 1999 23:01:49 GMT
Viewed: 
1241 times
  
In lugnet.cad.dev.org.ldraw, braml@juno.com (Bram Lambrecht) writes:
lehman@javanet.com (Todd Lehman) writes:
Now we should really test how well sub-directories work with the
current software and how to handle them correctly.
For example, if main1.dat calls m1-a.dat, should the reference be:
1 ... sets\xxxxz-yy\m1-a.dat
or
1 ... m1-a.dat
?

Heh heh.  Excellent point.  It depends if the software does a chdir
into the model's directory after loading it (or equivalent hand-waving).
I'd be *extremely* impressed if LEdit & LDraw did this.

The 'sets\xxxxz-yy\' is necessary.

OK, well, having to explicitly use 'sets\xxxxz-yy\' isn't really that much
of a handicap in the grand scheme of things.  It would've just been a
bonus/freebie not to have to use it; but it's not a real problem, right?


I think it's safe to say that if you
built the model in LEdit using subdirs, and all the components showed up
correctly in LEdit, all other programs will also handle the sub-dirs
correctly.

Yeh, I agree -- there's a very good chance of that.  It's typical for most
code that reads files to "just work" with subdirectories even if it wasn't
written with them in mind.  (Writing files is a bit of a different story,
but usually only if missing directories have to be created on-the-fly.)  As
long the filename buffer on the stack is, say, 64 or 80 or 128 characters or
more, then the program shouldn't crash from writing off the end of a string
if the length goes unchecked.  And that's usually only an issue in low-level
languages like C, anyway.  (James wrote LEdit in Turbo Pascal, right?
Pascal has string overflow checking built-in.)

--Todd



Message has 1 Reply:
  Re: IMPORTANT - [ldraw.org] Official Model Repository
 
(...) I'm fairly certain that LDraw and LEdit weren't written with subdirs in mind... LEdit doesn't even check if a filename is valid before saving. (I once accidentally put a space in a filename in LEdit on my Win3.1 machine, and now I can't seem (...) (25 years ago, 14-Jun-99, to lugnet.cad.dev.org.ldraw)

Message is in Reply To:
  Re: IMPORTANT - [ldraw.org] Official Model Repository
 
(...) I'd (...) The 'sets\xxxxz-yy\' is necessary. I think it's safe to say that if you built the model in LEdit using subdirs, and all the components showed up correctly in LEdit, all other programs will also handle the sub-dirs correctly. --Bram (...) (25 years ago, 13-Jun-99, to lugnet.cad.dev.org.ldraw)

94 Messages in This Thread:








































Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR