Content Errors In CMv2.0

Nerazzurri

New member
I've tried my first download of content (via CM) and the first thing I noticed was the the models not showing in the Rail Yard, despite the thumbnail and title being there. I downloaded using the Helper and it seemed to dl all the dependencies listed.

The model was decapods J94, Kuid2:130855:8:1, and it has a Faulty tag in CM. If I view the errors it displays these -

Error: The Tag ';cylinder' is not permitted within a container of type 'traincar'.
Error: The Tag ';safety' is not permitted within a container of type 'traincar'.
Error: The Tag ';standing' is not permitted within a container of type 'traincar'.

Can anyone help me with this please?

Regards, Gavin.
 
In CM, open the asset for edit in explorer. Open the config file with notepad and scroll down until you see the offending tags. Delete the ";" in front of the letters "c" and "s" and recommit. Unless other errors show up, you should be good to go.

tomurban
 
In CM right click on the faulty asset and chose edit in explorer.

Open the config.txt file in Notepad or a similar text editor (NB not Word) and find the line beginning with ;cylinder and delete the line.

Repeat for the lines containing ;safety aand ;standing.

Save the changes and exit notepad

Close the explorer panel.

Right click again on the asset and click on edit then commit.

The errors should have gone.

From memory the ; at the beginning of a line in older versions told Trainz to ignore the line but this is no longer used and the more stringent checking by newer versions throws up an error when it sees the ;.


Looks like tomurban pipped me at the post.
 
In CM, open the asset for edit in explorer. Open the config file with notepad and scroll down until you see the offending tags. Delete the ";" in front of the letters "c" and "s" and recommit. Unless other errors show up, you should be good to go.

tomurban

OK mate, tried deleting the ; saving and recomitting, but it made no difference.

Open the config.txt file in Notepad or a similar text editor (NB not Word) and find the line beginning with ;cylinder and delete the line.

Repeat for the lines containing ;safety aand ;standing.

The full lines, including the words smoke valve and drains which follow in the same lines as ;cylinder ;safety and ;standing?


EDIT: deleted the full lines and it worked a treat. Thank you. How do you guys know this stuff?! LOL.
 
Last edited:
From memory I would say yes because I think the ; at the start is used like REM in some other programs and means that what follows on the line is a description for what is in susequent lines.

To be safe right click on the asset then clone.

Then follow the instructions for the clone.

If it works and I think it should then do it on the asset and delete the clone.
 
You lost me at REM :confused:

But I followed your instructions and it worked. Thanks again.

Some older programming languages used the REM tag to let the program know that what followed on that line was a remark and was not compiled with the program. I used to use it as a way to remind myself of what the following routine was supposed to be doing when I went back and tried to debug the program. Some programs used the ; symbol or a //

The Trainz code doesn't like them and will give you an error although I wish there was a way to put remarks in the config.txt file. There may be, but I'm not aware of a way. If there's someone out there that could tell me how to include a remark or note to myself, it would be appreciated.

Mike
 
Guides?

I had a look for any sticky threads that might help troubleshoot these errors, but I don't see any. Does anyone know of other 'un-stickied' threads that would help me?

It does seem to be a common occurrence - I have other models with 'warnings', I just wanted to fix the one tagged 'faulty' first. It wouldn't be so much of a problem, for new people like myself anyway, if there was remedial information stickied somewhere. Maybe I've just missed it.
 
I had a look for any sticky threads that might help troubleshoot these errors, but I don't see any. Does anyone know of other 'un-stickied' threads that would help me?

It does seem to be a common occurrence - I have other models with 'warnings', I just wanted to fix the one tagged 'faulty' first. It wouldn't be so much of a problem, for new people like myself anyway, if there was remedial information stickied somewhere. Maybe I've just missed it.

Well, there's no 'one-stop' shopping for ways to correct errors although there are lots of threads on the forums to help in particular situations. One of the best places to start is with PEV's tools. You can download them here http://www.members.optusnet.com.au/~villaump/pevsoft.htm

Mike
 
OK, Mike, thanks. Btw, I like the last two entries of your signature LOL.

So basically it's a case of searching the forum for keywords and hoping you get lucky?

I thought I read somewhere the producers were trying to fix all the content on the DLS - I suppose with all the different builds, peoples systems, etc, it's just too much to get everything troublefree.

Ach well, just need to get searching and fixing.
 
The search tool on this forum isn't renowned for its efficiency, but I always try to start there. If that fails, then I have to resort to just scanning threads and posts or if all else fails, I ask.

In my opinion, there are no stupid questions. We all started somewhere and this program isn't necessarily intuitive. It's best to always search first though. You'll learn a lot just by going through the process and reading different posts.

Good luck

Mike
 
OK, I have an error causing a problem with a 4MT. I've read how to fix it but I'm not clear on one thing.

Problem -


Error: Texture 'class_4mt_tank_shadow/envmap1.texture' is missing or could not be loaded for mesh 'BR Class 4MT 2_6_4T Early crest\class_4mt_tank_shadow\class_4mt_tank_shadow.im'.

I know I need to find a similar file and edit it, but I'm not sure where to place it.

In that contents file there is 'envmap1.texture' at '4MT tank body'. Do I simply copy and paste that to 'class_4mt_tank_shadow'?
 
Usually, most (non-built-in) assets have a .tga and a .texture.txt file for each texture used.

If it is complaining about one not being present in a particular folder, but there is one in one of the other folders in that asset, then yes, copying and pasting is a good idea.

If it's a built-in asset, you will need PEV's Images2TGA tool.

Shane
 
OK Shane. It's not built-in. I tried the copy paste but it didn't work. In fact it threw up another error, so I reverted back to the older version LOL.

It's kuid2:193148:1329:1, a 4MT, and the exact text of the error is -

'Error: Texture 'class_4mt_tank_shadow/envmap1.texture' is missing or could not be loaded for mesh 'hash-B8\content e511rgdd13\class_4mt_tank_shadow\class_4mt_tank_shadow.im'.'

In the 4mt tank shadow folder there is a texture and tga file like you said there should be, and also an IM file titled 'class_4mt_tank_shadow.im' which is the one that can't be loaded accorded to the warning.

Hope that makes sense to you, or somebody else.

EDIT: I thought of sending the creator a PM but he's not been around for a couple of years.
 
Last edited:
OK Shane. It's not built-in. I tried the copy paste but it didn't work. In fact it threw up another error, so I reverted back to the older version LOL.

It's kuid2:193148:1329:1, a 4MT, and the exact text of the error is -

'Error: Texture 'class_4mt_tank_shadow/envmap1.texture' is missing or could not be loaded for mesh 'hash-B8\content e511rgdd13\class_4mt_tank_shadow\class_4mt_tank_shadow.im'.'

In the 4mt tank shadow folder there is a texture and tga file like you said there should be, and also an IM file titled 'class_4mt_tank_shadow.im' which is the one that can't be loaded accorded to the warning.

Hope that makes sense to you, or somebody else.

EDIT: I thought of sending the creator a PM but he's not been around for a couple of years.


Hi Nerazzurri,

you should copy and paste the envmap1.texture from another loco's files into that one, then commit the loco. its likely that it will have no affect though, so you need to install pevs PM2IM tool, select the .im file, click options and select "strip textures" and convert. As long as the .texture files in the folder, it should work.

Note: Make sure you deselect the strip textures after though, as it can mess up the textures of other locos if not used correctly.

hope this helps
 
Back
Top