"No Preview Available"

jrfolco

Route Builder
I recently created an asset in Gmax that I exported to CM3.3. It works well in content manager. When I launch Trainz it appears in my route, and can be readily installed. There are no errors in the asset.

I created a 240 X 180 pixel jpeg thumbnail, named it ‘stone_portal_light.jpg’ added it to the asset folder, and put the following in the config file:

thumbnails
{
0
{
image "stone_portal_light.jpg"
width 240
height 180
}
}

However, when I highlight the asset in Content Manager, I get ‘No Preview Available”.
I’ve done this numerous times in the past without a problem. I have 21 assets on the DLS that all show thumbnails, but for some reason, I’m unable to get the image for this asset to appear in Content Manager under asset details. If I double click on the jpeg file in the asset folder, it shows up in an image viewer.

Does anyone have any suggestions?

Thanks

Joe
 
I don't think that you need the 0, opening { and closing } that I have highlighted in red.

thumbnails
{
0
{
image "stone_portal_light.jpg"
width 240
height 180
}
}
 
I'm not sure if you NEED those characters, but I do know this works
as should Jrfolcos' example...

thumbnails
{
0
{
image "preview.jpg"
width 240
height 180
}
}

-AL
 
I like to admit my mistakes wihen I make them and I was wrong in my previous post. From what I see, it should work fine. Not sure what's going on.
Mike
 
Maybe it's your indentation that's wrong. Try this. Or just let cm do the work for you.

Code:
thumbnails
{
  0
  {
    image                               "preview.jpg"
    width                               240
    height                              180
  }
}
 
Thanks Guys for all of the replies. Here’s what I’ve done so far:

Imported the asset into TS12.

Opened ‘Driver’, did another screen print, cropped and set pixels to 240 X 180. Saved and moved to the asset folder. Again, this jpeg opens OK in a viewer.

Copied the ‘Thumbnails’ container from another config file, pasted into the asset config file, and changed the jpeg description to match the jpeg in the folder.

Created a new asset in CM3.3, and completely redid the folder. Works OK in Surveyor.

None of the above worked.

I copied the thumbnails container from another config file that I recently uploaded to the DLS, and pasted it into the new asset’s config file without changing the jpeg description.
I then copied the actual jpeg file from the first asset’s folder, and pasted it into the new asset’s folder. The thumbnail from the first asset now appears in asset details of the new asset in Content Manager.

If I attempt to change the thumbnail jpeg, and change the config file accordingly, ‘No Prevail Available’ shows up.

Awhile back, I acquired a sample copy of a config file with a Trainz build of 2.9. This build works with TS2009, TS2010, and TS12. I used this file to change 14 portals, piers, and spline ballast assets, and successfully uploaded them to the DLS. You can view them under my kuid 73500.

I used the same config file to create the new asset, but no thumbnail appears.

I’m at a complete loss why the thumbnail does not appear.

BNSF50-The indentation in the config file is exactly as you show it, however, when I paste it into a post, it all moves to the left.

Joe
 
Using your graphics editor, save the original .jpg file to a .tga file and save it
as a .tga file.

Erase the original .jpg file. Go back to the .tga file and resave it as a .jpg file.

Then copy the .jpg back to your asset.

This is a long shot. If the .jpg file is corrupt it may fix it.

-AL
 
BNSF50-The indentation in the config file is exactly as you show it, however, when I paste it into a post, it all moves to the left.

Joe


Yea that's what I thought but it was worth a shot. I know the forum won't retain indents unless you put the text in between the code brackets like I did.
Have you tried using the word preview as a name instead of the long name you have there. I always use preview so I don't know if a regular name will work or not as I've never tried it. Worth a shot though.
 
I certainly don't want to insult your intelligence, but are you certain the picture has been saved as a jpeg, and not a jpeg2000? I only asked because I made that mistake once myself.
 
Well, I found out what was causing my problem. It was actually a dumb mistake on my part.

In the past, when I clicked on New Asset, a window came up asking to pick a Kind. I picked Track, pressed New, and saved the file. I then copied and pasted a 2.9 build sample config file into the new config file, overwriting everything but the new kuid at the top of the page. After making the necessary changes to the config file, the asset was committed, and worked OK.

This time, however, I just saved the asset without picking the Kind, and that, I’m assuming, is what caused my problem. There is probably some hidden script in the config file that isn’t written if you don’t pick a Kind before saving.

Whatever the case, the thumbnail now appears when I highlight the asset in Content Manager.

Again, thanks to everyone who contributed to this thread.

Regards, Joe
 
Back
Top