Community Forum

The texture streaming needs <UvUsage>

Forum Overview >> Editor

CategoryEditor
Created08.04.2022 11:46


Dmitriy Volkov (DuMooooooH) 08.04.2022 11:46
Hello, I'm transferring the card from fs19 to f22. There is an error on textures, I choose shaders from fs19 still gives an error: The texture streaming needs <UvUsage> to work efficiently, custom shader: C:/Program Files (x86)/Steam/steamapps/common/Farming Simulator 22/data/fs19support/shaders/buildingShader.xml ...
and if I choose building Shader from fs22, then the error turns out the textures. How to solve the problem?

Ed Propsner (crotchfrog) 08.04.2022 13:32
Ideally you wan to use the building shader from 22. What do you mean by "the error turns out the textures?" In instances where an updated shader is not available I would choose to use a shader that is a close match. A quick and dirty workaround to at least quiet the warning would be to add the line <UvUsages /> toward the top of the offending shader. In some cases, the shader itself is actually compatible, it's just missing that line. The game will let you know when something else is not right with the shader. I've used this method many times and had no further issues with the shader and it ended up working perfectly.

Dmitriy Volkov (DuMooooooH) 08.04.2022 14:57
which file should I register it in? in fs19support/shaders/buildingShader.xml ?? returns an error Error: Outdated custom shader. 'D:/mapsRUS/FS22_przemasowo/shaders/buildingShader.xml ' has version 0 . Please convert this file to version 5.

Ed Propsner (crotchfrog) 08.04.2022 20:07
Put it in the shader you are trying to use from 19: D:/mapsRUS/FS22_przemasowo/shaders/buildingShader.xml. Also changed the version number to 5, but by the looks of it you are likely to encounter other issues with this shader. What is the problem with the building shader from FS22?

Dmitriy Volkov (DuMooooooH) 08.04.2022 21:55
this error appears: Started 1 threads from threadpool 'TerrainPatchOccluderManager unique worker'
Error: Can't load resource 'D:/mapsRUS/textures/american/buildingsArray_diffuse.png'.
Error: Can't load resource 'D:/mapsRUS/textures/american/buildingsArray_normal.png'.
Error: Can't load resource 'D:/mapsRUS/textures/american/buildingsArray_specular.png'.
All textures are in place, they fly off when I change the shader.

Dmitriy Volkov (DuMooooooH) 08.04.2022 21:57
this error appears: Started 1 threads from threadpool 'TerrainPatchOccluderManager unique worker'
Error: Can't load resource 'D:/mapsRUS/textures/american/buildingsArray_diffuse.png'.
Error: Can't load resource 'D:/mapsRUS/textures/american/buildingsArray_normal.png'.
Error: Can't load resource 'D:/mapsRUS/textures/american/buildingsArray_specular.png'.
All textures are in place, they fly off when I change the shader.

Ed Propsner (crotchfrog) 08.04.2022 23:17
Did you try adding <UvUsages /> to the original shader to see how it responds?

Dmitriy Volkov (DuMooooooH) 09.04.2022 00:51
yes, I tried, the error <UvUsages /> disappeared, but errors appeared :Warning: Texture 'D:/mapsRUS/FS22_przemasowo/textures/american/buildingsArray_diffuse .png" has the wrong type (2darray instead of 2d) in "buildingsArray_mat".
Warning: Texture 'D:/mapsRUS/FS22_przemasowo/textures/american/buildingsArray_normal.png ' has the wrong type (2d array instead of 2d) in 'buildingsArray_mat'.
Warning: Texture 'D:/mapsRUS/FS22_przemasowo/textures/american/buildingsArray_specular.png ' has the wrong type (2d array instead of 2d) in 'buildingsArray_mat'.

Ed Propsner (crotchfrog) 09.04.2022 02:40
I had the feeling you would encounter other issues with that shader, that workaround seldom works for anything but the most basic of shaders, and even then it's not really a fix, just a band-aid. Off the top of my head I can't say why the FS22 version is having the effect that it is, I would need to see it first hand. I don't get into much with shaders besides swapping them out and making very minor changes. Hopefully someone else can help out a bit more with this one.


Note: Log in to post. Create a new account here.