Need Help with An Asset Config File, Plz

  • Thread starter Thread starter Orloldman
  • Start date Start date
O

Orloldman

Guest
I downloaded a locomotive from the DLS but it shows a missing dependency in CM v3.2 that I can't seem to find but I think the asset's config file has an error in it and that is what is causing the missing dependency.

Below is a cut down version of the config file. If I count the number of dependencies listed outside of the KUID table (in bold), I get a total of 5. Looking at the KUID table, I see 6 listed there.

Can I assume that the odd KUID in the table (<kuid2:-1:-1:0>) doesn't really belong and can be deleted?

kuid <kuid:45588:558>
trainz-build 1.3
origin "USA"
bogey <kuid:-10:175>
engine 1
name "GP7 V&O 270"
mass 104326
company "Virginian & Ohio"
interior <kuid:-1:101475>

enginespec <kuid:-1:42004202>
enginesound <kuid:104722:53567>
hornsound <kuid:-1:42003101>
description "
asset-filename "GP7 V&O 270"
username "GP7 V&O 270"

kuid-table
{
0 <kuid:-10:175>
1 <kuid2:-1:-1:0>
2 <kuid:-1:101475>
3 <kuid:-1:42004202>
4 <kuid:104722:53567>
5 <kuid:-1:42003101>
}

I can't seem to find this 'orphaned" KUID number (listed in the KUID table as #1) anywhere, DLS or otherwise. If I delete it from this config file, the missing dependency goes away but I get some very bizarre errors for this asset, such as:

Error: The texture file 'gp7 v&o 407_body/nv_glas.texture.txt' contains non-ANSI characters. Textures must be ANSI.
Error: The texture 'gp7 v&o 407_body/??' failed to load.

When I check, the "nv_glas.texture.txt" file has no non-ANSI characters in it and I don't show a .txt or graphics file called "??I" (or whatever that symbol is!!).

I've tried running the mesh and texture files through PEVs tools but still no go.

I also noticed that the file name in the error doesn't match the actual file name in the asset ("glas" vs "glass"). Changing the names to match causes no difference to in the errors I get.

Is this one of those assets that's just not fixable for newer versions of Trainz or am I missing something? Any ideas on this one are appreciated!

Duane
 
kuid2:-1:-1:0 should read kuid:-1:0 which is a builtin f7 bogey.

CM validation of PM files is not as stringent as IM. pm being obsolete anyway. So it is not unusual for faults to show up after conversion.

nv_glas.texture.txt. Mesh Text Viewer shows file is called for. Change alpha=crap to alpha=env_glass.bmp. It should have been env_glass.texture.txt and you already have that.

For window+interior.texture.txt change to window_interior.texture.txt.

When you use PEV's PM2IM it found the + and changed it to underscore in the mesh. You need to rename the texture.txt.

You could also clean up the config file by:

updating category-era and category-region formats
getting rid of any tags that have no values such as the personal details.
Replace tag thumbnail with thumbnails container.
Update tag bogey to bogeys container.

Note also that bogey is non-animated.
 
Last edited:
Any time I edit config.txt file to correct an error, I delete all entries in the kuid-table since it is not required in TRS2006, 2009 or 2010.

Bob
 
Thanks for the help with this one.

I was repairing this creators assets that I have downloaded and I kinda got into a groove as the same errors crop up time and again with certain model types but this one was different and threw me off.

I didn't even really notice the meaning of the env_glass vs. the nv_glas when it came to missing that rogue texture.txt file.

Thanks again
Duane
 
Back
Top