Help:VE146

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(Created)
 
(Added example)
 
Line 3: Line 3:
 
There are a number of tags that require an asset to be included as the tag value.  This includes some tags that are user-supplied names or labels, such as an entry in a 'kuid-table' container, or an entry in the 'allowed-categories' container. As these tags are optional, the error is a warning and the entry is ignored.
 
There are a number of tags that require an asset to be included as the tag value.  This includes some tags that are user-supplied names or labels, such as an entry in a 'kuid-table' container, or an entry in the 'allowed-categories' container. As these tags are optional, the error is a warning and the entry is ignored.
  
For example:
+
For example, the config.txt file for a traincar asset included a queue container:
  
! VE146: An asset must be specified for tag '0'.
+
  load0
 +
  {
 +
    size                                30
 +
    initial-count                      0
 +
   
 +
    allowed-products
 +
    {
 +
      1                               
 +
    }
 +
  }
 +
 
 +
The error message was
 +
 
 +
! VE146: An asset must be specified for tag '1'.
 +
 
 +
If an allowed products subcontainer is included, then an asset kuid for that product must be provided.
  
 
The fix is:
 
The fix is:
* Remove the tag if it is not required.
+
* Remove the tag (or the container) if it is not required.
 
* Add or fix the asset reference in the tag.
 
* Add or fix the asset reference in the tag.
  
 
[[Category:Validation Errors]]
 
[[Category:Validation Errors]]

Latest revision as of 10:44, 23 August 2016

An asset must be specified for tag tagname.

There are a number of tags that require an asset to be included as the tag value. This includes some tags that are user-supplied names or labels, such as an entry in a 'kuid-table' container, or an entry in the 'allowed-categories' container. As these tags are optional, the error is a warning and the entry is ignored.

For example, the config.txt file for a traincar asset included a queue container:

 load0
 {
   size                                30
   initial-count                       0
   
   allowed-products
   {
     1                                 
   }
 }

The error message was

! VE146: An asset must be specified for tag '1'.

If an allowed products subcontainer is included, then an asset kuid for that product must be provided.

The fix is:

  • Remove the tag (or the container) if it is not required.
  • Add or fix the asset reference in the tag.
Personal tools