RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.01k stars 178 forks source link

Steering wheel missing if dashboard mesh doesn't exist #2999

Closed CuriousMike56 closed 1 year ago

CuriousMike56 commented 1 year ago

Mod: https://forum.rigsofrods.org/resources/1965-zastava-750-fica.654/ Mirror in case it gets updated: Fica 750.zip

In an earlier build I have from October 10th (https://github.com/RigsOfRods/rigs-of-rods/commit/6dff7fd) the steering wheel appears: image Now in 2022.12 (and master) the wheel is missing: image

9,8,11, 0.92, -0.5, -0.68, 0, 0, 0, dashboard-none.mesh Volan.mesh 0.0, 0.0, 0.0, 300.0

dashboard-none.mesh is missing from the mod zip. In older versions RoR would ignore this and continue anyway:

 20:43:41: Mesh: Loading dashboard-none.mesh.
20:43:41: Ogre::FileNotFoundException::FileNotFoundException: Cannot locate resource dashboard-none.mesh in resource group bundle ..
20:43:41: [RoR] Error creating entity of mesh 'dashboard-none.mesh' (group: 'bundle ...Fica 750.zip'), message: Ogre::FileNotFoundException::FileNotFoundException: Cannot locate resource dashboard-none.mesh in resource group bundle ...
20:43:41: [RoR|Actor|Warning] Zastava 750 - Fica (props): Failed to create entity: continuing without it ...

Now it just skips the props line entirely:

20:49:02: Mesh: Loading dashboard-none.mesh.
20:49:02: Ogre::FileNotFoundException::FileNotFoundException: Cannot locate resource dashboard-none.mesh in resource group bundle ...
20:49:02: [RoR] Error creating entity of mesh 'dashboard-none.mesh' (group: 'bundle ...Fica 750.zip'), message: Ogre::FileNotFoundException::FileNotFoundException: Cannot locate resource dashboard-none.mesh in resource group bundle ...
20:49:02: [RoR|Actor|Warning] Zastava 750 - Fica (props): Skipping prop because mesh 'dashboard-none.mesh' could not be loaded

This also apparently breaks steering wheels on other mods as well. Introduced with https://github.com/RigsOfRods/rigs-of-rods/commit/727672b9c4776d097731e707d865df4fb533ed01