Attempting to add a thumbnail to CM v3.6 "FMA instant grass a 30x20" v2.0

xcrossi

New member
Hello and good morning:

Attempting to add a thumbnail to CM v3.6 "FMA instant grass a 30x20" v2.0

I open AssetX and add and edit the thumbnail container- commit.


Thumbnail shows up ..but with warnings and no show in surveyor


Warning: This asset uses an obsolete trainz-build number.
Trainz-build numbers below 2.7 are no longer supported.


Warning: Required tag 'length' was missing and
has been set to default.


Warning: Required tag 'width' was missing and
has been set to default.


I re-load to AssetX and run update to 2.7 and 1_Tradis scripts.


Still no show in surveyor


Warning: Required tag 'length' was missing and
has been set to default.


Warning: Required tag 'width' was missing and
has been set to default.


Re-load to AssetX And attempt to add length and width containers.
length and width containers not listed in AssetX tag menu.


length and width containers not listed in CC+ tag menu

length and width containers not in any 2.7+ spline cfg I looked at.



I have doz of spline type assets of trz v 2.6 and below that I cannot up-date
or just add a thumbnail.


Just for starters how do I add a CM v3.6 thumbnail to a 2.0 spline asset without
errors.



Gerry
 
DELETED - I did not read the original post correctly - a heavy night last night !
 
Last edited:
I just used AssetX to add a thumbnails container via its menu; Repair\Update Thumbnail Table.

Whatever way you do it, manually or with AssetX, the container should end up with a structure like this;

PHP:
thumbnails {
  0 {
    image                                 "$screenshot$.jpg"
    width                                 240
    height                                180
  }
}

In this case, the asset already had a thumbnail image called $screenshot$.jpg in the same folder as the config.txt file. That may have been a requirement to make the AssetX thumbnails script work properly, I'm not sure.
 
Last edited:
You will have a thumbnail file in the root of your asset, in the case below, $screenshot$.jpg

Then you will need this:

Code:
thumbnails
{
  0
  {
    image                               "$screenshot$.jpg"
    width                               240
    height                              180
  }
}

Where width and height are the dimensions of your image.
 
Sorry ..your not reading my post correctly.

I know how to add a thumbnail.

May I suggest that you DL "FMA instant grass a 30x20" v2.0

and add a thumbnail with AssetX / commit and see if you can place the asset in surveyor.

Bet you can't....
 
It's been a while, but iirc for trainzbuild 2.0 there was no mention of thumbnails in the config. All that was needed was a 180 x 240 $screenshot$.jpg in the asset's root folder and Content Dispatcher sorted things out. How that translates into error-free content in later trainz versions I have no idea, but I suspect if you want to include a thumbnail 'container' in the config you will need to up the trainzbuild number.....
 
Sorry but I have just added a thumbnail and it works in TS12, just the two warning, one about versions below 2.7 not supported,
the other refers to bendy 3 being a non boolean value. There is no such value as 3 it has to be bendy 1 or bendy 0 as it's boolean value ie on or off 1 or 0.
All I did was create the thumbnail as $screenshot$.jpg using images2tga and then open in AssetX and add the thumbnail container, I did not touch anything else. It is still Trainz build 2

If you want to get rid of the not supported warning you will need to change to build 2.7 or 2.8 and use 2.7 compatible config with a mesh table, if you want it at build 3.6 for TS12 you will have to use a stitched mesh config as old style splines are rejected.
 
Thanks, But:
Bendy 1 or 0 ?

How do I make a :

" 2.7 compatible config with a mesh table"

and/or

" build 3.6 for TS12 you will have to use a stitched mesh config "

Thanks to all for help
Gerry
 
Last edited:
Thanks, But:
Bendy 1 or 0 ?

How do I make a :

" 2.7 compatible config with a mesh table"

and/or

" build 3.6 for TS12 you will have to use a stitched mesh config "

Thanks to all for help
Gerry

Bendy 1 means it will bend, bendy 0 means it will won't

Note there are no quotes round 1 so it reads

Code:
bendy                   1

For 2.7 or 2.8, all you need to do after adding the thumbnail is change the build to 2.8 and add a mesh table. Do not use AssetX on splines, as it removes required tags and won't create a mesh table, splines need to be done manually. Just copy and paste this bit at the bottom of the config.

Code:
mesh-table
{
   default
  {
     mesh                             "grass.im"
     auto-create                    1
    }
}

Stitched mesh, is somewhat complicated and probably something to leave alone until absolutely needed.
 
Thanks so much.

Sometimes it takes just the right explanation to sink in.

I really got it this time and now correcting all kinds of splines
I've stored for months.

Do not use AssetX on splines, as it removes required tags and won't create a mesh table

As applied to this problem AssetX was not the right app to use.


I'm saving all info

Very grateful
Gerry
 
"Do not use AssetX on splines, as it removes required tags and won't create a mesh table"

I wish that warning had been in huge red letters on the opening screen for Asset-X !
I ruined so many splines before I realised Asset-X doesn't know what its doing with this kind of object.
 
Back
Top