funnnyfarm
New member
Dose anyone know how to fix this error? "Error: Unable to load mesh file: 'sd40-2b_shadow\sd40-2b_shadow.pm'". Thanks funnnyfarm
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
open the asset folderCan you tell me where the .im and .pm files are? thanks funnnyfarm
torino72 The PM2IM is only for pm to im. Can you please tell me how to change the suffix from im to pm? thanks funnnyfarm[/QUOTE
You do that using PM2IM which converts the format and automatically creates the IM File.
Once you've created your IM file, you can then create your shadow mesh using the Quick Shadows program from PEV, and then copy the shadow.IM to the Shadow folder for your asset.
After all that is done...
Add the following container to your config.txt and change the names to fit your asset.
mesh-table
{
default
{
mesh "xpt_cl_new_xd_body/xpt_cl_new_xd_body.im"
auto-create 1
}
shadow
{
mesh "xpt_cl_new_xd_shadow/shadow.im"
}
}
The process takes about 2 minutes to fix. Save this mesh-table information to a text file so you can use it again for another asset.
John
Funnyfarm: I simply renamed the im file to have a pm suffix while I had it in the temp1/sd40-2_shadow folder outside Trainz. I tried the file with an im suffix but the error was still there. I see no way to rename anything in the config file. The asset is looking for a pm file and will not accept anything else. This worked for me in 2010 but, as I said, I do not know whether it will work in 2012. I got a warning that if I changed the file suffix the file might not work but I renamed it anyhow and it did work in 2010. I have Windows set to display all file suffixes; not sure how you have yours set.
JCitron, normally I would not question the experts. But, pull down the SD40-2b by Phil_C (kuid:86105:6212) and see if you can get it to work with an IM shadow file. This is an old Trainz-Build 1.3 asset. There is no PM file to convert to IM. I tried adding your mesh_table and a shadow IM file from a SD40-2b built to work in TS2010/12 (everything renamed to match what this asset is looking for) and the same errors are still there. It is looking for a PM file and cannot find it. Based on what is in the config file and asset folder, I'm not sure what is telling it the supposed location of the shadow PM file, but it is demanding a sd40-2b_shadow/sd40-2b_shadow.pm file.
For the above. Ran it through AssetX to bring it up to a more current state, Pm2IM couldn't find the pm, been here before so renamed the pm file to im then ran pm2im on it, that works for some obscure reason, perhaps it actually is an IM file with the wrong extension? then ran quickshadows on it, job done.
The OP's problem may be similar?