Thumbnail not working

I made an asset and I keep getting the same error message: " x VE30: The tag 'image' in 'default' refers to a nonexistent file: 'nineteenseventies.jpg'". It appears that Trainz doesn't recognize any of the image files on my computer. Does anyone know how to fix this? Image here of errors here:

Image of thumbnail here:
https://www.theatlantic.com/photo/2013/07/america-in-the-1970s-the-pacific-northwest/100561/

It needs to be named 'thumbnail.jpg'. That's why you're getting that error. By the way, did you get permission from the owners of the photographs to use it as a thumbnail? If not then you can't use them.
 
As Jordon requested, paste a text copy of the config.txt file for your asset here so we can have a look. Otherwise it will be impossible to identify and solve your problem.
 
Thumbnail Tips for assets made with TRS19 and TRS22

The thumbnail must be a .JPG file, rename it to 'thumbnail.jpg'

The thumbnail must be one of 2 sizes, either 240x180 or 512x384. Up to 3 additional thumbnails can be added and must be named 0.jpg, 1.jpg, 2.jpg and must be 1280x800 in size

Use one of the following code snippets in your config.txt file

(best for scenery assets etc)
Code:
thumbnails
{
  0
  {
    image                               "thumbnail.jpg"
    width                               240
    height                              180
  }
}

(best for routes and sessions)
Code:
thumbnails
{
  0
  {
    image                               "0.jpg"
    width                               1280
    height                              800
  }
  
  1
  {
    image                               "1.jpg"
    width                               1280
    height                              800
  }
  
  2
  {
    image                               "2.jpg"
    width                               1280
    height                              800
  }
  
  default
  {
    image                               "thumbnail.jpg"
    width                               512
    height                              384
  }
}
 
Further to the advice above, everything the asset needs to work must be in the assets folder or directly accessible in the folders of other assets.

This applies to the:-

  • config.txt file
  • the thumbnail file - it does not have to be called thumbnail.jpg but it must be a .jpg image and its name must be in the config.txt file
  • the mesh file - if it is a visible object (house, tree, fence, blade of grass, etc)
  • any sound files - have to be .wav file format
  • any images (.jpg, .tga, .png are the most commonly used) and .html files for HTML assets
  • any script files - if applicable
must all be inside the asset.

If this is your first asset then I suggest you look at the Trainz Wiki for instructions. For example:-
https://online.ts2009.com/mediaWiki...e_a_HTML_Asset#How_to_Create_a_New_HTML_Asset for creating a HTML asset
https://online.ts2009.com/mediaWiki...e_a_Region_Asset#How_to_Create_a_Region_Asset for creating a region asset
https://online.ts2009.com/mediaWiki..._Create_a_New_Non-Environmental_Texture_Asset for creating a non-environmental texture asset.

Each type (KIND) of asset has its own rules as to what has to be included and what is optional. Likewise, the contents of the config.txt file is different for each type of asset.
 
Further to the advice above, everything the asset needs to work must be in the assets folder or directly accessible in the folders of other assets.

This applies to the:-

  • config.txt file
  • the thumbnail file - it does not have to be called thumbnail.jpg but it must be a .jpg image and its name must be in the config.txt file
  • the mesh file - if it is a visible object (house, tree, fence, blade of grass, etc)
  • any sound files - have to be .wav file format
  • any images (.jpg, .tga, .png are the most commonly used) and .html files for HTML assets
  • any script files - if applicable
must all be inside the asset.

If this is your first asset then I suggest you look at the Trainz Wiki for instructions. For example:-
https://online.ts2009.com/mediaWiki...e_a_HTML_Asset#How_to_Create_a_New_HTML_Asset for creating a HTML asset
https://online.ts2009.com/mediaWiki...e_a_Region_Asset#How_to_Create_a_Region_Asset for creating a region asset
https://online.ts2009.com/mediaWiki..._Create_a_New_Non-Environmental_Texture_Asset for creating a non-environmental texture asset.

Each type (KIND) of asset has its own rules as to what has to be included and what is optional. Likewise, the contents of the config.txt file is different for each type of asset.
Took your advice, it works now!
 
Back
Top