I get a strange error when Inform 7 attempts to create code in the Inform 6 compiler. The picture of a crescent moon shows at the top of the screen. Relevant information of the error message : ---- C:\Program Files\Inform 7\Compilers\inform-631 \ -wSDG +include_path=..\Source,.\ auto.inf output.ulx Inform 6.31N for Win32 (6th January 2008) auto.inf(38235): Error: Variable must be defined before use: "rulechange_sp"
> Global rulechange_sp
Compiled with 1 error and 1605 suppressed warnings (no output)
Compiler finished with code 1
----- What on Earth I have 'not defined' and how do I fix this?
> I get a strange error when Inform 7 attempts to create code in the > Inform 6 compiler. The picture of a crescent moon shows at the top of > the screen. Relevant information of the error message : > ---- > C:\Program Files\Inform 7\Compilers\inform-631 \ > -wSDG +include_path=..\Source,.\ auto.inf output.ulx > Inform 6.31N for Win32 (6th January 2008) > auto.inf(38235): Error: Variable must be defined before use: > "rulechange_sp" >> Global rulechange_sp > Compiled with 1 error and 1605 suppressed warnings (no output)
> Compiler finished with code 1
> ----- > What on Earth I have 'not defined' and how do I fix this?
I can only suggest to you that your question has much more chance of being answered in the other IF-related NG, rec.arts.int-fiction.
> > auto.inf(38235): Error: Variable must be defined before use: > > "rulechange_sp" > >> Global rulechange_sp > > Compiled with 1 error and 1605 suppressed warnings (no output) > > What on Earth I have 'not defined' and how do I fix this?
I recognize that variable. It's defined in the Standard Rules, regarding rulebooks. Have you been doing anything tricky with the Standard Rules?
What was the last thing you put into your code before this started cropping up?
On Jun 27, 9:38 pm, Ron Newcomb <psc...@yahoo.com> wrote:
> > > auto.inf(38235): Error: Variable must be defined before use: > > > "rulechange_sp" > > >> Global rulechange_sp > > > Compiled with 1 error and 1605 suppressed warnings (no output) > > > What on Earth I have 'not defined' and how do I fix this?
> I recognize that variable. It's defined in the Standard Rules, > regarding rulebooks. Have you been doing anything tricky with the > Standard Rules?
> What was the last thing you put into your code before this started > cropping up?
> -R
That's the thing, I didn't. My program worked fine until I upgraded to the newest version of Inform and updated the extensions. I have no idea what it doesn't like now that it was hunky-dory with last time. All I can think to do is update the extensions...again. (corrupted download, maybe?) Would it be possible to manually define that variable?
> That's the thing, I didn't. My program worked fine until I upgraded to > the newest version of Inform and updated the extensions. I have no > idea what it doesn't like now that it was hunky-dory with last time. > All I can think to do is update the extensions...again. (corrupted > download, maybe?) Would it be possible to manually define that > variable?
Well, that's the trick: it's throwing the error ON the definition. Plus, that I6 code is almost definately correct. Maybe re-download and re-install Inform 7, perhaps after removing it from your system. But this error is probably the result of some code clash.
Do you have other projects to test? Try making a dummy one that uses whatever extensions you're referring to. Or knock out the extensions one by one in the real project, making stand-ins so it will compile, and eventually you should find a culprit somewhere.
Did you write any of the extensions? If not, which ones are they? I've heard a few people have been having issues with Conversation Framework lately....
On Jun 28, 11:14 pm, "shysta...@gmail.com" <shysta...@gmail.com> wrote:
> That's the thing, I didn't. My program worked fine until I upgraded to > the newest version of Inform and updated the extensions. I have no > idea what it doesn't like now that it was hunky-dory with last time. > All I can think to do is update the extensions...again. (corrupted > download, maybe?) Would it be possible to manually define that > variable?
Are you maybe using the Conditional Backdrops extension? It uses this variable, but no longer works under the current build of Inform.
On Jun 29, 6:20 am, Emily Short <emsh...@mindspring.com> wrote:
> On Jun 28, 11:14 pm, "shysta...@gmail.com" <shysta...@gmail.com> > wrote:
> > That's the thing, I didn't. My program worked fine until I upgraded to > > the newest version of Inform and updated the extensions. I have no > > idea what it doesn't like now that it was hunky-dory with last time. > > All I can think to do is update the extensions...again. (corrupted > > download, maybe?) Would it be possible to manually define that > > variable?
> Are you maybe using the Conditional Backdrops extension? It uses this > variable, but no longer works under the current build of Inform.
On Jun 29, 12:21 pm, "shysta...@gmail.com" <shysta...@gmail.com> wrote:
> On Jun 29, 6:20 am, Emily Short <emsh...@mindspring.com> wrote: > > Are you maybe using the Conditional Backdrops extension? It uses this > > variable, but no longer works under the current build of Inform.
> That I am doing! I'll see about this ASAP.
Gee, I'm embarrassed I missed that (and I read the original post...). Take a look at section 8.8 of the documentation, which gives a new way of specifying locations of backdrops. You should be able to do everything that Conditional Backdrops did using the "move the .. backdrop to all..." phrase (so I don't plan to update the extension, but if it's really integral to your project let me know and I can try to patch it for you).