The approach has been kept simple, but allows tremendous flexibility, in addition to the external text file, there are two parts to using external data from a Data Source file.
First, less look at the format of the external text file, for example: station.txt
It needs a line that defines the data section like this:
After that line, any number of chunks of text can be defined in the form:
Data Source system commandThere is a system command that tells Sequencer the name of the external file that contains the text you wish to use. The named file will be in effect until a different Data Source command is used.
Data Source: Station.txt
If no path is specified, Sequencer will look for the file in the same folder as the current script file.
Text macro to insert the stored data wherever neededWherever you wish to use the data from the external file, use this format:
used with the sample file above will use the text: ICE 1634
Forcing the length
When inserting external text, you can force the text to be a specific length. This is important when putting data onto animated rows where you want to maintain neat columns. To specify the length append a pipe character (|) and the number of characters to the chunkname, for example:
Will pad or trim the train text to be 8 characters long.
A pair of sample files demonstrate the use of this feature. Look for the sample files: Scripts\Samples\BigScreen\Hamburg.ini
- The size of the text file is limited to 64K (but you can use as many files as you like)
- The encoding of the file is expected to be ANSI (not UTF-8)