Help with PEV’s Quickshadows needed

Shane
I put the screenshot in a folder but referenced that folder and screenshot.jpg from the config file as per Sniper's sample and got the second error, before I only received the one stating preview.bmp failed to load.

Ken
 
It may be a bug - I would advise putting the screenshot.jpg into the root asset folder and changing the reference to there to avoid problems.

Shane
 
If you're using something like GIMP make sure you turn the texture compression OFF, since Trainz don't like compressed TGA files. For that one I would convert the BMP to UNCOMPRESSED TGA, then copy or move it to that \copytempsrc8s5j53hf13\ folder, and just delete the entire \cp_200068_(lars)_art\ folder.

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

Or thumbnail.jpg, whatever you name it, that syntax will look for it in the root folder (same one that has config.txt) and simplify the whole mess. For 2.9 and later a preview mesh is usually not needed unless it's a spline, for that I just add the preview mesh element and point it at the main mesh.

http://www.trainsim.com/vbts/showth...2009-and-later-versions&p=1721986#post1721986
 
I used PSP to convert the preview.bmp file to a 240 x 180 jpg. The file is now in the root folder but I still get the errors and warnings:

Warning: Aliased meshes cannot currently be verified by Trainz.
Warning: Progressive meshes are no longer supported by Trainz. Though these meshes may work in Trainz, it is recommended that you switch to a LOD mesh.
Warning: Progressive meshes are no longer supported by Trainz. Though these meshes may work in Trainz, it is recommended that you switch to a LOD mesh.
Error: The texture 'cp_200068_(lars)_art/preview.bmp' failed to load.

What seems strange about this asset is that the mesh table refers to non-existant items - there is no directory called 50ft_2door_boxcar_body nor a file called 50ft_2door_boxcar_body.pm. Similarly with the shadow directory and file.

Extract from the config file of CP 200068 (LARS),<kuid:87907:15102>

mesh-table
{
default
{
auto-create 1
mesh "50ft_2door_boxcar_body/50ft_2door_boxcar_body.pm"
}

shadow
{
mesh "50ft_2door_boxcar_shadow/50ft_2door_boxcar_shadow.pm"
}
}

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

How does this work?


Ken
 
How it works is it doesn't work. Just now downloaded it, what you're looking at there is an old 2.0 paintshed skin. The idea behind those was a "master" mesh that was aliased from the model, but at some point they decided to dump the whole aliased paintshed thing, probably due to performance issues. Looking at the KUID table for that one, one of the dependencies is;

50ft 2door boxcar,<kuid:-10:197>

That's where the mesh is it's looking for.

Two options if you want that particular boxcar and skin;
1. Clone the original 50ft 2door boxcar,<kuid:-10:197> and run that through the Images2TGA and PM2IM process, and open in content creator to update to 2.9. Then steal the skin from the CP_200068_(LARS),<kuid:87907:15102> and replace the original white skin in your clone with the CP skin.
2. Steal the folders and mesh from 50ft 2door boxcar,<kuid:-10:197> and pop it into what you have now, making a backup copy of the CP skin first, then copying that back in.
 
Thanks for that Sniper I just could not understand it.
Last November Cayden uploaded his MBC route (Mountains of British Columbia) but because of the lack of CP rolling stock he had to use quite a lot of old assets that would only work in compatability mode in TS2010. So last November I managed to fix about 20 different items that had simple config errors. I was left with just 6 that had more complex errors. Cayden has now released an update with more sessions but is still using the same assets so I thought I would set about fixing the remaining items. I fixed one and then came across the three that you helped me fix. I think I will gain some more experience on other items before I come back to the boxcar as in the meantime I can use compatability mode to replace the boxcar in the consist name the new consist and then use that version in native mode.
Thanks very much for your help it is much appreciated as you do need to understand some basic concepts to be able to progress with anything as you would say teach a snake to tap dance.

Ken
 
Last edited:
Back
Top