User Tools

Site Tools


simulator:text_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
simulator:text_files [2018/09/20 12:32] – [Nesting] jhsimulator:text_files [2019/07/07 13:19] – [Character Set] jh
Line 38: Line 38:
  
   * ''<'',''>'',''['','']'', ''('', '')'' to define the tree structure   * ''<'',''>'',''['','']'', ''('', '')'' to define the tree structure
-  * white spaces for separation of lists+  * white spaces for separation of lists, indentations and additional spacing
   * digits from ''0 - 9'' with a dot ''.'' as decimal separator, minus ''-'' and plus ''+'' as signs   * digits from ''0 - 9'' with a dot ''.'' as decimal separator, minus ''-'' and plus ''+'' as signs
   * English-alphabet from ''A - z''   * English-alphabet from ''A - z''
Line 55: Line 55:
 A single opening pointy bracket ''<'' opens a new section and a ''>'' closes it. After each opening bracket three blocks in pairs of ''['' and '']'' follow. These define three parameters. A single opening pointy bracket ''<'' opens a new section and a ''>'' closes it. After each opening bracket three blocks in pairs of ''['' and '']'' follow. These define three parameters.
  
-<code><[type][classname][value]></code>+<code><[type][name][value]></code>
  
 The first parameter is a definition of the type for the following variable or content. This could be a ''file'', a class-name or object/attribute name as text (''string8''), a double number (''float64'') and so on. The first parameter is a definition of the type for the following variable or content. This could be a ''file'', a class-name or object/attribute name as text (''string8''), a double number (''float64'') and so on.
Line 73: Line 73:
  
 Spaces and empty lines can be used throughout the entire file, for example to indent the parameters better: Spaces and empty lines can be used throughout the entire file, for example to indent the parameters better:
-<code><[string8][object][class_name+<code><[class_name][ObjectName][]
-    <[string8][Name][ObjectNameA]>+
     <[float64][VeryLongAttributeNameThatWontEnd][1.0]>     <[float64][VeryLongAttributeNameThatWontEnd][1.0]>
     <[float64][SimilarAttribute]                [1.0]>     <[float64][SimilarAttribute]                [1.0]>
Line 87: Line 86:
 A comment is started by a double slash ''%%//%%'' and spans the entire line. Comments within a parameter (before a closing ']') are not allowed. All text inside a comment is ignored by the Aerofly FS 2 engine. A comment is started by a double slash ''%%//%%'' and spans the entire line. Comments within a parameter (before a closing ']') are not allowed. All text inside a comment is ignored by the Aerofly FS 2 engine.
  
-> ''/*'' and ''*/'' do not work as comment markings+> ''/*'' and ''*/'' do not work for commenting.
  
  
simulator/text_files.txt · Last modified: 2020/05/10 20:00 by jh