POV-Ray : Newsgroups : povray.beta-test : Unknown key Error when nesting ini files. Server Time
22 Dec 2024 05:45:14 EST (-0500)
  Unknown key Error when nesting ini files. (Message 1 to 6 of 6)  
From: Dr JC
Subject: Unknown key Error when nesting ini files.
Date: 27 May 2013 06:30:00
Message: <web.51a3346cae47795dc580f6c60@news.povray.org>
In v3.7 RC7;
With reference to "2.2.8.2  Using INI Files", and sample with "MOREOPT   ;
Read MOREOPT.INI and continue with next line".
Including an ini file in another ini file; gives a message
"unknown key"
File renders ok

This error was noted back 20Apr2006. Is there a fix or a work-around?


Post a reply to this message

From: Alain
Subject: Re: Unknown key Error when nesting ini files.
Date: 28 May 2013 16:17:25
Message: <51a510d5$1@news.povray.org>

> In v3.7 RC7;
> With reference to "2.2.8.2  Using INI Files", and sample with "MOREOPT   ;
> Read MOREOPT.INI and continue with next line".
> Including an ini file in another ini file; gives a message
> "unknown key"
> File renders ok
>
> This error was noted back 20Apr2006. Is there a fix or a work-around?
>
>

How deep are your ini files nested?
I've rendered several files with nested ini files without ever 
encoutering that error message. Normaly, I hardly have any nesting 
deeper than 3 or 4.

Is it possible that one ini file tries to include a file that ultimately 
include it? In that case, you must have something like this:

#ifndef(This_Include)
#declare This_Include = version;
.
.
body if the include file
.
.
#end

That way, if the inc file have already been included, it won't get 
parsed a second time.



Alain


Post a reply to this message

From: Cousin Ricky
Subject: Re: Unknown key Error when nesting ini files.
Date: 3 Jun 2013 16:25:01
Message: <web.51acfb04d18ce5b578641e0c0@news.povray.org>
Alain <kua### [at] videotronca> wrote:
> How deep are your ini files nested?
> I've rendered several files with nested ini files without ever
> encoutering that error message. Normaly, I hardly have any nesting
> deeper than 3 or 4.
>
> Is it possible that one ini file tries to include a file that ultimately
> include it? In that case, you must have something like this:
>
> #ifndef(This_Include)
> #declare This_Include = version;
> .
> .
> body if the include file
> .
> .
> #end
>
> That way, if the inc file have already been included, it won't get
> parsed a second time.

Are you talking about .ini files or .inc files?


Post a reply to this message

From: Alain
Subject: Re: Unknown key Error when nesting ini files.
Date: 3 Jun 2013 16:47:13
Message: <51ad00d1$1@news.povray.org>

> Alain <kua### [at] videotronca> wrote:
>> How deep are your ini files nested?
>> I've rendered several files with nested ini files without ever
>> encoutering that error message. Normaly, I hardly have any nesting
>> deeper than 3 or 4.
>>
>> Is it possible that one ini file tries to include a file that ultimately
>> include it? In that case, you must have something like this:
>>
>> #ifndef(This_Include)
>> #declare This_Include = version;
>> .
>> .
>> body if the include file
>> .
>> .
>> #end
>>
>> That way, if the inc file have already been included, it won't get
>> parsed a second time.
>
> Are you talking about .ini files or .inc files?
>
>
>
Oups! My mistake. I almost never use ini files and missed the difference.

Anyway, is it possible that one ini file may have a reference to a 
previous one?


Post a reply to this message

From: Dr JC
Subject: Re: Unknown key Error when nesting ini files.
Date: 4 Jun 2013 03:55:02
Message: <web.51ad9cf0d18ce5b5c580f6c60@news.povray.org>
Alain <kua### [at] videotronca> wrote:

> > Alain <kua### [at] videotronca> wrote:
> >> How deep are your ini files nested?
> >> I've rendered several files with nested ini files without ever
> >> encoutering that error message. Normaly, I hardly have any nesting
> >> deeper than 3 or 4.
> >>
> >> Is it possible that one ini file tries to include a file that ultimately
> >> include it? In that case, you must have something like this:
> >>
> >> #ifndef(This_Include)
> >> #declare This_Include = version;
> >> .
> >> .
> >> body if the include file
> >> .
> >> .
> >> #end
> >>
> >> That way, if the inc file have already been included, it won't get
> >> parsed a second time.
> >
> > Are you talking about .ini files or .inc files?
> >
> >
> >
> Oups! My mistake. I almost never use ini files and missed the difference.
>
> Anyway, is it possible that one ini file may have a reference to a
> previous one?
No, there are no references to previous ini files. In fact, running the example
in the help section will generate the error messages.

I think its just a mess-up in how the error messages are handled. If there is
another 'real' error in the code, then the reported error message does not make
any sense and editor opens up in a line that does have the real error. Remove
the reference to the ini file in the original ini file and then the actual error
is reported correctly.

As mentioned previously, the ini error messages does not stop POV from rendering
the one scene. I have not tried to see if an animation sequence will continue
through this error message.


Post a reply to this message

From: Cousin Ricky
Subject: Re: Unknown key Error when nesting ini files.
Date: 4 Jun 2013 17:30:00
Message: <web.51ae5b32d18ce5b578641e0c0@news.povray.org>
"Dr JC" <nomail@nomail> wrote:
> In v3.7 RC7;
> With reference to "2.2.8.2  Using INI Files", and sample with "MOREOPT   ;
> Read MOREOPT.INI and continue with next line".
> Including an ini file in another ini file; gives a message
> "unknown key"
> File renders ok
>
> This error was noted back 20Apr2006. Is there a fix or a work-around?

Also, my documentation reads MOREOPT, MYOPTS, and RERUN to refer to the files
moreopt.ini, myopts.ini, and rerun.ini.  This will not work in Linux or in Unix,
as the files names in these OSs are case-sensitive.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.