"Unable to load texture..."

nfitzsimmons

New member
Not sure what thread to post this under, so I'll put it here.

I've done a bunch of topic searching here and found a number of contradictory answers.

I have downloaded a number of assets that give the "unable to load <whatever> texture" error. When I edit in Explorer the texture file is present in the correct location, it's openable in PaintShop without problems, the name is correct and matches the name in the .texture file (if applicable.) If it's a TGA file it's not saved in compressed format.

I've tried running many of these through Pev's IM converter, and stripping the bad textures, but for a bunch of these nothing seems to fix the problem. Since I'm definitely not a content creator, I'd appreciate anyone's experiences at fixing this.

I've tried copying an identical texture file that works fine in another asset, and that doesn't fix the problem. Is this a problem in the specicif mesh, texture stripping notwithstanding?
 
For "normal" content, the meshname.im (whatever the name of the mesh is) is looking for SomeName.texture.txt. In that file it lists the name of the SomeName.tga. For built ins the SomeName.texture.txt and SomeName.tga are compiled into a single SomeName.texture file. That's the usual "unable to load" error, usually curable with Images2TGA - if that doesn't automatically delete the SomeName.texture file after creating SomeName.texture.txt and SomeName.tga, I always delete it manually to force the game to load my repainted TGA file instead of taking the shortcut and loading the old .texture image instead.

For other errors you have to think like a computer program and look at it the way a computer program would - the human eye fills in the blanks, computer programs do not. Example,

SomeName.texture.txt
Some Name.texture.txt
Some_Name.texture.txt
Some-Name.texture.txt

If the error message says;

"Error: Texture 'Some-Name.texture' is missing or could not be loaded for mesh 'MeshName.im'."

Check for EXACTLY what that says, if the mesh is looking for Some-Name.texture.txt it will blow right past Some_Name.texture.txt since it's not the exact name it's looking for. Renaming the Some_Name.texture.txt file to Some-Name.texture.txt is required to fix it, to a computer program "close enough for Disco" don't count.
 
been there

Annoying isn't it, run the body im file/folder through PEVs Pm2IM tool and set it to strip speculars.
Within the im file/folder the texture has an illegal tag (in 2010+2012) with it ie-TEX SPECULAR, which is why the error shows.
 
Texture Problems

There are several causes of the texture problems that are found in some Trainz assets, most of which can't be corrected using PEV's PM2IM utility. These include:
1. The graphic referenced by a graphicname.texture.txt file is not present,
2. The texture graphic X,Y pixel size(s) are not a power of 2,
3. The graphic file is compressed,
4. Typos in the graphic filename or the graphicname.texture.txt or its contents,
5. Texture is applied to an illegal slot,
6. Graphic is missing,
7. Graphicname contains illegal characters.
PM2IM will only correct 5 and7. To isolate the cause of the others requires the use of PEV's Mesh_Text_Viewer to examine the data in a mesh file or opening the kuid for Edit in Explorer to check for errors. The worst possible error is 7 because CM will not load a file with illegal characters. The only way I've found to fix this is to download the kuid into TRS2004 and then edit the filename to agree with the new filename that PEV's PM2IM will create in the mesh file.

Bob Weber
 
I need some help with this error (relevant to the subject of this thread). I am trying to fix the asset "Outhouse 1" by Zorronov, available here. CM is showing it as faulty with the following errors:

Error: Texture 'Outhouse 1 normalsmap.texture' is missing or could not be loaded for mesh 'Outhouse_1.im'.
Error: Texture 'Outhouse 1 normalsmap.texture' is missing or could not be loaded for mesh 'Outhouse_1.im'.

Yup, they are both the same error. :p

The .texture.txt file that the errors are referring to and its corresponding TGA image are both there and appear to be named correctly. I have tried running the mesh through PM2IM with it set to strip textures (even though examination of the mesh in Asset-X does not show any unsupported texture types being used), resaving the TGA image in question in both GIMP (with the RLE Compression option not ticked) and IrfanView, etc., yet no matter what I do, CM still says that it is faulty. :eek:

Does anyone know how to fix this?

Thanks!

--Retro.
 
I need some help with this error (relevant to the subject of this thread). I am trying to fix the asset "Outhouse 1" by Zorronov, available here. CM is showing it as faulty with the following errors:

Error: Texture 'Outhouse 1 normalsmap.texture' is missing or could not be loaded for mesh 'Outhouse_1.im'.
Error: Texture 'Outhouse 1 normalsmap.texture' is missing or could not be loaded for mesh 'Outhouse_1.im'.

Yup, they are both the same error. :p

The .texture.txt file that the errors are referring to and its corresponding TGA image are both there and appear to be named correctly. I have tried running the mesh through PM2IM with it set to strip textures (even though examination of the mesh in Asset-X does not show any unsupported texture types being used), resaving the TGA image in question in both GIMP (with the RLE Compression option not ticked) and IrfanView, etc., yet no matter what I do, CM still says that it is faulty. :eek:

Does anyone know how to fix this?

Thanks!

--Retro.

I have had some success with this. Find an image file similar in appearance to what you need. Use copy and paste to bring it into the correct folder. Then rename it using the same name as the text file. I don't know why, but occasionally you come across an image file that will just not work.

