Need help to fix a CN lightweight coach

sdpnz

New member
Please it comes up with this

Error: Unable to load mesh file: 'cn_w_coach_shadow\cn_w_coach_shadow.im'

And I'n not good at trying to fix this sort of thing,

Or know where to start for that matter.

Kind regards.

sdpnz.
 
in the CMP open the file "edit in explorer" and look in folders to see if the IM files are theyre......
If they are close the folder in explore re open in "EDIT IN CCP"
you ll see on the right side a folder tree click on the "MESH" folder
it will say "default" open it on the new window click the tab and add the im file to it...
Then do the same for the "SHADOW" folder save and commit your good to go......
 
And if the shadow.im file isn't present download PEV's QuickShadows program. You can easily create the necessary shadow file with it.
 
You need to add in code like this:

mesh-table
{
default
{
mesh "\cn_w_coach_body\cn_w_coach_body.im"
auto-create 1
}

shadow
{
mesh "cn_w_coach_shadow\cn_w_coach_shadow.im"
}
}

Just make sure you put the shadow in the correct folder for the program to find it, otherwise you'll get an error and have to fix it.

As a rule, I save my config.txt file and then rerun the view errors and warnings. If any errors occur now, it saves having to reopen the asset and then having to recommit again.

John
 
You need to add in code like this:

mesh-table
{
default
{
mesh "\cn_w_coach_body\cn_w_coach_body.im"
auto-create 1
}

shadow
{
mesh "cn_w_coach_shadow\cn_w_coach_shadow.im"
}
}

Just make sure you put the shadow in the correct folder for the program to find it, otherwise you'll get an error and have to fix it.

As a rule, I save my config.txt file and then rerun the view errors and warnings. If any errors occur now, it saves having to reopen the asset and then having to recommit again.

John



Sorry for the delay but i'mno good at putting that in the config file as I tried but some how stuffed it up.


sdpnz,
 
Sorry for the delay but i'mno good at putting that in the config file as I tried but some how stuffed it up.


sdpnz,

No problem, sir.

Open up the asset for edit in explorer using Content Manager (CM).

Open the config.txt file in Notepad. (By default it'll open in notepad).

Choose an empty space before or after any blocks with curly brackets {}
Personally I put mine just after the text and before any brackets. This ensures that I'm not munging the lines together into a mess.

Here's an example of a config file (portion)

icon0 <kuid:-3:10164>
bogey <kuid:86105:50001>
bogey-1 <kuid:86105:50001>

mesh-table
{
default
{
mesh "CabooseLargeDerrickCraneNS_body/CabooseLargeDerrickCraneNS_body.im"
auto-create 1
}

shadow
{
mesh "CabooseLargeDerrickCraneNS_shadow/CabooseLargeDerrickCraneNS_shadow.im"
}
}
engine 0
mass 21000
kind "traincar"
.
.
.
etc.

The two bold lines are the path where the shadow is located.

Now when you use PEV's tools to create the *.im folder, this file is in the body folder, or wherever it is in that particular model.

When you use the Quick Shadow tool, this will, by default, place the shadow in the same folder where the body mesh is located. You can simply edit your config.txt file to reflect this location. The Quick Shadow mesh is usually called shadow.im So when you edit your config file, ensure that the line referring to the shadow reflects this same name.

Once you're done editing the file, do a Save in Notepad.
Go back into CM without closing the folder and committing the asset, and rerun the error check on it. This will point out any typos if any you have, and all you need to do is then reopen the config.txt file and fix your error.

This is, believe me a lot easier to show you, then it is to explain in writing.

John
 
Next silly Q: I've never used PEV software fix it up stuff but i'm trying and getting no where fast at the moment.

But I have noted that the shadow file has nothing in it's folder

sdpnz.
 
Last edited:
But I have noted that the shadow file has nothing in it's folder

sdpnz.
That's the problem. You need to use QuickShadows to create the shadow file.

First open the asset for editing, using that option on the right-click menu for the asset.

Run QuickShadows. Browse to the asset folder in the Editing solder and locate the .im or .pm file which will be located somethere in that set of folders. Tell QuickShadows to create the shadow file.

Now open the asset in CC Plus. Expand the mesh sub-tree in the left pane to find the subkey for the shadow mesh and click on it. In the right pane you should see a box for the mesh file name. Click on it and browse to the location where you created your shadow. Select the newly-created shawow.im file.

Exit CC Plus and save your file on exit.
 
If there is not shadow mesh then just delete this part of the config.txt file:

shadow
{
mesh "cn_w_coach_shadow\cn_w_coach_shadow.im"
}

then save and commit.

Bob Weber
 
Thanks Rweber95 that did the job and the coach shows up but then so does the red bug in the bottom right hand side of the screen.

sdpnz.
 
The red button is usually an indication of a script problem, probably due to the script being written for an older version of Trainz and is now incompatible with a new version. If you click the button then the more button you'll find more info on what the problem is.

Bob Weber
 
Back
Top