What Is Wrong With This Config. File?

GN1996

Not a real user title.
I need to add a thumbnail to two of my assets; a route and its session. The thumbnail will not load. I get the gray box with the "no preview available" text every time. Could anybody tell me if this portion of the config. file (for the session) is correct or wrong? If it is wrong, what is the issue?


kuid <kuid:653172:100407>
username "Thompson and Western MP Session V1"
kind "profile"
description "This session is able to accommadate up to 18 people. There are 2 passenger trains, several switching jobs (road and local), and several mainline trains. Runs smoothest with at least 3 people."
map-kuid <kuid:653172:100324>
category-region "US"
category-era "1990s;2000s;2010s"
category-class "YP"
trainz-build 3.6

thumbnails
{
0
{
image "thmpandwstrn.jpg"
width 240
height 180
}
}
 
Last edited:
Can't see anything wrong with the config, I assume that your jpg is actually 240 x 180 in size? as it won't appear if it isn't and will need physically resizing. Or you have you saved the file as a tga or bmp instead of a jpg?
 
I took a screenshot from the route and session and did no editing. I just attached it to the assets. what would be the best way to edit the photo? The program "Paint"?
 
Use CCP to create the JPG for you. Choose edit in CCP and right click on the "+". It open a new menu, with many choices, one of which is "create thumbnail".
 
Ok, but can I edit the picture size with Paint? If so, I will just use that.

I inititally did that Tom, but when I tried to upload the route and session, the thumbnail was not found.
 
Last edited:
"The Gimp" will do it, so will "IrfanView". Both are free, google will find them.

Yes, Paint will do it.

Ken
 
Last edited:
I took a screenshot from the route and session and did no editing.

As stated above, any thumbnail must be 240 x 180. Your screenshot will not be this size; the actual size will depend on your screen resolution and to get it to 240 x 180 may not be a question of proportional resizing. If so first select an area which is in the right ratio, 4:3, then proportionately resize that to 240 x 180.

Ray
 
Ok, but can I edit the picture size with Paint? If so, I will just use that.

I inititally did that Tom, but when I tried to upload the route and session, the thumbnail was not found.

You probably missed this step. When the create a thumbnail window is open, it provides a box for width (240) and height (180). Just above that is another box for locating the jpg or tga image which ideally should already be in the config file.CCP will automatically resize the image to the required dimensions.
 
You probably missed this step. When the create a thumbnail window is open, it provides a box for width (240) and height (180). Just above that is another box for locating the jpg or tga image which ideally should already be in the config file.CCP will automatically resize the image to the required dimensions.

That didn't work. I have tried using CCP and editing the configuration file, but neither have worked.
 
Just a simple suggestion....make sure that your thumbnail has the same name and file extension as the entry in the config file.

Reading that details that you have pasted above its difficut to see why this is not working for you as everything there seems fine

Andy
 
I tend to use Paint.NET for my thumbnails. It's easy to resize your images and undo mistakes.

I agree that Paint.net is the best of the free graphics programs.
It is open source and has lots of useful plug-ins. I even use it to create my normal maps.
Mick Berg.
 
I need to add a thumbnail to two of my assets; a route and its session. The thumbnail will not load. I get the gray box with the "no preview available" text every time. Could anybody tell me if this portion of the config. file (for the session) is correct or wrong? If it is wrong, what is the issue?


kuid <kuid:653172:100407>
username "Thompson and Western MP Session V1"
kind "profile"
description "This session is able to accommadate up to 18 people. There are 2 passenger trains, several switching jobs (road and local), and several mainline trains. Runs smoothest with at least 3 people."
map-kuid <kuid:653172:100324>
category-region "US"
category-era "1990s;2000s;2010s"
category-class "YP"
trainz-build 3.6

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

You do mean Like this:


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

Right?
 
Last edited:
I've made hundreds of thumbnails, and have yet to have an issue. I take the screenshot from the game and crop it with PSP8, then re-size it to 240 x 180 and save it as the screenshot in the object's folder. You can take screenshots from PEV tools, and as you already know CCP. Open the file and make sure it's a jpeg. I really can't think of anything else to advise, except after the changes are made, the object must be committed in CM.
 
Back
Top