How to Create a HTML Asset
From TrainzOnline
HTML assets in Trainz consist of several parts:-
- a config.txt file which is mandatory
- (optionally) one or more HTML formatted text files of type .htm, .html
- one or more graphic files of type .jpg, .tga, .png, .bmp. One of these should be the asset thumbnail.
- (optionally) one or more sound files of type .wav
- (optionally) one or more folders
Config.txt
A standard config.txt file that must include the following tags:-
- kind set to "html-asset"
- username set to the page title
- kuid a unique ID number
- thumbnails a 240 by 180 pixel image
An example:-
kuid <kuid:45176:100207> username "TGR Fingal Line 1955 - Mixed Goods Sessions" trainz-build 4.5 kind "html-asset" author "pware" category-era "1950s" category-region "AU" description "HTML data for TGR Fingal Line 1955 Conara Mixed Goods Sessions - all versions" category-class "YH" thumbnails { 0 { image "thumbnail.jpg" width 240 height 180 } }