|
In lugnet.cad.dat.models, Franklin W. Cain writes:
> I've been doodling with castle stuff lately.
>
> This is the MPD I used to create the image
> that I posted here:
> "http://www.brickshelf.com/gallery/fwcain/people/lich2a.jpg"
>
> [snip an evil nasty MPD file]
The lich is evil I tell ya!
Well maybe just recursive MPD files are evil. Do you realize ring2.dat
is an ldraw primitive and that by redefining it in the MPD file you've
created an infinite loop of dat file includes.
ring2.dat -> flame3.dat -> flame3s.dat ...-> stud2a.dat -> ring2.dat...
Of course stud2a.dat expects to get the ring2.dat primative in the P
directory. But since ring2.dat from the MPD file was encountered first,
we get that one instead (and the ring is complete).
Then that lame excuse for an OS, Windows gets so hosed up when lich.dat
blows the stack in my ldglite program that it refuses to do ANY more
opengl until I reboot.
So my question is: How do we fix this? Must I check for infinite
loops when parsing MPD files. And why doesn't that L3Input code Lars
loaned me already do that? Hasn't this come up before?
Don
|
|
Message has 3 Replies: | | Re: Recursive MPD files (WAS: Re: Lich (Undead Wizard))
|
| (...) I don't think this can be fixed (although any serious syntax-check-type utility should catch it). So any program which processes LDraw files must check the reference-chain for recursive calls. I think it hasn't been an issue because most (...) (25 years ago, 13-Mar-00, to lugnet.cad.dev)
|
Message is in Reply To:
| | Lich (Undead Wizard) [DAT]
|
| I've been doodling with castle stuff lately. This is the MPD I used to create the image that I posted here: "(URL) FILE lich2.dat 0 MPD Author: Franklin W. Cain 0 0 This .MPD was compiled using M-Peedy 0 (URL) Lich (an Undead Wizard) 0 Unofficial (...) (25 years ago, 9-Mar-00, to lugnet.cad.dat.models)
|
6 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
|
|
|
|