Category | Editor |
Created | 06.01.2019 19:27 |
Anthony Queen (tqueen113) | 06.01.2019 19:27 |
---|---|
Hello I am having a problem fixing a LUA warning on a vehicle I am working on 2019-01-06 12:21 Warning (script): Entity 'speedNeedleRot' has invalid type in method 'getShaderParameter'. 2019-01-06 12:21 LUA call stack: 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (1303) : getShaderParameter 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (174) : loadVisualLights 2019-01-06 12:21 dataS/scripts/vehicles/SpecializationUtil.lua (26) 2019-01-06 12:21 dataS/scripts/vehicles/Vehicle.lua (600) : raiseEvent 2019-01-06 12:21 dataS/scripts/i3d/I3DManager.lua (116) : asyncCallbackFunction 2019-01-06 12:21 Warning (script): 'setShaderParameter': Argument 3 has wrong type. Expected: Float. Actual: Nil 2019-01-06 12:21 ..\..\..\src\base\scripting\lua\LuaScriptSystem.cpp (769): expectedType == Value::VoidType || expectedType == Value::ClassType 2019-01-06 12:21 LUA call stack: 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (1304) : setShaderParameter 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (174) : loadVisualLights 2019-01-06 12:21 dataS/scripts/vehicles/SpecializationUtil.lua (26) 2019-01-06 12:21 dataS/scripts/vehicles/Vehicle.lua (600) : raiseEvent 2019-01-06 12:21 dataS/scripts/i3d/I3DManager.lua (116) : asyncCallbackFunction 2019-01-06 12:21 Warning (script): Entity 'rpmNeedleRot' has invalid type in method 'getShaderParameter'. 2019-01-06 12:21 LUA call stack: 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (1303) : getShaderParameter 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (174) : loadVisualLights 2019-01-06 12:21 dataS/scripts/vehicles/SpecializationUtil.lua (26) 2019-01-06 12:21 dataS/scripts/vehicles/Vehicle.lua (600) : raiseEvent 2019-01-06 12:21 dataS/scripts/i3d/I3DManager.lua (116) : asyncCallbackFunction 2019-01-06 12:21 Warning (script): 'setShaderParameter': Argument 3 has wrong type. Expected: Float. Actual: Nil 2019-01-06 12:21 ..\..\..\src\base\scripting\lua\LuaScriptSystem.cpp (769): expectedType == Value::VoidType || expectedType == Value::ClassType 2019-01-06 12:21 LUA call stack: 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (1304) : setShaderParameter 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (174) : loadVisualLights 2019-01-06 12:21 dataS/scripts/vehicles/SpecializationUtil.lua (26) 2019-01-06 12:21 dataS/scripts/vehicles/Vehicle.lua (600) : raiseEvent 2019-01-06 12:21 dataS/scripts/i3d/I3DManager.lua (116) : asyncCallbackFunction 2019-01-06 12:21 Warning (script): Entity 'speedNeedleRot' has invalid type in method 'getHasShaderParameter'. 2019-01-06 12:21 LUA call stack: 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (1323) : getHasShaderParameter 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (1333) : addLight 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (174) : loadVisualLights 2019-01-06 12:21 dataS/scripts/vehicles/SpecializationUtil.lua (26) 2019-01-06 12:21 dataS/scripts/vehicles/Vehicle.lua (600) : raiseEvent 2019-01-06 12:21 dataS/scripts/i3d/I3DManager.lua (116) : asyncCallbackFunction 2019-01-06 12:21 Warning (script): Entity 'rpmNeedleRot' has invalid type in method 'getHasShaderParameter'. 2019-01-06 12:21 LUA call stack: 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (1323) : getHasShaderParameter 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (1333) : addLight 2019-01-06 12:21 dataS/scripts/vehicles/specializations/Lights.lua (174) : loadVisualLights 2019-01-06 12:21 dataS/scripts/vehicles/SpecializationUtil.lua (26) 2019-01-06 12:21 dataS/scripts/vehicles/Vehicle.lua (600) : raiseEvent 2019-01-06 12:21 dataS/scripts/i3d/I3DManager.lua (116) : asyncCallbackFunction The warning says invalid type in method 'getHasShaderParameter'. but speedNeedleRot and rpmNeedleRot are transform groups and have no shader assigned to them, they are not objects. I even removed them and still get this warning. Any Ideas? Thanks |
Bilbo Beutlin (BBeutlin) | 06.01.2019 20:29 |
---|---|
Probably there are shapes named identically. Open the i3d in text editor and search for these. Or maybe these are referenced from xml <i3dMappings> and the node is wrong, perhaps shifted by your edits. |
Anthony Queen (tqueen113) | 06.01.2019 21:02 |
---|---|
okay Bilbo thanks I will check again |
Anthony Queen (tqueen113) | 06.01.2019 21:31 |
---|---|
Well Bilbo I looked over both files in notepad++ and only found one of each in the .i3d and zero entries for speedNeedleRot and rpmNeedleRot in the .xml file. I don't know what I am overlooking. |
Bilbo Beutlin (BBeutlin) | 06.01.2019 21:54 |
---|---|
Difficult to say without knowing what you have edited so far. ;) And I assume you didn't make backups and tests frequently, did you? *g* I'd guess you have added/deleted something and now the cinegraph nodes are shifted. Double check all xml <i3dMappings> for the right nodes. Or did you change something in material editor? That may have affected similar shapes. |
Anthony Queen (tqueen113) | 06.01.2019 22:04 |
---|---|
I do have back up copies but have not looked at them yet due to the fact that this truck is one I did for FS17 and have completely rebuilt it from bumper to bumper in Maya and trying to get everything lined up right in the .xml. These warnings are coming from my first attempt to load it into the game and I am still figuring out how the new .xml file is put together, so I will just keep at it and hopefully I will get it fixed. Thank you sir. |
Bilbo Beutlin (BBeutlin) | 06.01.2019 22:27 |
---|---|
Oh - this fact you should have mentioned earlier. If it's a former FS17 model perhaps you have only obsolete or incompatible shaders? |
Anthony Queen (tqueen113) | 06.01.2019 22:30 |
---|---|
no all shaders have been updated but I think I found it, could be a TG as a child of a light source with a static light inside it. not sure. |
Anthony Queen (tqueen113) | 06.01.2019 23:06 |
---|---|
Good news Bilbo, That fixed it! no errors or warnings!! Thanks again Bilbo! |
Note: Log in to post. Create a new account here.