Several Errors when importing FBX (Blender/Substance)


The Golden Empire
Hello all,

I've lately been attempting to import some of my simpler models into TS22 but am continuously hitting snags.

I use the standard Blender to Substance workflow and used the export parameters from this video for exporting texture maps from Substance. I then loaded the created maps into the node trees in Blender and re-exported the FBX's out of blender and attempted to import to Trainz when I was given several errors. I've also tried rebaking the maps just for good measure but I still get the same errors. Forgot to mention I also made sure to tick triangulate when I export the mesh.
Here's a screenshot of those errors.
errors by S M, on Flickr
I trimmed down the image to show just one set of errors but they occur for all 4 LOD levels

I've browsed the few threads that mention these errors but I still can't seem to resolve them.

Thanks in advance. Any input is appreciated, and just let me know if I need to provide more info
I’ve encountered this as well. Check the shading setup of the lod2 blender file used for exporting to fbx and look for differences in the albedo file name. Trainz is expecting to see the same albedo file name it sees in lod0 and lod1 blender files. Hope this helps. Still new at this.
Substance Painter has changed a bit since that video was made but the basics are much the same. Those filenames are a bit long and I'd probably try shortening them if possible. The length shouldn't be a problem but worthwhile checking out.
I assume the texture.txt files and the images are in the right place?
I prefer to make my own texture.txt files rather than let the Triainz import process do it.
Also check your Principled BSDF Shader node layout is correct for Trainz. i.e. the parameter image is connected to the roughness input. The last error suggests that might be an issue.
Hi guys. Been trying to import again recently and getting the same errors , minus error VE252, plus VE173 now. I'm at a bit of a loss here as I've tried everything to my knowledge. I've invested significant amounts of time trying to rectify this issue but am coming up with absolutely nothing
Error VE173 is saying that Trainz is not finding a valid material name. i.e. a name such as "house.m.pbrmetal" where "house" can be anything meaningful to you. "x.m.pbrmetal" is also OK if a bit obscure.

VE252 is saying that an expected image/texture was not found connected to the correct shader node. In Blender and for Trainz we use the Principled BSDF Shader node with an albedo (colour only) image connected to the color input, the Trainz parameter image connected to the roughness input, and a normal map image connected via a normalmap vector node to the normal input.

I know you used the Substance Painter to Blender tutorial but you might also have a look at this WiKi tutorial that describes the basic steps: The source files are included. It's for Blender 3.2 but should still be good.

If you need further help then you can find me on the Trainz Discord channel where its easier to discuss such issues.
Hi Paul, thanks again for your timely and helpful replies. I've finally got it working, no errors and the model is in game. Seems the name of the material was the issue. This is my first time importing to Trainz but I've got many more models waiting in the wings. Here it is, a simple derail sign, but I couldn't be happier to see my own creation in game. Thanks again to both of you guys