I think there must be an I6 setting that relates to resources allocated for loops and that I need to set it higher. I am getting the following compiler error:
[code]Translating the Source - Failed
The application ran your source text through the Inform 7 compiler, as usual, and it found no problems translating the source. Something must have gone wrong all the same, because the second stage of the process - using the Inform 6 compiler to turn this translated source into a viable story file - turned up errors. This should not happen. The errors are written out on the Progress tab, but will only make sense to experienced Inform 6 users (if even to them).
The best option now is probably to reword whatever was last changed and to try again. Subsequent attempts will not be affected by the failure of this one, so there is nothing to be gained by restarting the application or the computer. A failed run should never damage the source text, so your work cannot be lost.
If you are using Inform 6 inclusions, these are the most likely culprits. You might be using these without realising it if you are including an extension which contains Inform 6 inclusions in order to work its magic: so if the problem only seems to occur when a particular extension is in use, then that is probably what is at fault, and you should contact the extension’s author directly.
If not, then most likely the Inform 7 compiler is at fault. Please check that you have the currently distributed build of the system: if you have, please consider taking the time to fill out a bug report form and email it to the author.
Sorry for the inconvenience.
The 39269-word source text has successfully been translated into an
intermediate description which can be run through Inform 6 to complete
compilation. There were 542 rooms and 319 things.
Inform 7 has finished.
C:\Program Files\Inform 7\Compilers\inform-631
-wSDG +include_path=…\Source,.\ auto.inf output.ulx
Inform 6.31N for Win32 (29th March 2009)
auto.inf(33938): Error: No expression between brackets ‘(’ and ‘)’
if (())
Compiled with 1 error and 1905 suppressed warnings (no output)
Compiler finished with code 1[/code]
It seems like I have too many loops in my code and I6 is protesting…
I have been able to isolate the offending block (using remark brackets and process of elimination) and the block will code fine without an “if” loop but will reject if I use an “if” loop.
This is also a recurring error because I got rid of the original method of accomplishing what I wanted and used an alternate method and eventually got the same compiler results (but at first it coded fine (because there were less if loops)).
I’m thinking I can use a setting like MAX_STATIC_DATA or MAX_OBJECTS to fix this but I don’t know what it would be. Like MAX_LOOP_RAM or something
Help.