Community Forum

Warning (script): Entity 'glass' has invalid type in method 'setShaderParameter'.

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created28.10.2019 05:59

Rob Peters (Unknown) 28.10.2019 05:59
2019-10-28 00:20 Warning (script): Entity 'glass' has invalid type in method 'setShaderParameter'.
2019-10-28 00:20 LUA call stack:
2019-10-28 00:20 dataS/scripts/objects/NightIllumination.lua (47) : setShaderParameter
2019-10-28 00:20 dataS/scripts/objects/NightIllumination.lua (19) : new

Not sure what to fix with this error. I have looked through the xml and i3d and I don't find a spot to set the shader paramater so I could use some help. Any ideas?

Bilbo Beutlin (BBeutlin) 28.10.2019 11:40
The error message tells it: 'setShaderParameter' is called by the NightIllumination.lua.
The method uses the 'dashboardLightsShader'.
Either you're using the wrong shader or the material isn't suitable for setting shader params.

Rob Peters (Unknown) 28.10.2019 13:27
How do you know which object or objects are affected by this?

Bilbo Beutlin (BBeutlin) 28.10.2019 13:51
Search "glass" in i3d (text view).
Check the used material for proper shader setup.

Your object is obviously from a pre-FS19 version and maybe can't apply the new FS19 methods. Then either forget the 'NightIllumination' or exchange the obsolete material with an actual one.

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