tomurban
 
I just tried your suggestion by copying a known good blank normal map from one of my TS2009+ ground textures and renaming it to replacing the outhouse's normal map. CM is still showing the same errors. This one is a pain in the butt. That is what it is. :(

Regards,

Retro.
 
I just tried your suggestion by copying a known good blank normal map from one of my TS2009+ ground textures and renaming it to replacing the outhouse's normal map. CM is still showing the same errors. This one is a pain in the butt. That is what it is. :(

Regards,

Retro.

I just downloaded and installed the outhouse. The fix is an easy one. Just delete the two offending normalsmap files, both text and TGA. They are not needed and probably left over from its creation. Mine now shows error free in 2010 CMP and in game. That happens sometimes.

tomurban
 
PEV HELP!

I checked the Outhouse 1 <kuid:267178:1549> outhouse 1.im mesh with PEV's Mesh_Text_Viewer and see that the normalsmap is applied as TEX_BUMP just like in other normal mapped objects. The graphic is sized power of 2 and uncompressed. Yet, CM3.3 shows Error: Texture 'Outhouse 1 normalsmap.texture' is missing or could not be loaded for mesh 'outhouse_1.im'.
If I use PM2IM (2.01) it doesn't change anything. If PEV sees this, please comment.

Bob Weber
 
I think that I may have figured out the problem with the outhouse. I thought about this possibility when in bed (I believe) last night, and viewing the mesh as text in Asset-X confirmed what I thought.

The material for the model specifies a normal map using the TEX_BUMP slot, which is fine. But look at the materail type specified in the material name: m.onetex! The correct material names for normal-mapped materials are m.tbumptex and m.tbumpgloss for non-reflective and reflective normal-mapped materials, respectively. :o

Looks like Zorronov made a little boo-boo when making this model. :o

@tomurban: I believe that I have already tried that, and I just now tried it again, and it did not work (unless I am supposed to commit the asset before checking for errors).

Regards,

Retro.
 
The problem is in the mesh where the material name does not end in "m.tbumptex",.. It's calling up "m.onetex" which is expecting only a diffuse texture..

My published tools cannot fix this fault.
 
I think that I may have figured out the problem with the outhouse. I thought about this possibility when in bed (I believe) last night, and viewing the mesh as text in Asset-X confirmed what I thought.

The material for the model specifies a normal map using the TEX_BUMP slot, which is fine. But look at the materail type specified in the material name: m.onetex! The correct material names for normal-mapped materials are m.tbumptex and m.tbumpgloss for non-reflective and reflective normal-mapped materials, respectively. :o

Looks like Zorronov made a little boo-boo when making this model. :o

@tomurban: I believe that I have already tried that, and I just now tried it again, and it did not work (unless I am supposed to commit the asset before checking for errors).

Regards,

Retro.

Yes, you must commit before rechecking. Committing saves the changes that you made. It works believe me.

tomurban
 
You have to remove the reference to the normal map from the mesh or rename the material in the mesh.

I did the latter and it works perfectly, normal map and all.
 
You have to remove the reference to the normal map from the mesh or rename the material in the mesh.

I did the latter and it works perfectly, normal map and all.

And I did the former. Nice little outhouse. When I was growing up in the late 40's and early 50's on my grandmothers farm we had one attached to the woodshed, Sears Roebuck catalog and all. When my Uncle returned from military service, he installed indoor plumbing. That was real progress.

tomurban
 
Just committed the asset with those files removed, and CM is still showing the asset as faulty. :(

Regards,

Retro.

You may need a fresh start. Delete the item, re-download and start over. Just the normalsmap files get removed. the other two need to remain as is. Then commit.

tomurban
 
Okay, I have re-downloaded it. Removed the files "outhouse 1 normalsmap.texture.txt" and "outhouse 1 normalsmap.tga". Committed the asset. CM is still showing it as faulty. :eek:

If it is worth mentioning, I am running TS2010 build 44088.

Regards,

Retro.
 
Okay, I have re-downloaded it. Removed the files "outhouse 1 normalsmap.texture.txt" and "outhouse 1 normalsmap.tga". Committed the asset. CM is still showing it as faulty. :eek:

If it is worth mentioning, I am running TS2010 build 44088.

Regards,

Retro.

I am running the exact same version. With those files removed, there are no errors to show. What are the errors that that you are seeing? Can you post a screen shot of the errors?

tomurban
 
Error: Texture 'Outhouse 1 normalsmap.texture' is missing or could not be loaded for mesh 'Outhouse_1.im'.
Error: Texture 'Outhouse 1 normalsmap.texture' is missing or could not be loaded for mesh 'Outhouse_1.im'.

Exactly the same errors that were showing in the unmodified version. :eek:

Regards,

Retro.
 
That is exactly the fault you would expect if you delete the normal map files files..

Unfortunately, the problem is in the mesh where it is told to look for the files incorrectly.

Unless you modify the mesh you will always get the error in TS2009 or TS2010.

CM2 or 3 is checking the files required against the material type determined by its name, which in this case is wrong.
 
Back
Top