Frustrated-texture.txt errors

rwk

Well-known member
I'm trying to modify a built-in item and I converted all the textures to tga's and added texture.txt files, but CM3 is giving me texture.txt is missing errors even though I have them in there. What do I do? In 2010, the railcar is invisible and the name shows up as red. Is there a way to fix this?
var geo_Partner = 'e4f5c72a-6083-499d-94f4-929aa4d23e06'; var geo_isCG = true;
 
Yes. Open notepad. Now, go into the asset, and you will notice other notepad documents. If you open one, you will see something like this:
primary:(insertnamehere).tga
tile sl

or something like that. copy and paste that into your open notepad. Then, figure out what .tga file is supposed to be referenced by the missing texture.txt file, and place it in the spot next to primary in place of the other .tga name.

Then save it as the name of the missing texture.txt file.
Example: Wheels.texture.txt probably references wheels.tga

Then just throw that .txt file into the asset and you should be good to go.
 
Hello

There is some assets that always report this error even if needed files exists, and there is no way to solve that. A bug of TS.

i.e. : shell volvo <kuid:41426:29028> by boweavel
the file env_metal.texture is needed by the shell_volvo.im
Even if a file named env_metal.texture.txt exists and if that file refers to env_metal.tga which also exists, then TS always reports this error.
 
Hello

There is some assets that always report this error even if needed files exists, and there is no way to solve that. A bug of TS.

i.e. : shell volvo <kuid:41426:29028> by boweavel
the file env_metal.texture is needed by the shell_volvo.im
Even if a file named env_metal.texture.txt exists and if that file refers to env_metal.tga which also exists, then TS always reports this error.

That sounds like the 'texture in the wrong slot' problem, PEV's PM2IM can fix it if 'strip textures' is turned on.

Basically, 3ds/gmax/blender all support a number of texture slots, for things like diffuse maps (basic colour), specular maps (for reflection maps), etc. Often an asset creator puts textures in many of these slots as it aids in getting things looking right in preview renders in the 3d editor.

Trainz only supports a handful of these slots, but if a texture is in a slot that isn't supported then trainz will demand that texture be present, but not actually be able to load it if it is.

'strip textures' in PM2IM will remove textures that are in unsupported texture slots.

(The asset you quote and the fact that you're talking about a metal environment map suggests it's probably the specular map slot that is the problem)
 
thank you ! that's great !

PM2IM effectively fixed this bug. I will try that on some others that i failed to fix.

Thank you again, NikkiA. I will relay this information on french forum, nobody there was able to help me.
 
The problem is solved and the asset now works. I converted the textures to tga's, did my repaints on the tga, added texture.txt's, and deleted all the original texture files.
var geo_Partner = 'e4f5c72a-6083-499d-94f4-929aa4d23e06'; var geo_isCG = true;
 
Back
Top