Go to the first, previous, next, last section, table of contents.

Synthesis Method List

GlobalVariable: synthesis-methods method-list

This variable is a list of synthesis methods. If the list is empty, no synthesis methods will be run.

The list of synthesis methods is ordered, and many contain duplicates, so that a method can be run multiple times during setup. Note that most of the existing methods will simply return if they detect that their work has already been done, so multiple runs will have no effect.

The default synthesis method list is effectively

(make-fractal-percentile-terrain
 make-countries
 make-independent-units
 make-roads
 make-rivers
 make-weather
 init-supplies
 name-geographical-features
)

The synthesis method list may also contain items of the form

("program" forms...)

For each of these items, Xconq will attempt to find and run an external program named "program", giving it as input the result of evaluating the forms, and then reading the output of the program, which must be a valid game module. The program must be capable of interpreting two arguments; the first is the name of the input file it is to read from, and the second is the name of the output file it must write to. If successful, it should return with a result code of 0; otherwise, Xconq will issue a warning to players.

Any further details will depend on your system, since each will use different conventions. Note that this is NOT a portable construct; you cannot assume that everybody will have built and installed the program you're using.


Go to the first, previous, next, last section, table of contents.