CCG/Common Containers and Tags

From TrainzOnline
< CCG(Difference between revisions)
Jump to: navigation, search
 
(2 intermediate revisions by one user not shown)
Line 11: Line 11:
  
 
The following tags and containers are defined in this chapter. Additional notes on their usage are shown in Chapter 6 where relevant.
 
The following tags and containers are defined in this chapter. Additional notes on their usage are shown in Chapter 6 where relevant.
 
 
 
 
 
  
  
Line 69: Line 64:
  
 
●·      license
 
●·      license
 +
 +
  
 
===Other Regularly Used Containers===
 
===Other Regularly Used Containers===
Line 101: Line 98:
  
 
●      collision-parent
 
●      collision-parent
 +
  
  
Line 337: Line 335:
  
  
 +
[[CCG/Common Containers|Common Containers]]
  
===Common Containers===
+
[[CCG/Common Tags|Common Tags]]
The following containers are present in all kinds.
+
 
+
;kuid Table
+
:A list of KUIDs required for this asset to function correctly.
+
 
+
:A kuid-table must be included where the config.txt references additional KUIDs, such as a bogey, or a pantograph. The Download Station performs a search, and those found are added to the download pack.
+
 
+
;obsolete Table
+
:The obsolete-table describes the assets revision history.
+
 
+
:This container was used extensively for pre-TRS2004 assets as each version required a unique Content ID. In order to simplify this process the KUID2 format was introduced, which now supersedes the obsolete-table method. TC and the Download Station automatically detect and use the most recent version of an asset whether it be through the KUID2 system or through the obsolete-table.
+
 
+
:The obsolete-table container has been included to maintain backwards compatibility with older assets and it is recommended that the KUID2 system be used instead.
+
 
+
 
+
;privileges
+
:As of TRS2006, limited content protection applied, but only to built-in (JArchived) assets. The following tags were used:
+
 
+
 
+
:The permit tags grant or deny the user specific access rights. By default, all permissions are granted on an asset. Setting one of these tags to false (0) removed the permission. Built in assets may deny you some options.
+
 
+
:permit-commit - Allows the end-user to commit changes to this asset.
+
 
+
:permit-edit - Allows the end-user to open this asset for editing.
+
 
+
:permit-listing - Allows the end-user to view this object in the surveyor pickers (if it is of an appropriate kind). It does not affect the visibility of the asset within the CMP asset list.
+
 
+
 
+
 
+
;string table cn, cz, de, es, fr, it, nl, pl, ru
+
:Every asset can have a string table. A string table is a list of text strings that are defined in the string-table section of the asset's config.txt line as follows:
+
 
+
 
+
:On their own, these string tables are not used. The string tables become useful for scripting, and are referenced in the script.
+
To compliment the English String Table, a variety of additional String Tables allow for equivalent strings to be supported across other languages.
+
 
+
;thumbnails
+
:Any asset may specify a thumbnail or preview image. The exact usage of this image may vary depending on the asset kind and the build of Trainz, but the following usages are historically common:
+
 
+
:32x32 - standard icon representation for display in lists.
+
:128x64 - `kind traincar' list icon in Surveyor.
+
:512x512 - `kind traincar' preview image in Surveyor.
+
:240x180 - Download Station thumbnail image - mandatory.
+
 
+
:'''Note:''' The Art files directory in previous versions of Trainz may now be replaced by the Thumbnails container.
+
 
+
:To allow for the generic specification of thumbnail images, the following format is adopted for TC onwards.
+
 
+
 
+
 
+
:Any number of thumbnail entries may be present, however it is recommended that no more than 3 images are used. The specified width and height must match the actual width and height of the image file in pixels.
+
 
+
;Supported image formats include:
+
 
+
:·  32-bit uncompressed targa (.tga) - this supports an alpha channel
+
:·  24-bit windows bitmap (.bmp)
+
:·  Jpeg (.jpg)
+
 
+
:When displaying an image, the closest-sized image required by the function (in terms of pixel dimensions) will generally be used in Trainz.
+
 
+
;Extensions
+
 
+
Third parties may sometimes wish to include additional config.txt tags in an asset's config.txt file for the purposes of providing asset-keyed date to custom scripts.
+
 
