You are on page 1of 2

////////////////////////////////////////////////////////////////////////////////

//
// This file details the AKG script format for use with MPS versions 1.0 +
//
////////////////////////////////////////////////////////////////////////////////
Comments:
Comments can be defined in an AKG file using the characters "//". Everyt
hing
that follows on that line will be considered comments and be ignored by
MPS.
Defined Symbols/Commands:
#path
#include
Notes:
MPS
AKG
AOK
The

replaces resources in the order in which they are defined in the


file(s). Therefore, if more than one AKS file refers to a given
resource, the first reference will be the only one installed.
same holds true for "additional" files specifed in any AKS files.

#path - This symbol is used to specify a path for locating files specified by th
e
"#include" symbol if not fully-qualified. By default, MPS looks for
partially qualified includes in the same folder as the AKG file resides.
By using "#path" followed by a file-system path, MPS will look in the
path specified for unqualified includes.
Usage #1:

#path c:\mps\"

An alternate usage is to use the "#path" statement alone without a path


specified to return the default search path to the AKG file's path.
Usage #2:

#path

NOTE: Paths definded by the "#path" statement are only valid within the
AKG file in which the "#path" statement resides. The defined path will n
ot
be valid within AKG files specified by an "#include" command.
#include - This symbol is used to include other files in the AKG file. It has tw
o
major variations.
AKS Variation: This form is used to include an AKS file in the install
script.
The "#include" statement is immediately followed by the name of an AKS
file.
AKG Variation: This form is used to include another AKG file in the ins
tall
script. All AKS files declared in the specified AKG file (as well as any
AKG
files specified) will be included in the install. The "#include" stateme
nt is
immediately followed by the name of an AKG file.
Usage #1:

#include c:\mps\ice.aks

#include c:\msp\ice.akg
The AKS/AKG filename is fully qualified with a full file-system path.
Usage #2:

#include ice.aks
#include ice.akg

The AKS/AKG filename is not qualified with a file-system path. MPS will
use
the "path" (see "#path") of the current AKG file to locate the included
file.
Usage #3:

#include .\folder\ice.aks
#include .\folder\ice.akg

The AKS/AKG filename is partially qualified. MPS replaces ".\" with the
"path" of the current AKG file when locating the included file.
////////////////////////////////////////////////////////////////////////////////
//
// Sample AKG File:
//
////////////////////////////////////////////////////////////////////////////////

//
// Sample AKG File named c:\aks files\test.akg
//
// In the akg file's path
#include cliff.aks
#include Ice World.aks
#include cliff.aks
// note that the cliff.aks file's cliffs
// will overwrite Ice World.aks's
// Set a new path
#path C:\aks files\more\
#include skeleton_mod.aks

// due to the last "path" statement


// MPS is looking for this file in
// c:\aks files\more\

#path

// Set path back to default,


// c:\aks files\

#include .\more\bloody mess.aks


#include .\test\skeleton_mod.aks
#path

//test delete path

#include test.akg

//Test .\ option

You might also like