TsFile
TsFiles are ThereScript files and end with the
file extension .ts.
Note: AconfFiles also contain ThereScript
and end in .aconf.
ThereScript files are plain text files that can contain and perform a variety of functions. The most prevalent use of ThereScript files are for system scripting and object control.
All objects that are freestanding have a TsFile associated with them. These types of TsFiles tend to contain a limited amount of scripting but may have the ability to contain more complex functions.
A typical developer object TsFile contains 2 main sections.
- PIECE, which contains object parameters.
- CONTENTS, which contains a list of the objects in the ts file (Developer object files usually contain a single piece)
A typical developer object file looks like this.
PIECE {
name = "object name",
id = "DevId",
model = "dir/modelname.model",
modelSettings = {
[ "material_id_1" ] = {
colormap = "dir/colormap_1.jpg",
lit = 1,
twosided = 0,
},
[ "material_id_2" ] = {
colormap = "dir/colormap_2.jpg",
opacitymap = "dir/opacity.jpg",
lit = 0,
twosided = 0,
},
},
sinkToGround = dropOnTop,
layoutClass = "Structures",
}
CONTENTS
{
{ "DevId", 1 },
}
-
Object TsFiles can contain more parameters that affect the objects appearance in the client such as MaterialAnimation parameters.
-
GameKits contain a PIECE section for each piece of the kit and the CONTENTS section lists all the pieces in the kit/file.