+
 
+
It is important that the following mechanism is used to prevent potential conflict with future Auran tags or other content creators.
+
 
+
  
  
All third-party tags must be embedded under an extensions container which is placed at the top level in
 
the config.txt file. Tags within the extensions container should have a meaningful name and should end with a hyphen and the
 
  
UserID of the content creator who is responsible for the extension. The responsible content creator should determine any rules and restrictions which apply to his or her tag and should make an effort to provide this information to other creators (outside the scope of the asset itself).
+
==Return to CCG Index==
While creators are permitted to make use of each other's extensions, it is not permissible to create a new extension (or change the meaning of an extension) in the namespace belonging to another creator.
+
[[Content Creator's Guide]]
Each tag in the extensions container may be either a single value, or a subcontainer. If a subcontainer is used, the contents of the subcontainer should be specified in the extension's documentation.
+
No restrictions are placed by Auran on the values within a specific extension, beyond the normal config.txt file format guidelines.
+

Latest revision as of 09:05, 6 June 2011

Contents

[edit] Common Containers and Tags

Some container and tags are common to every kind. The purpose of this chapter is to detail those common containers and tags, and to show their usage. These will not be described again in later Chapters.

Note: New tags and functions introduced in TC are covered in Appendix D.


[edit] Chapter 5 Contents

Across all kinds, a number of tags and containers are required as basic prerequisites (eg. kuid tags), while others apply to all kinds though they aren't mandatory (eg. author information tags).

This section details those tags and containers which are present in all kinds, as well as some of the more regularly used containers\tags.

The following tags and containers are defined in this chapter. Additional notes on their usage are shown in Chapter 6 where relevant.


[edit] Common Containers

● Kuid Table

● Obsolete Table

● String Table cn, cz, de,

es, fr, it, nl, pl, ru

● Thumbnails

● Extensions



[edit] Common Tags

● kuid

● trainz-build

● category-class

● category-region

● category-era

● username cn, cz, de,

es, fr, it, nl, pl, ru

● kind

● description cn, cz, de,

es, fr, it, nl, pl, ru

●· author

● organisation

● contact-email

● contact-website

●· category-keywords

●· license


[edit] Other Regularly Used Containers

Mesh Table

● anim

● auto-create

● animation-loop-speed

● critical-animation

● use-parent-bounds

● att

● att-parent

● opacity

● light

● test-collisions

● mesh

● night-mesh-base

● radius

● collision-parent



[edit] Effects

Name Effect

● name

● fontsize

● font

● fontcolor

Corona Effect

● kind

● att

● directional

● frequency

● max-distance

● object-size

● texture-kuid

● wave-shift


Texture Replacement Effect

● kind

● texture

Attachment Effect

● kind

● att

● default-mesh

● surveyor-only

Animation Effect

● kind

● anim

● looped

● speed



Tracksound Container

● track-sound

● priority

● track

● track-parent

● bogey

Soundscript Container

● repeat-delay

● distance

● ambient

● attachment

● nostartdelay

● trigger

● value-range

● volume

● sound


Queue Container

● size

● animated-mesh

● custom-attachments

● initial-count

● passenger-queue

● product-kuid

● allowed products

● conflicts-with-queues

● attachment-points

●· allowed-categories

Smoke Container

● attachment

● mode

● color

● rate

● velocity

● lifetime

● minsize

● maxsize

● accel

● conesize

● direction

● enabled

● endcolor

● faces

●· file

● inherit-velocity

● interpolate

● loop

● loopdelay

● maxrate

● maxspeedkph

● minrate

● period

● scale

● shift

● start

● texture

[edit] Other Regularly Used Tags

● alias

● autoname

● class

● dighole

● floating

● height

● height-range

● icon0, icon1, icon2, icon3

● icon-texture

● light

● preview-mesh-kuid

● preview-scale

● nightmode

● rgb

● rollstep

● rotate

● rotate-yz-range

● rotstep

● script

● snapgrid

● snapmode

● surveyor-name-label

● surveyor-only

● texture


Common Containers

Common Tags


[edit] Return to CCG Index

Content Creator's Guide